Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Displaying trendline and indicators

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

    Displaying trendline and indicators

    I not sure if this is possible but hoping for help with this. How do you allow indicators, and trendlines to show up on multiple windows? For example I have the daily and 1 min side by side. Drawing lines or placing indicators does not go to the other. Is there a way to enable this?

    #2
    There are overloads to set IsGlobal to true for various drawing objects. For instance see the last two overloads at: https://ninjatrader.com/support/help.../draw_line.htm.

    There is not an inbuilt functionality to copy indicators to another window but you could save a chart template (or even make it the default) and apply the template to your other windows so you don't have to set them all up from scratch.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Thank you Bruce. Is there a way to have at least trendlines be shown on multiple windows at the same time? Instead having to redraw on every signal time frame you may look at.

      Comment


        #4
        Yes. If you're drawing them manually, in the line's properties (right-click on the line and choose Properties), click the dropdown under General for "Attach to" and choose the second option which reads "all charts". If you're drawing them programmatically with NinjaScript, use the overloads like I referenced above so you can set IsGlobal to true.
        Bruce DeVault
        QuantKey Trading Vendor Services
        NinjaTrader Ecosystem Vendor - QuantKey

        Comment


          #5
          Thank you again Bruce. Is there a way to have this done each time I manually draw (in place of having to do the above each time, which to be honest, is an inconvenience)?

          Comment


            #6
            Originally posted by gear2d View Post
            Thank you again Bruce. Is there a way to have this done each time I manually draw (in place of having to do the above each time, which to be honest, is an inconvenience)?
            No, but this has been requested, in that it's been asked if it could be made possible for an indicator to set manually drawn lines to IsGlobal mode (which is the same as attaching to "all charts"). See also: https://forum.ninjatrader.com/forum/...ines-as-global. If that request were granted, you could add an indicator to your chart that picks up when you draw anything and sets them to global.

            It should be possible now to write an indicator that watches for user drawn lines and then adds ITS OWN line that is global that matches your line. But that's a second line added by the indicator, not changing YOUR line which is what the request was about.
            Last edited by QuantKey_Bruce; 04-30-2023, 02:40 PM.
            Bruce DeVault
            QuantKey Trading Vendor Services
            NinjaTrader Ecosystem Vendor - QuantKey

            Comment


              #7
              Hello gear2d,

              Thanks for your post.

              QuantKey_Bruce is correct in stating that you could use the IsGlobal overload set to true to draw objects globally from a NinjaScript. For example:

              Draw.Line(NinjaScriptBase owner, string tag, bool isAutoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, bool isGlobal, string templateName)

              Draw.Line(): https://ninjatrader.com/support/help.../draw_line.htm

              If the drawings are being manually drawn on the chart, you could change the 'Attach to' property to '<Instrument> all charts' by right-clicking on the drawing, choosing Properties, clicking the drop-'Attach to' drop-down menu, and choose the option "<Instrument> all charts".

              See this help guide page: https://ninjatrader.com/support/help...s__ob.htm#Unde rstandingLocalVsGlobalDrawingObjects

              I have added your vote to the feature request QuantKey_Bruce mentioned. This request is being tracked under the number SFT-948.

              As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

              Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
              Brandon H.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Taddypole, 04-26-2024, 02:47 PM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_Eduardo  
              Started by futtrader, 04-21-2024, 01:50 AM
              6 responses
              58 views
              0 likes
              Last Post futtrader  
              Started by sgordet, Today, 11:48 AM
              0 responses
              4 views
              0 likes
              Last Post sgordet
              by sgordet
               
              Started by Trader146, Today, 11:41 AM
              0 responses
              5 views
              0 likes
              Last Post Trader146  
              Started by jpapa, 04-23-2024, 07:22 AM
              2 responses
              22 views
              0 likes
              Last Post rene69851  
              Working...
              X