PDA

View Full Version : Highest High Trailing Stop


andreneoh
10-21-2010, 02:57 AM
Hi,

Is there a way to call SetTrailStop() by setting the stop off a percentage from the highesthigh / lowestlow while the trade is still running?

Sort of like a Stop = % * (MAE / MFE - EntryPrice ) knowing that this trend may keep running if this percentage dip is not yet hit.

Thanks

NinjaTrader_Bertrand
10-21-2010, 03:09 AM
andreneoh, this could be done programmatially via a NinjaScript strategy, but unfortunately not for discretionary trading on the SuperDOM / ChartTrader.

andreneoh
10-21-2010, 04:02 AM
Could you point me to the correct direction? I can't seem to call the HighestHigh / LowestLow from within the trend while the trade is still on. Thanks

NinjaTrader_Bertrand
10-21-2010, 04:09 AM
There's no method for this task, you would need to custom code it and save the MIN and MAX while the trade was running (MarketPosition.Long) to calculate the stop value.