![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jun 2008
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
Newbie question...
I am long 1 contract with a stop loss of say 20ticks. How do I code the trailing stop to move my Stop UP each time the price moves 20ticks in profit.... Remember not on each tick but only once there is 20 tickss in profit...so it like moves in steps? |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
When you receive 20 ticks in profit, call your stop loss again at your new desired stop price. It will modify the order and raise it up.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2008
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Josh,
But could you show me some NT code on how to do this? I understand the concept but a snippet of code is the solution. Appreciated. |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Godzilla,
Please see this reference sample for modifying stop losses: http://www.ninjatrader-support2.com/...ead.php?t=3222
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Going from a Stop Loss to a Trailing Stop within a strategy | Sidhartha | Strategy Development | 28 | 03-24-2009 03:11 PM |
| trailing stop with single stop order | mario73 | ATM Strategies (Discretionary Trading) | 3 | 01-14-2009 02:55 AM |
| Fixed Stop Strategy | John833 | Strategy Development | 9 | 11-07-2008 10:03 AM |
| stop loss, trailing stop modification in NT6 | alfie | Strategy Development | 1 | 03-26-2008 03:46 PM |
| How to delay a stop order until 08:20 | skynetman | SuperDOM and other Order Entry Windows | 1 | 03-13-2008 06:02 AM |