Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Improperly formatted code edited by moderator. Please always use the CODE button (Alt-S) when inserting code.
No directly possible! Equity is a current overall value. It is not associated with any symbol or time-frame, nor is any historical records kept for it.
You will need to keep track of it and store the data somewhere for later reference.
hello..
please show me how i can get equity amount of previous time periods, like 5 mins intevals then store them in some kind of array. just for comparison purposes, something like
Improperly formatted code edited by moderator.
i used AccountInfoDouble() as an illustration. i know that it does take to parameters.
Thank you kindly. please advice.
This article about R-squared metric shows how to do an equity listener if you use the standard CStrategy class from the library. Otherwise you can do it on your own, borrowing code from that class.
R-squared as an estimation of quality of the strategy balance curve - MQL5 Articles
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hello..
please show me how i can get equity amount of previous time periods, like 5 mins intevals then store them in some kind of array. just for comparison purposes, something like
i used AccountInfoDouble() as an illustration. i know that it does take to parameters.
Thank you kindly. please advice.