#property copyright "Copyright 2012, YangShu.net" #property link "http://yangshu.net" #property indicator_chart_window int now;//define a time variant extern int Cycle=144; int init() { DropAllAngleLine(); return(0); } int deinit() { DropAllAngleLine(); return(0); } void DrawAngleLine(string lname,int bar,double value,int angle) { int style; color linecolor; if (angle>0) { linecolor=Aqua; if (angle==85 || angle==25) style=STYLE_DASHDOT;else style=STYLE_DOT; } else { linecolor=Red; if (angle==-85 || angle==-25) style=STYLE_DASHDOT;else style=STYLE_DOT; } ObjectCreate(lname,OBJ_TRENDBYANGLE,0,bar,value); ObjectSet(lname,OBJPROP_COLOR,linecolor); ObjectSet(lname,OBJPROP_STYLE,style); ObjectSet(lname,OBJPROP_WIDTH,1); ObjectSet(lname,OBJPROP_ANGLE,angle); } void DropAllAngleLine() { int obj_total=ObjectsTotal(); string obj_name; for(int i=0;i0) ObjectDelete(obj_name); } } int start() { if (Bars