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 Timeframe

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

    Multi Timeframe

    Hi all, i have a question regarding Multi Timeframe indicators, is it possible to have a default data series?
    for instance, suppose im in a 60 minutes timeframe and have a MTF stochastic applied to the 60 minutes data series, then when i right click > intervals > 15 minutes, the stochastic remains calculating from the 60 minute chart, mi question is: Is there a command or something that will take the "default data series" of the chart to calculate so i dont have to reconfigure the indicator?


    case KBTMACDMTFV1.Day:
    Add(PeriodType.Day, timeframePeriods);
    break;
    case KBTMACDMTFV1.Minute:
    Add(PeriodType.Minute, timeframePeriods);
    break;

    #2
    Hello kabott,

    Thank you for your note.

    It is not documented to use the primary series bar information for a secondary series as this can lead to unexpected behaviors during optimizations.

    However, to do so:
    Add(Instrument.FullName, BarsPeriod.Id, BarsPeriod.Value, MarketDataType.Last);

    Add(string instrumentName, PeriodType periodType, int period, MarketDataType marketDataType)
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GLFX005, Today, 03:23 AM
    0 responses
    1 view
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by XXtrader, Yesterday, 11:30 PM
    2 responses
    11 views
    0 likes
    Last Post XXtrader  
    Started by Waxavi, Today, 02:10 AM
    0 responses
    6 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    11 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Working...
    X