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
)), what's wrong with a variable?
The ones in the link lose ...
Lack of string type
I have an idea, I do not know how useful it is but I need it from time to time, why not create a memory cell in Expert Advisors and indicators, in other words, the information that the Expert Advisor records by itself.
For example, the amount of initial deposit now needs to be calculated with the cycle of historical orders. In other words, this balance or start time could be stored in the Expert Advisor itself when it starts ,
That is, the Expert Advisor should have its own memory, for example, ExpertMemory, and organize work with it MemorySetDouble, MemorySetString, MemoryGetInteger . give Expert Advisor for example 512 kb for such memories ...
that it loses its value when the terminal or server is restarted
What difference does it make where the value is lost, in memory or in a variable?
The EA writes the value in the ex file itself, as if it were written to a csv file
So write down your file, what's the problem?
Or, if you don't need a string, use GlobalVariable...
The EA writes the value in the xx file itself, as if it were written to a csv file
That's not what I mean. What's the difference if it's overwritten when you start MT in eh or when you start EA in inite you write to a global level variable.
The difference is that by writing to the eh if transferred to another PC this record should be saved...