Murilo Junqueira / Publications
Forum
Prevent closing terminal with open order
Is there any way to check some open order when the user clicks the button to close the terminal and prevent the terminal from closing until the order is closed? I tried doing it in the OnDeinit event but it didn't work: void OnDeinit ( const int reason) { if ( PositionSelect ( _Symbol )) {
Password to remove expert advisor
As I can request a password from the user so that he can remove the EA from the meta trader, I tried simply putting a return; in the OnDeinit event but it didn't work, AE disappeared from the screen
How do I block the right mouse button popup
How do I block the right click popup on a Stop Loss line, to not allow the user to delete the SL line. thanks
Do not allow the user to drag the Stop Loss line
Hello everyone, in my EA the user informs the Stop Loss value in a field, and when the trade opens, the Stop Loss line is placed on the chart automatically. I use the "trade" Class and the "Trade.Buy(...)" command where I inform the Take Profit and Stop Loss position, but after opening the operation
EA hotkeys conflict with terminal
Hello, I'm using some shortcut keys to perform some actions via keyboard.. the problem that when I configure a hotkey that MT5 also uses.. it works but also activates the function of MT5, for example the "SPACE" that activates a search box at the bottom of the chart.. my question is, how to "undo"
Wrong ASK value in onTick event
Hello everyone, in my EA, at times when the ASK line is too far from the BID, the value received in the onTick event with " SymbolInfoDouble(_Symbol, SYMBOL_ASK ) " does not match the value of the line in the graph, and it is not possible to do the necessary calculations correctly, because this