Ich sagte Dir bereits, es liegt am RAY:
Beispiel Skript
Code:
//+------------------------------------------------------------------+
void OnStart()
{
datetime PrevTime=Time[5];
datetime FutTime=TimeCurrent()+3*PeriodSeconds();
double OnePriceLevel=Bid;
drawtline("DemoTrend",PrevTime,OnePriceLevel,FutTime,
clrViolet,STYLE_SOLID,1);
}
//+------------------------------------------------------------------+
void drawtline(string name,datetime tm1,double P,datetime tm2,
color clr,int styl, int WIDTH)
{
if(ObjectFind(0,name)!=-1) ObjectDelete(0,name);
ObjectCreate(0,name,OBJ_TREND,0,tm1,P,tm2,P);
ObjectSet(name,OBJPROP_COLOR,clr);
ObjectSet(name,OBJPROP_STYLE,styl);
ObjectSet(name,OBJPROP_WIDTH,WIDTH);
ObjectSetInteger(0,name,OBJPROP_RAY_RIGHT,false);
}
Die ist ohne Verlängerung. AVT