NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-04-2008, 10:37 PM   #1
newguy05
Junior Member
 
Join Date: Feb 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default help with trailing stop

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.
newguy05 is offline  
Reply With Quote
Old 02-04-2008, 10:44 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

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%.
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-04-2008, 10:54 PM   #3
newguy05
Junior Member
 
Join Date: Feb 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

AHHH! thank you! I was keep trying to put 5 and -5 instead of 0.05
newguy05 is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 08:55 PM.