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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    101 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    61 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    25 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    35 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    38 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X