mql5如何获得绘制的趋势线的两个价格

 

mql5如何获得绘制的趋势线的两个价格?谢谢

ObjectGetDouble(0,趋势线,OBJPROP_PRICE,0);  这个好像只能获得起点的价格,也没有 OBJPROP_PRICE1, OBJPROP_PRICE2

 
试试   ObjectGetDouble(0,趋势线,OBJPROP_PRICE,1); 
 
   Print (ObjectGetDouble(0,"Trendline 13896",OBJPROP_PRICE1) );
   Print (ObjectGetDouble(0,"Trendline 13896",OBJPROP_PRICE2) );
 
   Print ( TimeToStr(ObjectGetInteger(0,"Trendline 13896",OBJPROP_TIME1) ) );
   Print (TimeToStr(ObjectGetInteger(0,"Trendline 13896",OBJPROP_TIME2)) );
原因: