• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tell indicators what type of bar, time frame, time to begin the calculations, and . .

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

    Tell indicators what type of bar, time frame, time to begin the calculations, and . .

    Hi:

    How can we tell each indicators to use:

    1. What time frame to calculated on (if different from the primary time frame)? So, if the primary is on 5 min, I may want the indicator to calculate on Daily, 60 min, or Weekly etc. instead.

    2. What bar type to use (if different from the primary bar type)? So, if the primary is candlesticks, I may want the indicator to calculate on Line Breaks, Renko, Range etc. instead.

    3. What day and time to actually begin the calculations from? So, if I want to begin the calculations from a specific time. For example, begin calculations from the default of today and at 9:30 am est (NY open) to present, or from 7:00 am today to present, or from 2:00 am est today to present etc. Once could also calculate from selecting a day in the past to present like calculate from Monday at 9:30 am to present as well.

    How can I do this?

    Where are indicators that inherently have these type of parameters already setup?

    What code can I add in the each indicator IF a indicator does not already have it for each of the 3 things above?


    #2
    Hello birdog,

    1. You may use the Add() method to define multiple time periods and then use the BarsArray object to reference these different time frames for indicator(s).

    You may see our Help Guide at the following link for an example of this.
    Add: http://www.ninjatrader.com/support/h....html?add3.htm
    BarsArray: http://www.ninjatrader.com/support/h...?barsarray.htm

    Our SampleMultiTeimFrame Strategy uses this as well that you may view under Tools -> Edit NinjaScript -> Strategy.

    2. Inside of the Add() method you may select a PeriodType.

    3. The Added series will start at the same time as your primary series does.

    Inside of your Indicator that you are calling all of these one from you may want to Add all of your different Time Frames and Bar Types so that once it has access to all of them you may use each series in any one of your Indicators.

    Using a Multi-series approach I would also recommend reading our Multi-Time Frame and Instruments section of our Help Guide as it will go over this indepth.
    http://www.ninjatrader.com/support/h...nstruments.htm
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jiknonikkocv, Today, 11:23 PM
    0 responses
    4 views
    0 likes
    Last Post jiknonikkocv  
    Started by luxurious_04, Yesterday, 07:13 PM
    2 responses
    10 views
    0 likes
    Last Post luxurious_04  
    Started by swcooke, Today, 07:35 PM
    0 responses
    5 views
    0 likes
    Last Post swcooke
    by swcooke
     
    Started by Miguel_88, Today, 06:41 PM
    0 responses
    6 views
    0 likes
    Last Post Miguel_88  
    Started by spikeruk, Today, 01:49 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X