Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Average of moving average

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

    Average of moving average

    Average of moving average

    Looking to do some back testing for an average of moving average cross over.
    eg. 50sma and then a plot 5sma of 50sma.

    I can not seem to find an indicator like that. Could anyone help me find a thread this is located at, or program one for me and rest of the users?

    I have spent bit of time looking trough the threads to no avail.

    What I am not looking for is Ribbon of MA, or cross over of two different MA's

    Thank you for your help

    #2
    Boy Blue, this code would give you the current value of a 5 period SMA of a 50 period SMA:
    Code:
    currentValue = SMA(SMA(Close, 50), 5)[0];
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thre is over 190 lines of code in the SMA indicator any recomendations where to put the "currentValue" comand line?

      Comment


        #4
        You would need to create a new indicator to calculate this -



        In our sharing section you can download the 'DoubleMA', with it you can easily construct many variants of your 'MA over MA' approach.
        Last edited by NinjaTrader_Bertrand; 04-21-2010, 05:54 AM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        670 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X