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 and close>sma(close,20) and sma(close,20)>sma(close,20)
Drbar = close<close and close<sma(close,20) and sma(close,20)<sma(close,20)
barcolor(Dgbar ? green : na)
barcolor(Drbar ? red : na)