Still new to this and gone through some C# online courses so have a basic understanding but still cannot figure out to do something I imagine is very simple.
The first thing I want to do is to show an arrow if the Candle that has just closed has an open that is 10+ pips higher than the candles close.
I have done all this through the strategy builder and then looked at the code and not sure why it is not working. Guessing it is something simple and this will help me get to grips with this. Here's my code that is not doing anything on my live charts.
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 1)
return;
// Set 1
if (Open[1] >= (Close[1] + (10 * (TickSize * 10))) )
{
Draw.ArrowUp(this, @"Momentum10PipMove233 Arrow up_1", false, 0, 0, Brushes.Lime);
}
}

Comment