- Errors, bugs, questions
- OBJ_BITMAP, I have problem on create this object.
- BMP File location for tester in MT5?
Please don't post randomly in any section. MT4/mql4 has it's own section on the forum.
I have moved your topic to the correct section.
- Post in the correct place.
-
#resource "\\Images\\test.bmp" ObjectSet("Logo", OBJPROP_BMPFILE, "::\\Images\\test.bmp");
#resource "\\Indicators… iCustom("::Indicators…
Use the publicly released code - MQL5 programming forum (2017)
Resources - MQL4 ReferenceBe aware that using resources is 40x times slower than using CIs directly.
A custom indicator as a resource - MQL4 programming forum (2019)Also make use there are no spaces in the path.
Getting error 4802 when loading custom indicator that loads another custom indicator with iCustom - Technical Indicators - MQL5 programming forum. (2020)Also Use of Resources in MQL5 - MQL5 Articles (2011)
Sorry for the mistake in the section, I thought it was the correct one related to trading systems, next time I'll pay more attention.
- Post in the correct place.
-
#resource "\\Indicators… iCustom("::Indicators…
Use the publicly released code - MQL5 programming forum (20 17 )
Resources - MQL4 ReferenceBe aware that using resources is 40x times slower than using CIs directly.
A custom indicator as a resource - MQL4 programming forum (20 19 )Also make use there are no spaces in the path.
Getting error 4802 when loading custom indicator that loads another custom indicator with iCustom - Technical Indicators - MQL5 programming forum . (20 20 )Also Use of Resources in MQL5 - MQL5 Articles (20 11 )
Thanks so much for your response and the linked resources. Unfortunately, modifying the ObjectSet by removing the slashes didn't change anything, but it was still a mistake to correct.I tried to add a check on the creation of the bmp, and it gives me the error 4201 , so I think it may depend on my image
** SOLVED with this :
if ( ObjectFind("Logo" ) == -1) { ObjectCreate("Logo", OBJ_BITMAP_LABEL,0,0,0); if(!ObjectSetString(ChartID(),"Logo", OBJPROP_BMPFILE,"::Images\\test.bmp")) Print("Error creating bmp. Error code: %",GetLastError()); ObjectSet("Logo", OBJPROP_CORNER, 0); ObjectSet("Logo", OBJPROP_XDISTANCE, 25); ObjectSet("Logo", OBJPROP_YDISTANCE, 30); }
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use