PDA

View Full Version : Set trailing stop floor amount?


higler
07-30-2009, 08:44 PM
Is there an easy way to wait until I have a trade profit of a certain "floor" amount and then set a % trailing stop. For instance, in a strategy, can I monitor the trade P&L and when it gets to an unrealized profit of $100 then SetTrailStop.

In TradeStation, when you set a % Trailing Stop, you also set a % Trailing Floor Amount to specify a level where the % trailing stop becomes active. How can I do this in NT?

Thanks.

NinjaTrader_Bertrand
07-31-2009, 02:58 AM
higler, there's unfortunately no floor amount input for this in NinjaTrader, but for example you can set it to trial by 10 ticks, it would then be activated at this profit and trail by this amount from that point onward.

http://www.ninjatrader-support.com/HelpGuideV6/SetTrailStop.html

higler
07-31-2009, 02:46 PM
higler, there's unfortunately no floor amount input for this in NinjaTrader, but for example you can set it to trial by 10 ticks, it would then be activated at this profit and trail by this amount from that point onward.

http://www.ninjatrader-support.com/HelpGuideV6/SetTrailStop.html

Quote From the NT 6.5 Help: "Should you call this method to dynamically change the trail stop price in the strategy OnBarUpdate() method, you should always reset the trail stop price/offset value when your strategy is flat otherwise, the last price/offset value set will be used to generate your trail stop order on your next open position "

How do I reset the trail stop price/offset value as mentioned above? Do I assign it a value of zero or is there a "Reset" method or something else?

Thanks.

NinjaTrader_Josh
07-31-2009, 03:35 PM
You reset it to the base value you want it to take for the next trade. Please see this reference sample: http://www.ninjatrader-support2.com/vb/showthread.php?t=3222

higler
07-31-2009, 03:54 PM
You reset it to the base value you want it to take for the next trade. Please see this reference sample: http://www.ninjatrader-support2.com/vb/showthread.php?t=3222

Thank you. I think I understand now.