Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Use multiple time frame of the same instument

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

    Use multiple time frame of the same instument

    Hello,

    I am making an automated strategy that use Some indicators from different time frames,
    SMA(50) of 15min time frame,
    ATR(14) of 1min chart
    and HMA (50) of the current Timeframe of the main chart (10Range)
    is it possible to do it ? No need to plot the SMA(50) and ATR(14)

    Thank you in advance,

    #2
    Hello pechtri,

    Thanks for your post.

    Yes, you could use the AddDataSeries() method to add additional data series to your script to be used for calculations.

    When referencing the indicator in your script, you would supply the indicator method with the BarsArray of the added series you want to have the indicator calculate from.

    For example, to have an indicator use the first added data series for calculations, you would pass in BarsArray[1].

    SMA(BarsArray[1], 20)[0]

    See the help guide documentation below for more information and sample code.

    AddDataSeries(): https://ninjatrader.com/support/help...dataseries.htm
    BarsArray: https://ninjatrader.com/support/help.../barsarray.htm
    Using Bars Objects as Input to Indicator Methods: https://ninjatrader.com/support/help...dicatorMethods
    SMA: https://ninjatrader.com/support/help...simple_sma.htm
    ATR: https://ninjatrader.com/support/help..._range_atr.htm
    HMA: https://ninjatrader.com/support/help...-_hull_hma.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X