Hello everyone, I have a small question, probably silly but I don't think I have understood this concept: if I do price=Ask, is my "Price" variable a variable that will vary as soon as the Ask varies? Or is it a variable that will take the current Ask price and store it without varying (at time t)? Otherwise how to store the value of the current Ask and not make it vary?
Thanks in advance for your help!
Translated with www.DeepL.com/Translator (free version)
- How to store a price into a variable?
- store the price in a variable
- How can I extract variable value outside if statement
- Ask is a predefined variable. It will not change unless you call RefreshRates or you return and get a new tick.
- Your price variable value will be lost when you return unless it is global or static. It doesn't change unless you assign to it.
-
Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 programming forum #2 2013.06.07
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