Reposted
CK
Have an extern value that you reset each week to preserve a certain margin.
Look at https://docs.mql4.com/account/AccountFreeMargin
-BB-
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
Hi All,
I am working on a scalping EA. However, due to the setup, the drawdown is high, since I am using dynamic lots for trades.
Is it possible, that the Backtest stops at the end of hte week, and ask for my value of the Capital that I want to save. Say I start with a capital of 2K, and during one week I grow to 10K. Now by the begining of the next week, I want to lock 8K out of the previous gains, so that my captial never drops below 2K of initial capital during the current week.
I don't know if it can be controlled through equity, margin functions, but somehow I want my EA to respect my permission before it restarts the next week.