and as you see!!
always there are problems to be solved . .
but all information on this picture, are very important!!
. .
always there are problems to be solved . .
but all information on this picture, are very important!!
. .
Be yourself
Rules based method based on zz, fractals, psar, and s/d 118 replies
EA based on indicator which changes based on numbers of bars 0 replies
Trading Price Based Charts Instead of Time Based Charts 1 reply
Price-based Vs. Pip-based 5 replies
I have forgotten which pairs are "commodity based" 15 replies
int OnInit() { ObjectsDeleteAll(0); EventSetTimer(1); return(INIT_SUCCEEDED); } void OnDeinit(const int reason) { ObjectsDeleteAll(0); EventKillTimer(); } int font_size=6; double fit=1; double heightC=1; double widthC=1; double heightW=1; double widthW=1; double fit2=1; void OnTimer() { heightW=(WindowPriceMax()-WindowPriceMin()); widthW=WindowBarsPerChart(); heightC=ChartGetInteger(0,CHART_HEIGHT_IN_PIXELS); widthC=ChartGetInteger(0,CHART_WIDTH_IN_PIXELS); if(heightC>0.0000000001) fit2=widthC/heightC; Print(DoubleToString(heightC,2),"//",DoubleToString(widthC,2),"//",fit2); if(heightW>0.00000001)fit=widthW/heightW; double widthS=WindowBarsPerChart(); int H1=325; int L1=113; string name="XXs_0"; ObjectDelete(name); ObjectCreate(0,name,OBJ_TREND,0,Time[H1],High[H1],Time[L1],Low[L1]); ObjectSetInteger(0,name,OBJPROP_COLOR,clrAqua); ObjectSetInteger(0,name,OBJPROP_STYLE,2); ObjectSetInteger(0,name,OBJPROP_WIDTH,1); double slope=(High[H1]-Low[L1])/(H1-L1)*fit; double angle=MathArctan(-slope/2)*rad; name="XX_1"; ObjectDelete(name); ObjText(name, (H1+L1)/2,(High[H1]+Low[L1])/2, "AB: "+High[H1]+"->"+Low[L1],angle, clrWhite,8,0); Comment("H: "+heightC+"\nW="+widthC+"\nSlope="+slope+"\nfit="+fit+"\nangle="+angle); } double rad=180/M_PI; void ObjText(string name,int C,double price, string value, double angle, color clr, int FONTSIZE, int style) { //Print(angle); ObjectCreate(0,name,OBJ_TEXT,0,Time[C],price); ObjectSetString(0,name,OBJPROP_TEXT,"XXXXXXXXXXXXXXXXXXXXXVVVVVVVVVVVVVVVVVFFFFFFFFFFFFFFFDDDDDDDDDDDDSSSSSSSSSSS"); ObjectSetString(0,name,OBJPROP_FONT,style); ObjectSetInteger(0,name,OBJPROP_FONTSIZE,FONTSIZE); ObjectSetDouble(0,name,OBJPROP_ANGLE,angle); ObjectSetInteger(0,name,OBJPROP_COLOR,clr); }
Dislikedwe spoke already about another noisy thing, screen resolution .. this topics deserves many threads and researches . . do you see last picture ... even we use rules of math in right way. ... we some noise when zooming in/out . . {image} - look at text inclination and line inclination ?? even we use the same slope ??Ignored