[Alerts] - Moving Average Cross and/or Bbands bot

This is the alert script for :

We've included the basic alert syntax for Autoview automation. You can learn more about the syntax here: and you can watch this video here:
These settings are set, by default, to the lowest contracts allowed by Bitmex (at the time of this posting) to avoid a spam account.

You can learn more about Autoview here:

Get your invite and join us in slack here:
Mar 04
リリースノート: Revised to match the latest Strategy modifications.

Learn more :
お気に入りスクリプトからの削除 お気に入りスクリプトに追加
Hi ,
I am receiving continuous alerts in my scripts i.e two buy or two sell in a raw. I used pyramiding from this script but still it is happening. It would be really appreciated if anyone can fix my issue. I used this part:
// Count your long short conditions for more control with Pyramiding
sectionLongs = 0
sectionLongs := nz(sectionLongs)
sectionShorts = 0
sectionShorts := nz(sectionShorts)

if long
sectionLongs := sectionLongs + 1
sectionShorts := 0

if short
sectionLongs := 0
sectionShorts := sectionShorts + 1

// Pyramiding Inputs

pyrl = input(1, "Pyramiding less than") // If your count is less than this number
pyre = input(0, "Pyramiding equal to") // If your count is equal to this number
pyrg = input(1000000, "Pyramiding greater than") // If your count is greater than this number

// These check to see your signal and cross references it against the pyramiding settings above
longCondition = long and sectionLongs <= pyrl or long and sectionLongs >= pyrg or long and sectionLongs == pyre ? 1 : 0
shortCondition = short and sectionShorts <= pyrl or short and sectionShorts >= pyrg or short and sectionShorts == pyre ? 1 : 0

Hello, which part of this code is applicable to avoid consecutive buy and sell alerts? For example two or more continuous buy alerts in a row.
@CryptoRox Great scrips -once question, for the open Long/Short alertcondition you state "// For the opens, you will want to trigger these alerts on close." do you mean in the alert setting you select Open long/LongOpen as condition and set as Once per bar close?
Hey, dpnt work on my chart.
Just add it on favorits then open it in my chart
but false
Need to do something special to work ?
+6 返信
Hey, thank you very much for this awesome script!! Works out pretty well.
I have two questions regarding the stop loss.
1) Is it possible to set an %-Value for the stop loss instead of the absolute value in the line "sl = input(10, "Stop Loss") / qty" ?
2) The stop loss is triggered very often because of the candlesticks. Is it possible to make it ignore the candlesticks and just work with the candle?
if i enter the same settings in the alert script as in the strategy, the alert script has not the same signals. they match not always, i can see closes in the alert indicator but they are not on the chart.
i played around with the pyramiding and some other settings, but was not able to get it to a full sync.

how can i fix this?
could you explain the trailing stop logic pls? i cannot find proper settings, regardless what value i enter, i cannot see any stops or stop triggers in the backtesting. WHICH value do i enter in the "trailing stop" variable? is it price distance, quantity or percentage?
deesun deesun
its the distance in usd/currency, figured it out now
Thank you very much, the next thing I wanted to work on was a way to keep track of previous buys in a study script, and this is a very helpful starting point!
HI, i´ve pasted the code in the pine editor but under the strategy tester tab there is nothing to show. It says to apply the strategy to the chart but it is already applied. I can access the settings, i chose altcoin and use moving average cross, but i can't access the backtesting in the strategy tester. Moreover the script plots a straight horizontal line at price zero, squeezing the candles in the upper part of the graph. What am I doing wrong? i would appreciate some help a lot, thanks.
+3 返信
ホーム 株式スクリーナー FXスクリーナー 仮想通貨スクリーナー 経済指標カレンダー 番組 使い方 チャート機能 価格 ハウスルール モデレーター ウェブサイト&ブローカー向けソリューション ウィジェット チャートソリューション 軽量チャートライブラリ ヘルプセンター 友達紹介 機能リクエスト ブログ&ニュース よくあるご質問 ウィキ ツイッター
プロフィール プロフィール設定 アカウントとお支払い 友達紹介 マイサポートチケット ヘルプセンター 公開したアイデア フォロワー フォロー中 プライベートメッセージ チャット サインアウト