israel
Posts: 4 since Dec 2009
Thanks Given: 4
Thanks Received: 1
|
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])
DrawLine("tag1",true, 2, Low[0], 0, Low[1], Color.Magenta, DashStyle.Solid, 5);
}
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 ?
|