Just 1 more question, if i put another If condition, the Static value will update if last condition is checked?
Static values are static.
I still don't undertstand, mql4 book doesn't explain about this, and i really need to know this, for example:
If the first condition happen, then next happen too, the static will save only the first one, or the last?
const can only be set once.
If you want to remember it between calls, you can try static const
Or look into Global Variables of the Terminal - https://docs.mql4.com/globals