Hi, I am trying to overrride PointValue using AFL in futures mode.
But I can't figure out why I get different results using SetOption("FuturesMode", True) vs selecting the Futures Mode option in the backtest settings. Here is what is happening:
This code (full code posted):
PointValue = 10;
//SetOption("FuturesMode", True );
Filter=1;
AddColumn(PointValue, "PointValue", 1.0);
Gives me this Exploration output:
However the same code, but setting futures mode in AFL:
PointValue = 10;
SetOption("FuturesMode", True );
Filter=1;
AddColumn(PointValue, "PointValue", 1.0);
Gives me this Exploration output:
The settings window in both cases is the same:
My question is: why can't I overrride pointvalue when using SetOption("FuturesMode", True) but I can when setting futures mode in settings? What else do I need to do in AFL?