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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      72 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X