#property strict
honest_knave:
Weird thing is that if I use this, my indicator won't repaint
#property strict
Dua Yong Rew:
Weird thing is that if I use this, my indicator won't repaint
Is the compiler giving you warnings now?
Weird thing is that if I use this, my indicator won't repaint
Dua Yong Rew:
Weird thing is that if I use this, my indicator won't repaint
You have codding issues then that need to be changed in order to make your code "strict compatible"
Weird thing is that if I use this, my indicator won't repaint
Mladen Rakic:
You have codding issues then that need to be changed in order to make your code "strict compatible"
Where can I read on strict compatible?
You have codding issues then that need to be changed in order to make your code "strict compatible"
Dua Yong Rew: Where can I read on strict compatible?
| Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference |
Previous | Strict |
---|---|
Implicit initialization of all the variables (both global and local ones) by zero | Only global variables are initialized. In local variables, only strings are initialized implicitly |
Local arrays are not released when exiting the function (implicitly static) | Local arrays are released when exiting {} block |
"Array out of range" does not cause a critical error | "Array out of range" is a critical error causing the program to stop (check logs) |
whroeder1:
Likely one of these
Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference |
Previous | Strict |
---|---|
Implicit initialization of all the variables (both global and local ones) by zero | Only global variables are initialized. In local variables, only strings are initialized implicitly |
Local arrays are not released when exiting the function (implicitly static) | Local arrays are released when exiting {} block |
"Array out of range" does not cause a critical error | "Array out of range" is a critical error causing the program to stop (check logs) |
Actually there are no errors generated when I use the strict line.
Just that my indicator cannot repaint
Dua Yong Rew:
Check your Experts log for "Array out of range" error.
Actually there are no errors generated when I use the strict line.
Just that my indicator cannot repaint
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
I tired to put
But when I load the indi, the inputs windows still show TF instead of Time Frame
#property link "https://www.mql5.com"
#property version "1.10"
input ENUM_TIMEFRAMES TF = PERIOD_W1; // Time Frame
input ENUM_LINE_STYLE Style = 3; // Line Style
input color Clr = MediumOrchid; // Colour
input bool DropBack = false; // Line Drop Back
input int Lines = 10; // Number Of Lines
input int Count = 200; // Data Points
input int Proximity = 25; // Proximity
input int Distance = 200; // Distance
input bool UseHL = true; // User High Low
input bool UseCC = true; // User Close