Check this: https://fxdreema.com/builder/shared/2fi7fHKsc
Best posts made by reyxv16
Latest posts made by reyxv16
-
RE: How I disable Algo-Trading Button or send CTRL-E by FxDreemaposted in Questions & Answers
I think it is already included in Metatrader 5
-
RE: How I disable Algo-Trading Button or send CTRL-E by FxDreemaposted in Questions & Answers
Then it would look like this:

And it would be used like this:

-
RE: How I disable Algo-Trading Button or send CTRL-E by FxDreemaposted in Questions & Answers
No, you didn't understand me, you need to create the custom block here: https://fxdreema.com/studio/MQL5
-
RE: How I disable Algo-Trading Button or send CTRL-E by FxDreemaposted in Questions & Answers
That would be the code for the block to turn off autotrading, you can vary the operation by modifying the line "if(Status != false)" to "if(Status == false)" to turn it on or create another block just to turn it on.
-
RE: How I disable Algo-Trading Button or send CTRL-E by FxDreemaposted in Questions & Answers
Create a custom block, add the following to the code:
bool Status = (bool) TerminalInfoInteger(TERMINAL_TRADE_ALLOWED);
if(Status != false)
{
HANDLE hChart = (HANDLE) ChartGetInteger(ChartID(), CHART_WINDOW_HANDLE);
PostMessageW(GetAncestor(hChart, GA_ROOT), WM_COMMAND, MT_WMCMD_EXPERTS, 0);
}
~next~
And below in the "Global variables, includes" window add the following:
#ifdef MQL5
#include <WinAPI\winapi.mqh>
#define MT_WMCMD_EXPERTS 32851
#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 );
#import
#define MT_WMCMD_EXPERTS 33020
#endif#define WM_COMMAND 0x0111
#define GA_ROOT 2 -
RE: How I disable Algo-Trading Button or send CTRL-E by FxDreemaposted in Questions & Answers
I made a custom block for mt4 and one for mt5, which one do you need?
-
Position order mismatch errorposted in Bug Reports
Hello, I am working with events in MQL5 and after detecting that a pending order is converted into a position, the EA returns the error "Positions order mismatch" and the events stop working, what can I do? I have tried to program the EA in another way but still the error persists.
-
RE: Error opening builderposted in Bug Reports
I found the problem, there was a block of custom code that apparently was not saved correctly and therefore showed the error.
I have solved it by deleting that block, I can already access the account. -
Error opening builderposted in Bug Reports
Hello, I tried to create a new project and now only this error appears:
TypeError: Can not use 'in' operator to search for 'active' in _488
I already tried in another browser and the behavior is the same, what can I do?
Thank you.-
