![]() |
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
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2011
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2011
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
Hi NinjaTrader_RyanM,
Am I unlikely to receive a response on this forum, am I posting on the correct forum? |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Oct 2008
Location: Salt Lake City, UT
Posts: 42
Thanks: 0
Thanked 0 times in 0 posts
|
Is there a way in an automated strategy to set a stop at the low 2 bars ago?
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hello djdinut1,
You could do this with: SetStopLoss(CalculationMode.Price, Low[2]);
Ryan M
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |