for(x=0;x<6;x++) { if(iCustom(NULL,TF[x],"Trend1",Periods,Method,Price,2,1)>iCustom(NULL,TF[x],"Trend1",Periods,Method,Price,2,2) && iCustom(NULL,TF[x],"Trend1",Periods,Method,Price,2,2)<=iCustom(NULL,TF[x],"Trend1",Periods,Method,Price,2,3)) ObjectSetText("dI"+x+"0",CharToStr(sBuy),fontSize,"Wingdings",Lime); else if(iCustom(NULL,TF[x],"Trend1",Periods,Method,Price,2,1)<iCustom(NULL,TF[x],"Trend1",Periods,Method,Price,2,2) && iCustom(NULL,TF[x],"Trend1",Periods,Method,Price,2,2)>=iCustom(NULL,TF[x],"Trend1",Periods,Method,Price,2,3)) ObjectSetText("dI"+x+"0",CharToStr(sSell),fontSize,"Wingdings",Red); else ObjectSetText("dI"+x+"0",CharToStr(sWait),10,"Wingdings",Khaki); } is it not possible to access iCustom values like above and display Buy signal or Sell signal??hhhhhelp pls
What are the uchar values of sBuy, sSell and sWait?
Does the object (label?) "dI"+x+"0" exist?
Test your iCustom call with a print to check that you are calling correctly with the correct parameters.
values as below
int sBuy = 233;
int sSell = 234;
int sWait = 54;
yes the object exist as below
for (x=0;x<6;x++) for (y=0;y<4;y++) { ObjectCreate("dI"+x+y,OBJ_LABEL,WindowFind("Trend1"),0,0); ObjectSetText("dI"+x+y," ",10,"Wingdings",Goldenrod); ObjectSet("dI"+x+y,OBJPROP_CORNER,0); ObjectSet("dI"+x+y,OBJPROP_XDISTANCE,x*scaleX+(offsetX+80)); // scaleX == 120, offsetX == 200 ObjectSet("dI"+x+y,OBJPROP_YDISTANCE,y*scaleY+offsetY); }
any suggestion pls?
You are creating an object named "dI"+x+y
You are setting the text for an object named "dI"+x+"0"
Test your iCustom call with a print to check that you are calling correctly with the correct parameters.
Hi, I once found an MA (iMa_Check.mq4) which displayed MA-differences.
I modified it to display this difference of a different time-frame.
You may take it and modify it acc. to your needs...
You are creating an object named "dI"+x+y You are setting the text for an object named "dI"+x+"0" Test your iCustom call with a print to check that you are calling correctly with the correct parameters.Many Thnx Gumrai...I got it now...its a relief!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
real headach here
:D