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

Unbind from timeframe

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

    Unbind from timeframe

    Hello!
    Can I unbind my indicator from the main data series? For example I want to see dynamic of changing ask or bid price? And I want to plot every change in my indicator. Not to save only "on bar close" value. F.e. I want to plot T&S via line in my indicator.

    How to do this? Thank you.

    #2
    Hi YevhenShynkarenko, thanks for your note.

    The plots will always be tied to the series they run on, you can run your indicator OnEachTick and set a plot value for every bid/ask update, but there will still be one plot index for every bar of the series. There are other ways to plot such as the OnRender method, There are examples of histogram plotting such as the Volume Profile indicator, this is the best example I could think of that will help.

    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks. Maybe I can create my own data series?

      Comment


        #4
        Hi YevhenShynkarenko, thanks for your reply.

        Yes, you can add any additional data series to the script, but if you plot based on this series then it will mess up the spacing of the bars. If you have a lifetime license you can pull up the OrderFlow Market Depth Map as an example of what you might be wanting to do. Although the code for this is not available, I believe this is the closest example of some indicator that is not necessarily tied to the primary data series.

        https://ninjatrader.com/support/help..._depth_map.htm - MarketDepthMap
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rayyyu12, Yesterday, 05:38 PM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by thumper57, Yesterday, 04:30 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by dcriador, Yesterday, 12:06 PM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by dcriador, Yesterday, 12:04 PM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by cutzpr, Yesterday, 08:54 AM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X