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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      169 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      88 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      128 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      208 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      185 views
      0 likes
      Last Post CarlTrading  
      Working...
      X