![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
HI..!
I am doing a EMA crossover-down strategy.. The conditions I want are as follows. If a crossover down occurs.. and.. in the last hour the market has traded higher by 6 points or more.. Then execute the trade.. can this be done in the trade wizard? thank AL |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
A_lafreniere,
I am happy to assist you. What sort of chart do you plan on running this on? So far it sounds like it would be possible, however the type of chart you use would change the "In the last hour, the market has traded higher by 6 points" part.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
Thank you for responding so quickly..
I will be using a 3 min Chart. AL |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
Hello,
Here is an example that would work on 3 minute charts. if ( CrossBelow(EMA(fastperiod), EMA(slowperiod)) && (Close[0]+6*TickSize) >= High[HighestBar(High,20)] ) { // execute a trade }
Adam P.
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EMA Color Crossover | Benluk | NinjaScript File Sharing Discussion | 7 | 03-11-2012 07:59 PM |
| SMA/EMA crossover help? | Trankuility | Indicator Development | 2 | 11-05-2010 09:24 AM |
| Bar/ EMA Crossover Indicator | peter@cleaniq | Indicator Development | 3 | 02-23-2010 09:12 AM |
| EMA Crossover | Rollins | NinjaScript File Sharing Discussion | 24 | 07-15-2009 10:58 AM |
| EMA and MA Crossover Histogram | monti1a | Indicator Development | 1 | 06-21-2008 11:24 AM |