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?

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by usazencort, Today, 01:16 AM
    0 responses
    1 view
    0 likes
    Last Post usazencort  
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    603 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    23 views
    0 likes
    Last Post xiinteractive  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    22 views
    0 likes
    Last Post Pattontje  
    Started by flybuzz, 04-21-2024, 04:07 PM
    17 responses
    230 views
    0 likes
    Last Post TradingLoss  
    Working...
    X