![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Feb 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
Hi guys, i tried so many combinations but cant get trailing stop to work. I am using the ninja gui to do my strategy and have not messed with the code itself.
1) My strategy will call the EnterLong() or EnterShort() for executing an entry order if certain conditions are met, this works good. 2) All i want is for the script to also place a normal trailing stop order at the same time, so if the position drops by 5% or more from its high since entry, it will automatically sell the position at market. What are the steps to do is? i tried using the stop and targets screen, but it just buy and sell at the same bar all the time. thank you.
Last edited by newguy05; 02-04-2008 at 10:39 PM.
|
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
You would do it in the page you have already been trying to do it in. You would choose Trailing Stop -> Percent -> and put in 0.05 for 5%.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
AHHH! thank you! I was keep trying to put 5 and -5 instead of 0.05
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trailing stop: pip for pip or lagging | clayimaginations | Automated Trading | 1 | 12-07-2007 11:02 PM |
| 3-1-1 trailing stop | daza | ATM Strategies (Discretionary Trading) | 6 | 10-28-2007 06:35 PM |
| Switching from stop to trailing | MrBaffalo | Strategy Development | 1 | 02-02-2007 03:33 AM |
| Can't get trailing stop | Savage1701 | Automated Trading | 1 | 04-07-2006 08:03 AM |
| Widening Trailing Stop | JohnnyB | Miscellaneous Support | 2 | 06-29-2005 01:07 AM |