stopLongEntryPP = ExitLongStop(0, true, execution.Order.Filled, pp - stop * TickSize, "Stop of Long PP", "Long Entry PP");
If I want to change that on certain price conditions I take it I do this in OnBarUpdate? But when I try and use the execution.Order.Filled in OnBarUpdate I get an error. Am I only able to use execution.Order.Filled in OnExecution? If so what is the best way to reference the current position size?
Thanks

Comment