Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MTF related question

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

    MTF related question

    Ninja Support team - Trying to code an MTF based indicator in NT 8 and have couple of questions and appreciate if you could clarify.

    - Indendent of the timeframe of the primary series - would like to perform certain calculations based on a 5 minute series.

    if (State == State.Configure) {
    AddDataSeries(BarsPeriodType.Minute, 5);
    }

    with this - I would code the indicator as "BarsInProgress ==1" to perform the calculations.

    However when I apply this indicator to a 5 minute chart(primary series itself is 5 minute) - what happens?

    Would this indicator still add another series of 5 minute bar?
    would my code "BarsInProgress ==1" is still going to work in this case?

    Appreciate any guidance/clarification on this.

    Edit - Based on further tests - it does appear like - even if the primary bars is 5 minute, it would still work with BarsInProgress == 1 ( same as NT 7).

    Do we need to use the "sync" mode even in Indicators as below?

    // Syncs a DataSeries object to the primary bar object
    primarySeries = new Series<double>(this);
    thanks.
    Last edited by vking; 12-31-2015, 08:34 PM.

    #2
    Hello vking,

    Thanks for your post.

    As you observed there is no issue when applying the 5 minute strategy to a 5 minute chart and that would be the case with syncing as well.

    You can test this with the sample provided here and apply to a 5 minute chart: http://ninjatrader.com/support/forum...ead.php?t=3572
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by WHICKED, Today, 12:56 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cre8able, Today, 01:16 PM
    0 responses
    1 view
    0 likes
    Last Post cre8able  
    Started by chbruno, 04-24-2024, 04:10 PM
    2 responses
    47 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by WHICKED, Today, 12:45 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by samish18, Today, 01:01 PM
    0 responses
    5 views
    0 likes
    Last Post samish18  
    Working...
    X