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 traderqz, Today, 12:06 AM
    5 responses
    8 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Mongo, Today, 11:05 AM
    2 responses
    7 views
    0 likes
    Last Post Mongo
    by Mongo
     
    Started by guillembm, Today, 11:25 AM
    0 responses
    3 views
    0 likes
    Last Post guillembm  
    Started by Tim-c, Today, 10:58 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by traderqz, Yesterday, 09:06 AM
    4 responses
    29 views
    0 likes
    Last Post traderqz  
    Working...
    X