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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        3 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Working...
        X