I'm using the following code structure...wherein 'flipup' and 'flipdn' represent the bars on which a confirmed trend-change occurs.
if(flipdn)
{
{DrawLine("UpLine",false,CurrentBar-PvtBar[1],PvtPrice[1],PvtHiBarsBack,PivotHigh,Color.Blue,DashStyle.Soli d,2);}
}
if(flipup)
{
{DrawLine("DnLine",false,CurrentBar-PvtBar[1],PvtPrice[1],PvtLoBarsBack,PivotLow,Color.Red,DashStyle.Solid, 2);}
}
Comment