Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Run indicator on one instrument, and draw Global lines on another instrument.

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

    Run indicator on one instrument, and draw Global lines on another instrument.

    Hello, how are you, I need to make an indicator that, based on the parameters of an instrument, allows me to write in another instrument, for example a vertical line.


    For example, I want to place an indicator in the es, which with certain conditions marks a vertical line in the "ES", but also in the "NQ"

    if(---conditions of "ES"----){
    Draw.VerticalLine(this, Time[0].ToString()+ "taggreen", 0, true, "green"); // Global vertical line ES - ok

    Draw.VerticalLine(this, Time[0].ToString()+ "taggreen2", 0, true, "green2"); // Global vertical line NQ ??????????????

    }


    Thanks.

    #2
    Hello iradielt,

    Thank you for your post.

    In order to achieve this, you may add an NQ data series in your indicator with AddDataSeries():


    Then, you may work with your condition using ES as the primary series, then draw a vertical line. If you want to isolate any drawings to a particular instrument/data series, you could include the specific BarsInProgress as part of the condition. For more details regarding Multi-Time Frame & Instruments, please see the page below:


    Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    650 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    577 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X