Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Multi time frames & Moving Averages

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

    Multi time frames & Moving Averages

    Hi,

    I am unable to find the correct syntax to get the value of a moving average on another timeframe. What is it?

    Add(PeriodType.Minute,60);

    and

    EMA(15)[1][0]

    Doesn't work. The problem is with the EMA syntax.

    Thanks

    mp

    #2
    marcusplexus,

    You would need to specifically call the BarsArray:

    EMA(BarsArray[1], 15)[0])
    Last edited by NinjaTrader_Matthew; 08-11-2011, 03:17 PM.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Great! Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by terkk, Today, 01:16 PM
      4 responses
      30 views
      0 likes
      Last Post bltdavid  
      Started by TraderElegante, Today, 12:14 PM
      1 response
      22 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by dgee949, Today, 11:44 AM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_JustinD  
      Started by NinjaTrader_Kate, Today, 12:01 PM
      0 responses
      22 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by efeuvejota01, Today, 11:42 AM
      4 responses
      39 views
      0 likes
      Last Post efeuvejota01  
      Working...
      X