I would like to know what I have done wrong here. I cant compile.
If price makes new high and indicator Rvalue does not, I would like to draw a error down.
The problem is how do I tell the strategy to look for the last swing high and take the indicator value on that bar... the bold marked is the source of the error.
RValueChart(VCLen).VClose[0] < RValueChart(VCLen).VClose[Swing(Swing(SwingStrength).SwingHighBar(1,1,SwingL ookBackPeriod)])
protected override void OnBarUpdate() { if(High[0] > Swing(SwingStrength).SwingHigh[0] && RValueChart(VCLen).VClose[0] < RValueChart(VCLen).VClose[Swing(Swing(SwingStrength).SwingHighBar(1,1,SwingLookBackPeriod)]) { DrawArrowDown("My down arrow" + CurrentBar, 0, High[0] + 5 * TickSize, Color.Red); } }
Comment