Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Horizontal Lines

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

    Horizontal Lines

    Hi, is it possible using the strategy builder to have a horizontal line generated by the strategy builder display on all charts of the same instrument.
    Thanks in advance.

    #2
    Hello Linda1507,

    Thanks for your post.

    The Draw.HorizontalLine() code generated in the strategy builder does not contain the method overloads to create a global line.

    You could create your strategy as needed and then "unlock" the code and change the Draw.HorizontalLine method overload needed to support a global line. To see the overload, please review the help guide link here: https://ninjatrader.com/support/help...zontalline.htm

    Once your strategy builder code is unlocked, you would be unable to use the strategy builder on that particular strategy and could only change it through the Ninjascript editor, going forward.

    Please note that a global line drawn by the strategy would be removed from all charts when the strategy is removed or becomes disabled.

    Comment


      #3
      Thank you, I am testing an alternate solution at the moment. The solution is adding additional data to the strategy and using it to draw lines onto one chart only.
      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X