vdubus

Baseline_VX1 & Strategy

1282
Baseline_VX1 *UPDATE-, ERROR FIXES HERE - pastebin.com/fKdBfibU
Simple MA Cross with integrated directional bground.
*Edit ma variable in the code to suit your chosen entry style.
To run in line with the VX family / or stand alone :-
Baseline_VX1 (This one)
MACD_VX1 Stoch_VX3 /Strategy, line up all three, place your bets - Black or Green :)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
study(title="Baseline_VX1", shorttitle="Baseline_VX1", overlay=false)
shrt = sma(close, 3)
lng = sma(close, 13)
plot(shrt, color=blue, linewidth=2)
plot(lng, color=red, linewidth=4)
plot(cross(lng, shrt) ? lng : na, style = circles, linewidth = 4)
OutputSignal = lng >= shrt ? 1 : 0
bgcolor(OutputSignal>0?#000000:#128E89, transp=70)
//==============================================
//plot(sma(m1_src, m1_p), color=red, linewidth=2, title="MA1")