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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    164 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    318 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    246 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    350 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X