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
Thank you for your acceptance... ;)
What is AND, OR, NOT
is not hard to understand, I'm just interested in these little things in code and their uses.
Or, for instance, this:
- condition a is EQUAL to b is easy to implement a==b
- But a is UNEQUAL to b condition is difficult to implement...
Sorry to bring up the basics again, but this will probably come in handy for many beginners...
Here is a ready-made code with combat training conditions. :)
It has everything... from defining and arranging fields to the programmer's handwriting...
https://www.mql5.com/ru/forum/51521
- But the condition a is UNEQUAL to b is already causing difficulties...
If you don't mind my saying so I would like to suggest a function which shows something in the taskbar shortcut.
I use it to monitor EAs performance at work without opening the terminal (lots of prying eyes).
it may also be useful in other cases.
//----------- Taskbar visualization function -------------------------------------
void ProfMT(string X)
{
int hwnd1 = WindowHandle(Symbol(), Period());
int hwnd_parent1 = 0;
while (!IsStopped())
{
hwnd1= GetParent(hwnd1);
if (hwnd1 == 0) break;
hwnd_parent1 = hwnd1;
}
if (hwnd_parent1 != 0) SetWindowTextA(hwnd_parent1,X);
}
Thanks.
There you go... Where else can you learn the truth so quickly than in a forum... ;)
Thank you! And sorry I slipped off topic.
I'll try to ask more questions in the book thread...
The OpenPosition() function for the tester.
Designed to open positions - trading operations of buying or selling at market prices. This function is universal and multicurrency, allowing to open positions for any symbol, not only for the current one. For example, an EA can be run on the EURUSD chart, and trade USDCAD.
OpenPosition() function for online.
Examples of using the OpenPosition() function.
1. Buy 0.1 lot of the current instrument
2. Sell 0.2 lots of EURUSD
3. Sell 0.12 lots of USDCAD with a 20 pips stop
4. Buy 0.15 lot of USDJPY with 40 pips stop
5. Sell 0.1 lot of GBPJPY with stop 23 and takeaway 44 pips
The trailer is a script to test the OpenPosition() function. The first 4 examples are commented out.OpenPosition() function for online.
Why not put lsComm in the function parameters?
Imho, the "flexibility" of the function expands...