[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 512
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
Can you please advise if it is possible to write some text in mql4 into a file, e.g. *.txt, and then retrieve this data for trading. The idea is that the EA would learn to trade itself, when the price changes by >100*Point per couple of bars, the EA would memorise these values and then try to use them (indicator value +/- n% to open an order). This could also be implemented in the EA, but after closing MetaTrader all variable values seem to be reset to zero
help me write a function that would perform a certain action, if the last 10 positions were closed in minus
Thanks in advanceYes, yes, I got you ... But before I give up my hard-earned money, I want to make sure that the script I need is not available in the public domain
Scripts are usually designed to perform a simple uniform action. It's best to use a set of scripts, each of which is bound to a different hotkey.
For example:
And so on.
You can find the corresponding ready-made scripts in the database by doing a search, google requests like reverse script site:mql4.com
help me write a function that would perform a certain action if, for example, the last 10 positions were closed in minus
Thanks in advanceIt is not difficult to calculate the number of last orders closed at a loss in the loop. But how can we write code that would perform an unclear action?
Hello! Here's a question... Is it because of the abundance of input conditions and auxiliary functions, as well as external variables like extern double that the EA may become sluggish? It's just a mystery in the tester... The first robot with everything hidden in the code has more drawdowns than the robot where everything is extern double... Although both have the same variable parameters. (and they are the same too).
Check again the values of variables - maybe they are different and when compiling the first one, will work differently from each other.
Apart from that, compare them with this program in the search - download - WinMergeU.exe.
I downloaded from https://www.mql5.com/ru/code/9274
I downloaded from here a script to automatically set a pre-set take and loss, but they start to float following the price, can you tell me what the problem is and how to set it up so that they are static?
We need a code that calculates
This is not difficult. Write a subprogram:
At the start of the EA we write: