NinjaTrader Support Forum  
X

Attention!

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


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 03-13-2008, 06:32 AM   #1
skynetman
Senior Member
 
Join Date: Mar 2008
Posts: 138
Thanks: 0
Thanked 0 times in 0 posts
Default Create a parked STOP order with simple stop loss

I'm new to NT so i'm asking you guys how to park an order until 08:20 a.m.
It should be a STOP order with 1 target stop loss set as price (not ticks).
Can you help me with the code?
Do i have to code a strategy for EVERY order or i can apply it to new orders?
Thx
skynetman is offline  
Reply With Quote
Old 03-13-2008, 06:59 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

A strategy can submit many orders. It will execute everything automatically. There are many resources to help you get stated.

Here is a good jump in point -

http://www.ninjatrader-support.com/H...dingLogic.html
NinjaTrader_Ray is offline  
Reply With Quote
Old 03-13-2008, 07:06 AM   #3
skynetman
Senior Member
 
Join Date: Mar 2008
Posts: 138
Thanks: 0
Thanked 0 times in 0 posts
Default

Ok i'll check all the guide, but as programmer i know that there are many ways to do the same thing and i'm looking for a good start.
Any piece of code? Anyone?
All collective2 subscribers would appreciate a little help..... Many trade signals are parked and we don't know how to do it.
You could think about adding it to basic entry window....
Thx
skynetman is offline  
Reply With Quote
Old 03-14-2008, 12:36 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

There are also reference samples on our forums that may help you get the ball rolling for various different things you may find of value. Please look at the Reference Sample: http://www.ninjatrader-support.com/v...splay.php?f=30

Also to throw some ideas out there for you, set a bool variable to true after your trade conditions have been evaluated to true. Now use a time filter along with the bool to determine when to submit your order to market. Take a look at the time filter reference.

Basically something along the lines of
if (time is greater than 8:20 && bool is true)
{
EnterLongStop();
}
Last edited by NinjaTrader_Josh; 03-14-2008 at 12:40 AM.
NinjaTrader_Josh 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
NinjaTrader ShutDown - Open Order, No Stop Loss jeremymgp Automated Trading 4 02-21-2008 11:40 PM
stop loss order rejected maxpi Strategy Development 8 11-22-2007 08:35 AM
ATM strat with stop loss and target order Angel ATM Strategies (Discretionary Trading) 5 11-08-2007 09:44 AM
Order Entry Property: Use stop market for stop loss orders higler SuperDOM and other Order Entry Windows 7 07-02-2007 09:06 AM
Submit Limit Entry Order and Stop Loss Order at same time? aspTrader Miscellaneous Support 2 10-04-2006 02:40 AM


All times are GMT -6. The time now is 04:28 AM.