- How do I get values from different Indicators through the iCustom function.
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- getting the highest bar
Hello everyone, how do i get the lowest margin level reached per trading day and the lowest account drawdown per trading day? I have been trying to do so but the values remains the same since they both are getting the data from the same function: AccountInfoDouble(ACCOUNT_MARGIN_LEVEL) and AccountInfoDouble(ACCOUNT_EQUITY) thus the lowest value changes with the present value changes. How do i acquire this data at a historical time?
As far as I know, the historical values for Account Balance and Margin etc do not exist.
You have a solution to acquire historical values for them: Create an EA to record the values as market evolves, and run the EA in "strategy tester".
As far as I know, the historical values for Account Balance and Margin etc do not exist.
You have a solution to acquire historical values for them: Create an EA to record the values as market evolves, and run the EA in "strategy tester".
Okay. Do you have an idea of how maybe to copy this values to an array ?
For example you want to acquire the lowest margin. During backtest read every single margin value and replace with minimum margin every time a new low happens. and print it as a comment on screen.
If you want all the values you should copy to file. I have no better solution.
For example you want to acquire the lowest margin. During backtest read every single margin value and replace with minimum margin every time a new low happens. and print it as a comment on screen.
If you want all the values you should copy to file. I have no better solution.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use