Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add different time frame indicator

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

    Add different time frame indicator

    Hi,

    How can I add into an existing strategy, an indicator( a moving average for ex) calculated on a different time frame?


    Thanks

    #2
    Hi Mitnick,

    Thank you for posting.

    You would want to add the timeframe into the Initialize section of the code.
    This will add the time frame into a BarsArray, which holds all the Bars objects that are added.

    You would then use the Indicator to Reference that particular BarsArray for the calculation.

    Below is a link on how to incorporate Multi-timeframe and instruments into your script.
    http://www.ninjatrader.com/support/h...nstruments.htm

    Additionally, here is a link on how to add a timeframe to your script.
    http://www.ninjatrader.com/support/h....html?add3.htm

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Done.


      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ageeholdings, Today, 07:43 AM
      0 responses
      6 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X