Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893

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
hello all
getting crazy with a function not working.
I have a report showing open PnL and closed positions.
I'd like to show a column with maxDD registered and save it into a file for checking when reload the indicator.
so when OpenPNL < last recorderd DDMAX, then "update DDMAX".
the code below unfortunately doesn't freeze the DDMAX that changes also when OPENPNL > DDMAX.
can someone suggest a fix?