Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CrossOver/Under for Different Moving Average Intervals?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    CrossOver/Under for Different Moving Average Intervals?

    I'd like to use Strategy Analyzer (and Optimizer) to test the hypothesis that there may be different lengths of time for generating a new long position and closing that position. That is, that when the stock's price "crosses over" the "X"-month moving average, it's the best time to buy, but when it "crosses under" the "Y"-month moving average, it's time to close out that long position.
    I can easily use the Wizard to create a strategy where X=Y (i.e., the price travels above and then below the same MA). How would I test the idea that the most profitable strategy might be where X and Y are not the same?

    Thanks for your input. (I'm new to this, so excuse the noobish question.)

    #2
    Hello DaxPagan,

    Welcome to the NinjaTrader Support Forums!

    This would be possible but to use it in the Optimizer you would have to declare the different moving average period as User Defined Input values like in the SampleMACrossOver Strategy.

    You can view the following Help Guide page that will go over the different Wizard Screens and the images will show how you can use the User Defined Input values as the Period type value so that you can use it inside the Optimizer.
    http://www.ninjatrader.com/support/h...rd_screens.htm

    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by andrewtrades, Today, 04:57 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    5 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    7 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X