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
...add PUSH notifications to YOURe-SignalOfTrade EA?
I have put together the ErrorRU() function, which returns a short or detailed Russian description of an error by its code. Both errors returned by the trade server and errors of executing MQL programs are detected. Not all errors, however, have a detailed description with recommendations "What to do", but that's how it is.
I am publishing the function in the script for testing it.
If someone needs a variation in the form of MQH-file, you can get it from my website.
Greetings Igor. Thanks for the feature, it's very useful
Hello KimIV.
You have a wonderful function i-Profit.mq4 on your website.
Could you please tell me how to extract balance data from it?
// 0 - current balance
// 1 - balance at the beginning of the day.
// 2 - balance at the beginning of the week.
// 3 - balance sheet at the beginning of the month
// 4 - balance at the beginning of the quarter
// 5 - balance at the beginning of the year
// 6 - balance sheet as of the user date
The ProfitByPrice() function.
This function is one of my small set of predictive functions. Predictive in the sense that they show the future, i.e. they answer the question: "What will happen if some event happens? This function, for example, returns a profit in the currency of the deposit if the current positions are closed at the price passed as a parameter.
ZZY. Attached is a traditional script for testing the function.
ZZZY. There is no traditional sy among the parameters as the price passed in the other parameter should be linked to a trade instrument. I decided not to bother with it too much and link it to the current symbol.
KimIV:
We need to set a pending order at a calculated price, provided that there are no other orders or positions within Distanc distance of that price. You don't seem to have such a function: the existence of an order or position at a distance from a given price?
KimIV:
We need to set a pending order at a settlement price, provided there are no other orders or positions within Distanc distance of that price. You don't seem to have such a feature: The existence of an order or a position at a distance from a given price?
You can draw something similar to this one...
update...
Attached is a script to test the ExistOPNearPrice() function
Dear Igor, thank you for your functions that make our first steps in programming easier! Could you help me, I need a function to close one position, but without reference to other functions, but to have Select, 3 attempts and error handling! And in the start I would prescribe conditions with check functions without Select so as not to slow down the process. So far I'm usinga Selekt loop in the startwith various checks, calling the close function without Selekt, which slows down almost twice as much! What can you advise me? Thanks!
Isn't ClosePosBySelect() something?