Questions from Beginners MQL4 MT4 MetaTrader 4 - page 98

 

Please advise where exactly it is inserted.

#include <WinUser32.mqh>

#define VK_HOME 0x24 Where can I find out all variables for all keys?

void start() { int handle=WindowHandle(Symbol(),Period());

PostMessageA(handle,WM_KEYDOWN,VK_HOME,0);}

at compilation it says void start...

in the source code of the ready EA? If there is an allert that this script should be attached to, it should push the button from the keyboard

 
Sobaka777:

Please advise where exactly it is inserted.

#include <WinUser32.mqh>

#define VK_HOME 0x24 Where can I find out all variables for all keys?

void start() { int handle=WindowHandle(Symbol(),Period());

PostMessageA(handle,WM_KEYDOWN,VK_HOME,0);}

at compilation it says void start...

in the source code of the ready EA? If there is an alt to which this script should be attached, it should push the button from the keyboard

put in the program header from where the PostMessage is launched

 

What is the magic of a manually opened order? What will OrderMagicNumber() return? 0?

 
leonerd:

What is the magic of a manually opened order? What will OrderMagicNumber() return? 0?

yes
 
Kirill Belousov:
yes

Thank you.

 

What does the error mean.

cannot set timer

It's popping up in the tester.
 
leonerd:

What does the error mean.

cannot set timer

In the tester, it pops up.

Unable to set the timer

 
Alekseu Fedotov:

impossible to set the timer


Thanks for the translation :)

 

Why doesSymbolInfoInteger(sym,SYMBOL_SELECT) return true if sym=="" ?

Same with MarketInfo(sym,MODE_TRADEALLOWED).

 
leonerd:

Why does SymbolInfoInteger(sym,SYMBOL_SELECT) return true if sym=="" ?

Same with MarketInfo(sym,MODE_TRADEALLOWED).

How should it be?

Reason: