I´m trying to develop a simple indicator that draws something when a MA slope change from falling to rising or rising to falling, I´m using this to draw an arrowup:
if (SMA(10)[0]>SMA(10)[1] && SMA(10)[1]<SMA(10)[2])
DrawArrowUp(CurrentBar.ToString()+"tag1",true,0,Lo w[0],Color.Lime);
But is not working.
Comment