Password to stop trading. Mt4
- Basket Trading System (T101 system)
- Online trading on Wave Theory (NIROBA method)
- I can't login to MQL5 community on MT5
Hi
I don't know if that is possible, but you can find out if you post your request in the Freelance section.
What if you created a Global Variable that you cleared the value of when your conditions are met, and you had to retype the password in the Global Variable to continue? Global Variable values have to be numeric, so the password would have to be numeric like a pin code, but this is the simplest method readily available that I can think of.
CLEAR PASSWORD:
if (drawDown <= 0.02 || consecutiveSL >= 4) { GlobalVariableSet("Password", 0); }
CHECK PASSWORD:
if (GlobalVariableGet("Password") == password) { //TRADE }
SET PASSWORD ON INITIALIZATION:
GlobalVariableSet("Password", password);
To type the password again you can access the Global Variable list by hitting F3 on your keyboard and double clicking the value column, in case you don't know.