some help to get solution
Sherif Omar: i want to make adjust to object when state is active, but the case happend then didn't adjusted
- Use the debugger or print out your variables, and find out why.
- Always use strict. Fixing the warnings will save you hours of debugging.
Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference -
Start using the new Event Handling Functions.
Event Handling Functions - Functions - Language Basics - MQL4 Reference - Stop using IndicatorCounted and use the values in OnCalculate
How to do your lookbacks correctly. gab_data[arrayindex][0]= Time[L]; gab_data[arrayindex][1]= "up"; gab_data[arrayindex][2]= DoubleToString(High[i]); gab_data[arrayindex][3]= DoubleToString(Low[i-1]); gab_data[arrayindex][4]= curr_rec_obj;
Don't use a 2D array. Use a 1D array of a struct. Then you can store the datetime and prices without conversions in and out. And the code self-documents, which 0 … 4 doesn't.ObjectCreate(0,L+"ST",OBJ_VLINE,0,Time[L],0);
Do not use as series shifts in object names. Once a new bar forms you will try to use the same shift again and the create fails. (Use Bars-L or Time[L].)
whroeder1:
- Use the debugger or print out your variables, and find out why.
- Always use strict. Fixing the warnings will save you hours of debugging.
Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference -
Start using the new Event Handling Functions.
Event Handling Functions - Functions - Language Basics - MQL4 Reference - Stop using IndicatorCounted and use the values in OnCalculate
How to do your lookbacks correctly. - Don't use a 2D array. Use a 1D array of a struct. Then you can store the datetime and prices without conversions in and out. And the code self-documents, which 0 … 4 doesn't.
- Do not use as series shifts in object names. Once a new bar forms you will try to use the same shift again and the create fails. (Use Bars-L or Time[L].)
Thank you very much
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
hi
i want to make adjust to object when state is active, but the case happend then didn't adjusted