Referring to this section of its code:
// You can change the stop price
if (GetAtmStrategyMarketPosition(atmStrategyId) != MarketPosition.Flat)
{ //Brackets are missing on original SampleAtmStrategy
AtmStrategyChangeStopTarget(DefaultQuantity, 0, "STOP1", atmStrategyId); //error occurs when a limit order is placed. This is market order form.
Syntax:
AtmStrategyChangeStopTarget(double limitPrice, double stopPrice, string orderName, string atmStrategyId)
The first parameter is limitPrice and yet I am placing a DefaultQuantity.
Can you explain?
Also, what does it mean " //error occurs when a limit order is placed. This is market order form." ?
Best
Gio

Comment