Paolo Besana / Publications
Forum
Template error when declaring function body outside the class body
Hello everyone. Compiling this code I am getting the following error: "function 'Test::test' already defined and has different return type" template<typename any > struct Optional { any value; }; class Test { public: template<typename any > Optional < any > test(); };
Cannot load 'Custom.dll' [126] on MacOs Terminal
Hello Forum, I am using the MT5 version for MacOs (M3 chip). I created a custom .dll to import into an EA, but I keep getting "Cannot load 'Custom.dll' [126] " error message. I also tested the .dll on my windows computer and everything is working fine. I both tried to locate the file into
Filled OBJ_RECTANGLE not showing.
Good evening. I am writing an indicator which plots some levels, where each level is made of rectangles plotted for each bar. I have noticed that, in some cases, filled rectangles are not plotted on the chart, while if OBJPROP_FILL is set to false, it is plotted. (See attached files for screenshots
Canvas Lagging when chart is scrolled.
Good morning, i''m new in the mql5 community. I created an indicator to show day separators. First I coded it using the default OBJ_VLINE , but then I moved to canvas since I want to have the line transparent. At the moment I'm just updating the Canvas if OnChartEvent is called (for easier testing)