NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 09-19-2011, 02:43 PM   #1
shortbleu
Junior Member
 
Join Date: May 2011
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default Automated trading with Ninja Trader 7

How can I implement the following simple strategy with ninja trader 7?

If price is 40 ticks above the current low of the day sell short, or if price is 40 ticks below the current high of the day buy. The strategy needs to trade once a day maximum: if price moves up and down accross the +40/-40 ticks level several times in the same day, Ninja Trader 7 will trade only the first time the level is crossed and will not trade anymore if the level is crossed again later in the day.

Other infos:
1) Start of day should be 7.20am Chicago time, end of day should be 4pm Chicago time.
2) The orders will be bracketed with stop loss and take profit, because it is already available as standard with NT I don't think it needs coding.
3) The levels of +/-40 ticks are just given as examples, it could well be +/- 35 ticks or +/-45 ticks, so I need to be able to set up the levels as I wish.
4) The automated strategy will be applied to futures trading on the CBOT.

Since I am not a programmer, I'd appreciate if someone can help and provide a solution ready to use because I am unable to code.

Many thanks
Last edited by shortbleu; 09-19-2011 at 02:52 PM.
shortbleu is offline  
Reply With Quote
Old 09-19-2011, 03:17 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello shortbleu,

If you are unable to receive a response from one of our community members, you may consider discussing your strategy requirements with one of our NinjaScript consultants.
http://www.ninjatrader.com/partners#...pt-Consultants
NinjaTrader_RyanM is offline  
Reply With Quote
Old 09-19-2011, 03:25 PM   #3
shortbleu
Junior Member
 
Join Date: May 2011
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi NinjaTrader_RyanM,

Am I unlikely to receive a response on this forum, am I posting on the correct forum?
shortbleu is offline  
Reply With Quote
Old 09-19-2011, 03:35 PM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

You are posting to the correct forum, but it seemed like you had a list of requirements and were looking for a coding solution that satisfied them. Unfortunately NinjaTrader support will not develop this strategy for you. Hopefully one of our community members can lend you a hand, but if not you can always hire a NinjaScript consultant to professionally develop for you.

If strategy development is something you plan on learning, there are a wealth of resources designed to get you started. Strategy wizard is good to start if you do not have experience coding. First is to visit this page on the strategy development process:
http://www.ninjatrader.com/support/h...nt_process.htm

There are also additional reference samples available on our forums that can help with items like setting up time filters, resetting values at each day. These educational resources are available here:
http://www.ninjatrader.com/support/f...splay.php?f=29
NinjaTrader_RyanM is offline  
Reply With Quote
Old 10-11-2011, 12:25 PM   #5
djdinut1
Member
 
Join Date: Oct 2008
Location: Salt Lake City, UT
Posts: 42
Thanks: 0
Thanked 0 times in 0 posts
Default Stop in Automated Strategy

Is there a way in an automated strategy to set a stop at the low 2 bars ago?
djdinut1 is offline  
Reply With Quote
Old 10-11-2011, 01:10 PM   #6
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello djdinut1,

You could do this with:
SetStopLoss(CalculationMode.Price, Low[2]);
NinjaTrader_RyanM 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
Ninja Trader with MB Trading... fy260498 Miscellaneous Support 11 10-06-2010 04:36 AM
Ninja Trader for Trading Technologies trader_joe_es Connecting 3 10-03-2010 09:51 PM
Automated Trading Forex IB and Ninja Trader nachig Automated Trading 1 12-23-2009 05:12 AM
Automated Restart of Ninja Trader seymour Automated Trading 3 05-20-2009 12:34 AM
Automated Trading using Ninja Script designer Automated Trading 1 09-15-2008 04:03 AM


All times are GMT -6. The time now is 04:15 PM.