I have a situation with a broker's terminal where the broker will adjust the leverage on their end but it will not update visibly on the mt4 terminal. So my indicators and ea will continue to show the old leverage. I ended up re-logging in and then suddenly the indicators updated instantly with the new leverage.
But if a different account-related activity is performed, like deposits or withdrawals, it is instantly updated on the terminal. Account leverage should be similar, correct? I shouldn't have to do anything different in order for the leverage to update automatically on the terminal.
I also used this script to test if after changing the leverage from the broker client area, if the client was updating it (although my indicators/eas have the leverage function, I wanted to double-check with a different indicator. it was written for the old version of mql4, so I am only listing the compiled version.
here is the code for that script: https://www.mql5.com/en/code/11187
To add comments, please log in or register