PDA

View Full Version : Change Stop Price


bmw123
05-06-2010, 07:21 AM
I have a strategy, which enters 3 positions simultaneously (say 3 short).

The initial stop is set to 200 ticks.

When the profit target is reached for the first 2, I'd like to move the stop to the entry price.

But I can't seem to get the entry price.
I also can't seem to set a condition that lets it know it has sold 2 of the 3 contracts.

position.avgprice doesn't seem to work here.
position.quantity doesn't seem to work here.

NinjaTrader_Brett
05-06-2010, 07:41 AM
Hello,

Please see the following reference sample on how to move your stop up with a NinjaScript strategy.

http://www.ninjatrader-support2.com/vb/showthread.php?t=3222

Let me know if I can be of further assistance.