I have a very rough time with the orders learning curve in Ninja. I have a long position I am trying to take profit on 3 , 6 , and 12 ticks limit order. It doesn't work. I do not want to use the Set method in the initialize method because I have problem with other orders that seems to be conflicting...
Here is my code for the take profit target. What am I doing wrong ?
if(Position.MarketPosition == MarketPosition.Long){
ExitLongStop(Position.AvgPrice - (StopLoss * TickValue));
ExitLongLimit(Position.AvgPrice +(3*TickSize),"MySignal1");
ExitLongLimit(Position.AvgPrice+(6*TickSize),"MySi gnal2");
ExitLongLimit(Position.AvgPrice+(12*TickSize),"MyS ignal3");
}
Thank you
Bernard

Comment