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

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    150 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    6 views
    0 likes
    Last Post tkaboris  
    Working...
    X