CryptoRox

[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: http://autoview.with.pink/#syntax and you can watch this video here: https://www.youtube.com/watch?v=epN5Tjin....
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:
http://autoview.with.pink/

Get your invite and join us in slack here:
http://slack.with.pink/
Release Notes: Revised to match the latest Strategy modifications.

Learn more :
Remove from Favorite Scripts Add to Favorite Scripts
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

Reply
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.
Reply
@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?
Reply
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 Reply
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?
Cheers
Reply
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?
Reply
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?
Reply
deesun deesun
its the distance in usd/currency, figured it out now
Reply
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!
Reply
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 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Help Center Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out