Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 945
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all. On page 943 I posted a script about the description of the work and examples of *dll libraries. I figured out a little bit why the script doesn't work.
1. #include<WinUser32.mqh> is not needed in this case.
2. Condition separately if(lastkey != 0) Alert("lastkey=",lastkey); stably correctly outputs the code of the key pressed. If you do a delay, there's no question about how it works.
3. Condition separately if(lastmouse != 0) Alert("lastmouse=",lastmouse); stably outputs 512, even if the mouse doesn't move. It's very rare for other numbers to pop up
In response to clicking mouse buttons.
4. if(lastwnd != 0) Alert("lastwnd=",lastwnd); returns an empty string, most likely because the library is old, not Unicode.
In help, read that the editor can work with *dll libraries, just drag and drop it in the editor window. It won't open.
Question. Will someone help to correct "IdleLib.dll" or better for money. If somewhere there is this topic(and other *dll) show the link.
Please advise how to prescribe (after a certain event) a ban on AutoTrading in an EA, i.e. to set programmatically button of terminalAutoTrading to prohibit. I tried to call constant ACCOUNT_TRADE_ALLOWED and change its value to false, but compiler says that this will have no effect ( ACCOUNT_TRADE_ALLOWED == false; //expression has no effect)
This task (to forbid the EA to trade) is very easily solved with semaphores (true/false.... allow/disallow trading).
Or is it important to press the "Auto Trade" button?
This task (to forbid the EA to trade) is very easily solved with semaphores (true/false.... allow/disallow trading).
Or is it so important to press the "AutoTrading" button?
If I cannot disableAutoTrading for the whole terminal, then of course I will do it. The matter is that I have several Expert Advisors running on my terminal and I
I want to use a separate EA to monitor Equity and disable AutoTrading for all EAs simultaneously in case of emergency, for example, when Aquity is reduced by 50%
If I cannot forbidAutoTrading for the whole terminal, I will surely do so. The thing is that I have several Expert Advisors running on my terminal and I
I wanted to use separate EA to monitor Account Profit and disable AutoTrading for all EAs at the same time in case of emergency, for example, when Account Profit drops by 50%
I have not checked it a bit. You have to replace WinUser32.mqh with attached one to make it work.
Checked it now, it works. And here are some more gimmicks
And I corrected previous post so that it works without replacing WinUser32.mqh
Greetings all... I know the problem is as follows. When I compile the code, the variable d takes the value 110 and the indicator shows everything correctly, but with the arrival of a new bar, the variable becomes 109 and, consequently, it completely screws up all of the indicator readings. I've already fucked up..... What the fuck????
Why during compilation one value is variable, but with the arrival of a new bar the variable changes?????
Can someone explain the difference between compiling and the arrival of a new bar????