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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    22 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    281 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    279 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    130 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X