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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    69 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    42 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    24 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    27 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    54 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X