Help with code !!
Hello everyone, I'm new to this platform and I need help transcribing a Trading View routine for AlgoStudio.
If anyone can help me, I am very grateful.
//bar color rules
Dgbar = close>close[1] and close>sma(close,20) and sma(close,20)>sma(close[1],20)
Drbar = close<close[1] and close<sma(close,20) and sma(close,20)<sma(close[1],20)
//Bar
barcolor(Dgbar ? green : na)
barcolor(Drbar ? red : na)
Thank you!
Replies
Join PTMC community to post your replies on forum