Download MetaTrader 5

draw a trendline

To add comments, please log in or register
DavidHuynh
28
DavidHuynh  

I would like to draw a trendline which has its first anchor point shifted from the current bar. Look at the picture below:



Carl Schreiber
7355
Carl Schreiber  
   ObjectCreate("id",OBJ_TREND,0,tme1,prc1, tme2, prc2); 
   ObjectSet("id",OBJPROP_COLOR,clrWhite);
   ObjectSet("id",OBJPROP_STYLE,STYLE_SOLID);
   ObjectSet("id", OBJPROP_RAY, false);
   ObjectSet("id",OBJPROP_WIDTH,1);
Alexander Voronkov
22588
Alexander Voronkov  
DavidHuynh:

I would like to draw a trendline which has its first anchor point shifted from the current bar. Look at the picture below:




Time[0]+5*PeriodSeconds()

 5  = number of bars for shear.

To add comments, please log in or register