PDA

View Full Version : Switching from stop to trailing


MrBaffalo
02-02-2007, 03:27 AM
Hi Guys,

Happy friday :)I'm looking at order management and I would like to code something useful to switch an order from stop order to trailing, any suggestion about it?



Thanks in advance

Marce

NinjaTrader_Ray
02-02-2007, 03:33 AM
You can't switch between SetStopLoss() and SetTrailingStop() but you could simulate your trailing stop using the SetStopLoss() method.

See the following post for code sample of how to dynamically change the price within OnBarUpdate() of the SetStopLoss() method.

http://ninjatrader.mywowbb.com/forum20/1521.html

Let me know if this does not make sense.

Ray