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 NRITV, Today, 01:15 PM
    2 responses
    6 views
    0 likes
    Last Post NRITV
    by NRITV
     
    Started by frankthearm, Today, 09:08 AM
    7 responses
    30 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by maybeimnotrader, Yesterday, 05:46 PM
    5 responses
    25 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by quantismo, Yesterday, 05:13 PM
    2 responses
    18 views
    0 likes
    Last Post quantismo  
    Started by adeelshahzad, Today, 03:54 AM
    5 responses
    33 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X