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 01-24-2008, 06:25 PM   #1
gygraham
Member
 
Join Date: Dec 2007
Posts: 35
Thanks: 0
Thanked 0 times in 0 posts
Default EMA Entries and Exits

I am not a programer and consequently have to rely on the GUI approach to creating strategies. I created a 5, 13 EMA crossover as per the video. Basically I have the fast 5 crossing above the slow 13 looking one bar back. The command is to enter LONG. I created a SHORT crossover ema using the step2 on the first strategy (as per the video). However, neither would work when backtested. Removing the step 2 allowed the Long EMA crossover to work for backtesting.

I created a separate short " 5 cross below13" strategy as well.

The strategy backtested the 12/10/07 thru 1/20/08, 15 minute interval.

My problem is the entries appear to pick the Cross above (5 over 13) entries irratically. The closings have the same irregularities. I had 8, possibly 9 entries that should have occurred and the program did only three and those wrong. I tried to send a picture of the chart but was denied on bytes. Thanks
gygraham is offline  
Reply With Quote
Old 01-24-2008, 07:09 PM   #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

Unfortunately the only thing I can comment is that you would have to provide very specific information to us in order for us to try and help. 99% of the time, unexpected results are actually the expected results based on the traders logic.

What you have described is a basic MA cross over strategy. I suggest backtesting the SampleMA strategy that installs with NT. If you feel that this does not produce entries when you would expect, please let us know.
NinjaTrader_Ray is offline  
Reply With Quote
Old 01-25-2008, 11:45 AM   #3
gygraham
Member
 
Join Date: Dec 2007
Posts: 35
Thanks: 0
Thanked 0 times in 0 posts
Default Got it fixed

I worked through the problems and the strategy opened short in the EURJPY and EURUSD and as of now up 187 pips. Thanks for the help.
gygraham is offline  
Reply With Quote
Old 01-25-2008, 12:30 PM   #4
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

Wow, nice trade!
NinjaTrader_Ray 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
Exits when it shouldn't? edgeliner Strategy Development 3 01-24-2008 02:47 PM
Automatic stops on a manual entries dependent on PnL tomiboi ATM Strategies (Discretionary Trading) 9 01-03-2008 01:21 PM
Automatic Strategy Entries with Manual Exits daven Automated Trading 9 10-27-2007 07:57 AM
Google's Index of Support Forum Entries KBJ Suggestions And Feedback 1 09-20-2007 01:48 AM
how do I delete/edit performance tab entries? dberliner SuperDOM and other Order Entry Windows 1 11-02-2006 08:52 AM


All times are GMT -6. The time now is 05:20 AM.