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

Show indicator from another timeframe

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

    Show indicator from another timeframe

    Hi, I have a strategy working on at some timeframe.
    Lets say 60 minutes. I am using also context chart with another timeframe eg. 1 day. (I am using an indicator SMA from this context chart).

    So I have two questions:
    1) How can I show the indicator from the secon timeframe (1 day), at the 5minutes chart?

    2) Is it possible to show the chart of second timeframe (1day) at the same window? How?

    #2
    Hello Luigio,

    Thanks for your questions.

    1) How can I show the indicator from the second timeframe (1 day), at the 5minutes chart?
    The indicator can add the MTF plot by assigning the plot value in BarsInProgress 0. This way, the plot represents the last value before that primary data series creates another data point. Please see the attached example for a demonstration.

    If you are adding an indicator based on an additional data series that is added in the strategy, you could follow an approach similar to the example linked below that assigns the indicator value on BarsInProgress == 0.

    Plotting from a strategy - https://ninjatrader.com/support/help..._a_ninjasc.htm

    Further Multi Time Frame reference can be found here - https://ninjatrader.com/support/help...nstruments.htm

    2) Is it possible to show the chart of second timeframe (1day) at the same window? How?
    You could add plots for the Open High Low and Close values, but I could not advise a supported way to add the data series to the chart like the primary data series.

    Please let me know if you have any additional questions.
    Attached Files
    Last edited by NinjaTrader_Jim; 03-11-2019, 10:35 AM.
    JimNinjaTrader Customer Service

    Comment


      #3
      Perfect thanks. One more thing. How can I show the indicator from different time frame on Price panel?

      Comment


        #4
        Hello Luigio,

        The indicator that Add()'s the plots will need to have its Overlay property set to true for those plots to appear in the Price panel. (Set in Initialize())

        Let us know if there is anything else we can do to help.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        238 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        382 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        1 view
        0 likes
        Last Post oviejo
        by oviejo
         
        Started by pechtri, 06-22-2023, 02:31 AM
        10 responses
        125 views
        0 likes
        Last Post Leeroy_Jenkins  
        Started by judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        59 views
        0 likes
        Last Post DynamicTest  
        Working...
        X