oriondesign
05-28-2007, 11:39 AM
I have had success using the trailing stop system in the DOM, where you can set an initial stop loss value, and then set a trailing stop to "kick in" when a certain profit target is reached (allowing you to tighten and then trail your stop).
I can't seem to figure out how to duplicate this in NinjaScript. The SetTrailStop() command only allows me to set a trailing value, not a target at which this will kick in.
How can I create, for example, the following:
Trading ES
Initial stop loss: 8 ticks
After profit target of 5 ticks achieved, tighten and trail stop by 3 ticks
Any help would be appreciated. Thanks!
I can't seem to figure out how to duplicate this in NinjaScript. The SetTrailStop() command only allows me to set a trailing value, not a target at which this will kick in.
How can I create, for example, the following:
Trading ES
Initial stop loss: 8 ticks
After profit target of 5 ticks achieved, tighten and trail stop by 3 ticks
Any help would be appreciated. Thanks!