Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator update

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

    indicator update

    Hello

    If I use 5 min chart and I want to have 1 min indicator on it (such as MACD). Can I do this using multy time-frame approach. I tried this by adding the following line Add(PeriodType.Minute, 1); however, this does not cause the indicator window to update every 1 minute.

    I can achieve this by adding the second time series to a chart with 1 minute data but I do not want to see the chart itself (because it take space) but only the indicator working on 1 minute data.

    Thank you.

    #2
    Hello,

    Where did you add the Add(PeriodType.Minute, 1) too? As you would need to create a copy of the MACD indicator and add this to here.

    Also when you use this you must seperate what you want to run on the main data series and what you want to run on the secondary (1 minute) time frame. You do this by checking what bars are in progress.

    if (BarsInProgress == 0)
    {

    //nothing

    }

    if (BarsInProgress == 1) // our secondary 1 minute data series
    {

    Set.Macd("MACD CALC HERE"); // Set your plot when the 1 min data series is in progress.

    }



    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    155 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    137 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X