Hello forum,
I’ve been tinkering around with a program written to run on mt4 (metatrader 4) which is based on C.
I’m trying to change the format of a few titles i.e. “Position X”, “Position Y” and “Position Z”, but can only get it to work changing the format of one title (Position X) as follows:
Code:void Display(string text) { string lab_str="EA-"+IntegerToString(DisplayCount); double ofset=0; string _str=""; if (StringFind(text,"Position X",0)>=0) { ObjectSetText(lab_str,text,fontSise,fontName+" Bold",clrYellow); }else ObjectSetText(lab_str,text,fontSise,fontName,colour); }
Any thoughts as to how i can add “Position Y” and “Position Z” to the above so that they format the same please?