Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawLine on 2nd Instrument not working

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

    DrawLine on 2nd Instrument not working

    I have a chart with 2 instruments, one scaled on the left and one scaled on the right.

    Is there a way to make the DrawLine method draw on a particular scale (Left, Right, Overlay)?
    It appears it cannot draw on the scale of the secondary instrument.

    I have attached an indicator that is meant to be used for a chart with 2 instruments where the primary instrument is scaled on the Left and the secondary instrument is scaled on the Right. The indicator currently defaults to "6B 06-12" for 2nd instrument and therefore assumes "6E 06-12" for primary instrument.

    The indicator draws a line from session open to current price for each instrument.
    On the call to DrawLine for Instrument 2, when the 2nd parameter is set to 'false,' the line does not show up on the chart (due to the price being our of range for the current scale of primary instrument).
    When I change the 2nd parm to 'true' the line shows up and scrunches the scaling.

    Is this a bug that will be fixed in the future or is this a permanent 'feature'?

    Regards,
    Gary

    p.s.
    I believe that this may be related to the following issue:
    Attached Files

    #2
    Hello Gary,
    The draw object will plot on the primary bar series only. This is by design.

    You may simplify your indicator (remove the secondary bar series etc) and simply can add it on the 2nd chart instead. Please refer to this video which demonstrates how to apply an indicator based on another bar series..

    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      What I would like to do requires access to both data series as well as being able to draw things on the appropriate scale.

      Comment


        #4
        Hello,

        I will have this added to our suggestion list.

        Thank You very much and happy trading.

        -Brett
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X