How draw Line
Hello good day, i am trying draw line in the windows chart with the class CCanvas, want connect two points for one line, how follow:
CCanvas miLineaUp;
atrhighVal[2]=maVal[2]+atrVal[2]*2.5; // EMA(21) + ATR(14)*2.5
atrhighVal[1]=maVal[1]+atrVal[1]*2.5; // EMA(21) + ATR(14)*2.5
y1=atrhighVal[2]; //previous value
y2=atrhighVal[1]; //actual value
miLineaUp.Line(x1, y1, x2, y2, clrAzure);
but the values of x1 and x2 are times? how i put these values,
thanks
Renato
https://www.mql5.com/en/articles/1503
- www.mql5.com
Hello good day, i am trying draw line in the windows chart with the class CCanvas, want connect two points for one line, how follow:
CCanvas miLineaUp;
atrhighVal[2]=maVal[2]+atrVal[2]*2.5; // EMA(21) + ATR(14)*2.5
atrhighVal[1]=maVal[1]+atrVal[1]*2.5; // EMA(21) + ATR(14)*2.5
y1=atrhighVal[2]; //previous value
y2=atrhighVal[1]; //actual value
miLineaUp.Line(x1, y1, x2, y2, clrAzure);
but the values of x1 and x2 are times? how i put these values,
thanks
Renato