Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

drawing a line

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

    drawing a line

    I would like to draw a line betweene each tweezer(two same hight bars or two same low bars )
    the programe :
    // Check for Tweezer pattern
    protected override void Initialize()
    {
    CalculateOnBarClose = true;
    Overlay = true;
    PriceTypeSupported = false;
    }
    protected override void OnBarUpdate()
    {
    if (CurrentBar < 2) return;
    if (High[0] == High[1])
    DrawLine("tag1",true, 2, High[0], 0, High[1], Color.Magenta, DashStyle.Solid, 5);
    if (Low[0] == Low[1])
    }
    the result: only one line was drawn and i want that all two same higts and each two same lowers bars will be drawn in the chart
    can someone helps ?
    does anyone has an ready indicator that shows evevn rtiple bars or more...
    Last edited by abirit10; 08-23-2011, 12:44 AM.

    #2
    abirit10, it looks like you commented out the DrawLine command?

    Do you run a CurrentBars check at the OnBarUpdate() start for this script?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    556 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X