I am having trouble when using AtmStrategyChangeStopTarget for changing profit target and stop loss. I am getting a log error 'Target1 is invalid.
I am providing a sample of your SampleAtmStrategy which was edited to move Target to make this easy
Here is the code I have added for the target
// You can change the stop price if (GetAtmStrategyMarketPosition(atmStrategyId) != MarketPosition.Flat) AtmStrategyChangeStopTarget(0, Low[0] - 3 * TickSize, "STOP1", atmStrategyId); AtmStrategyChangeStopTarget(0, High[0] + 3 * TickSize, "TARGET1", atmStrategyId);
BeachTrader

Comment