having three issues:
1. I want to store a price. For example:
[FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] (Position.MarketPosition == MarketPosition.Flat)[/SIZE][/FONT] [SIZE=2][FONT=Courier New]{[/FONT][/SIZE][/SIZE][/FONT][FONT=Courier New][SIZE=2] [SIZE=2][FONT=Courier New]startPrice = Position.AvgPrice;[/FONT][/SIZE] [SIZE=2][FONT=Courier New]}[/FONT][/SIZE] [/SIZE][/FONT]
How do I store the current price ?
2. I am getting green comment lines next to parameters that I've added. Later, the green lines are also next to the code containing the paramters. This seems to be affecting the strategy's performance, as if these commands are being ignored.
How do I ensure that these are not being ignored ?
3. The parameters I've added manually are not showing-up in the Parametres tab in the Backtest Optimizer. Instead, they show-up under the Misc tab, and cannot be optimized.
How do I make sure that these parameters are listed under Parameters instead of Misc ?
Comment