Does anyone know what I'm doing wrong?
Here's the code:
protected override void OnBarUpdate() { if(CrossBelow(RSI(5,1), 80, 1)) { Draw.ArrowDown(this, "tag2"+CurrentBar, true, 0, High[0] + TickSize, Brushes.Red); } if(CrossAbove(RSI(5,1), 20, 1)) { Draw.ArrowUp(this, "tag1"+CurrentBar, true, 0, Low[0] - TickSize, Brushes.Green); } }
Comment