One thing I don't understand is this:
- Code: Select all
strategy.parameters:addBoolean("Backtrack", "Use completed candles only", "", true);
...
if Backtrack then
period = period-1;
end
...
How does that make it act on non-completed candles? All I see is that it looks at previous period/bar, if you set Backtrack = true. It will still wait for the close be for it acts anyway, if it's false.