I was looking at the SampleMACrossOver strategy and trying
to modify it.
There are 2 moving averages as you know. I am using
Renko bars, though I'm not sure if this is important to the code
or not.
CalculateOnBarClose = false;
SetStopLoss(CalculationMode.Ticks,12);
etc. etc.
*************************************************
If the stoploss is hit the trade is exited with a loss, but the Renko
bar may still be an up bar let's say. That is, even if the CalculateOnBarClose
is false, the bar the trade exited on may still be the last bar on the chart.
An up bar.
Let's say the moving average crossover is also in positive territory.
So, does the software automatically wait until the next Renko bar
to generate a long trade, assuming it is an up bar as well,
or does it do so while the current bar is still in effect?
(That would not be good.)
Is BarsSinceEntry necessary code here?

Comment