Forum

How can I draw arrow on chart from inside an EA?

This is MQL5 question. AIM: I want to add code that draws arrow from inside the Expert advisor/Robot so that the user can use the arrow signal to enter a trade. Note: I don't want to have a separate indicator for this. I have tried below code. I created WorkingArrowC() function then I called it in

How to use DLL to show closed trades in History tab of MT5

I have tried but it is not working #ifdef __MQL5__ #include <WinAPI\winapi.mqh> #else #define HANDLE int #define PVOID int #import "user32.dll" HANDLE GetAncestor( HANDLE hwnd, uint flags); int PostMessageW( HANDLE hwnd, uint Msg, PVOID param, PVOID param );

EA is opening too many orders at same price and time

I have an EA, the trade opening condition is as follows, after market move away from the first trade by 10 pips the EA should take the second trade, if market move away from the second trade by 10 pips third trade should be opened, etc. The EA is doing exactly according to the condition only when