Arpit T: What is difference between these 3 methods of calling?
None.
- Reading the documentation, NULL gets replaced with current chart symbol. Zero means PERIOD_CURRENT and get replaced with the current chart period.
- Until a few years ago, the predefined variables did not exist in MT4; you had to use the function call versions.
-
Be careful with NULL.
- On MT4, you can use NULL in place of _Symbol only in those calls that the documentation specially says you can. iHigh does, iCustom does, MarketInfo does not, OrderSend does not.
- Don't use NULL (except for pointers where you explicitly check for it.) Use _Symbol and _Period, that is minimalist as possible and more efficient.
- Zero is the same as PERIOD_CURRENT which means _Period. Don't hard code numbers.
- MT4: No need for a function call with iHigh(NULL,0,s) just use the predefined arrays, i.e. High[].
- Cloud Protector Bug? - MQL4 programming forum (2020)
William Roeder #:
None.
hey, you seem like someone that could help me, would you mind either having a look at my thread from today or going into dms for a minute?
None.
- Reading the documentation, NULL gets replaced with current chart symbol. Zero means PERIOD_CURRENT and get replaced with the current chart period.
- Until a few years ago, the predefined variables did not exist in MT4; you had to use the function call versions.
-
Be careful with NULL.
- On MT4, you can use NULL in place of _Symbol only in those calls that the documentation specially says you can. iHigh does, iCustom does, MarketInfo does not, OrderSend does not.
- Don't use NULL (except for pointers where you explicitly check for it.) Use _Symbol and _Period, that is minimalist as possible and more efficient.
- Zero is the same as PERIOD_CURRENT which means _Period. Don't hard code numbers.
- MT4: No need for a function call with iHigh(NULL,0,s) just use the predefined arrays, i.e. High[].
- Cloud Protector Bug? - MQL4 programming forum (2020)
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