You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
//+------------------------------------------------------------------+ //| TestObjectSetText.mq4 | //+------------------------------------------------------------------+ #property indicator_chart_window int init() { return(0); } int deinit() { int iObj; while(ObjectFind("o"+iObj) >= 0) { ObjectDelete("o"+iObj); iObj++; } return(0); } int start() { int i; // angle of text is not respected by MT4, font is respected i=45; ObjectCreate("o0", OBJ_TEXT, 0, Time[i], iHigh(NULL, 0, i)); ObjectSetText("o0", "Angle=180 in lieu of 90, Font=Terminal (OK)", 20, "Terminal", White); ObjectSet("o0", OBJPROP_ANGLE, 90); // angle of text is not respected by MT4, font is respected i=25; ObjectCreate("o1", OBJ_TEXT, 0, Time[i], iHigh(NULL, 0, i)); ObjectSetText("o1", "Angle=180 in lieu of 90, Font=Terminal (OK)", 10, "Terminal", White); ObjectSet("o1", OBJPROP_ANGLE, 90); // angle of text is respected by MT4, font defaults to Arial i=1; ObjectCreate("o2", OBJ_TEXT, 0, Time[i], iHigh(NULL, 0, i)); ObjectSet("o2", OBJPROP_COLOR, White); ObjectSetText("o2", "Angle=90 (OK), Font=Arial in lieu of Terminal"); ObjectSet("o2", OBJPROP_ANGLE, 90); return(0); } //+------------------------------------------------------------------+