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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        128 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        74 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        116 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        110 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        89 views
        0 likes
        Last Post CarlTrading  
        Working...
        X