I pasted BarPaint2 into 7 and ran a compile and got 2 errors:
CS1501- No oveload for method 'DrawLine' takes 8 line 138 and 139
CS1501-No overload for method "DrawRectangle' tak line 141
can someone help with this?
thanks,
Mike
----------------------------
here's the routine in question
// Draw lateral lines and shade area
if (lat )
{
int backBar = CurrentBar - latBar;
if ( Close[0] <= High[backBar] && Close[0] >= Low[backBar]
|| Close[1] <= High[backBar] && Close[1] >= Low[backBar] )
{
RemoveDrawObject("latHigh" + latBar.ToString());
RemoveDrawObject("latLow" + latBar.ToString());
DrawLine("latHigh" + latBar.ToString(), CurrentBar - latBar, latHigh, 0, latHigh, latColor, DashStyle.Solid,latWidth);
DrawLine("latLow"+ latBar.ToString(), CurrentBar - latBar, latLow, 0, latLow, latColor, DashStyle.Solid,latWidth);
DrawRectangle("lat"+latBar.ToString(), CurrentBar - latBar, latHigh,0, latLow, Color.Empty, latAreaColor, 1);
}
}
Comment