When you post code please use the CODE button (Alt-S)!
Lord of the Trades: . How can I fix these warnings?
-
You fix these warning by learning how to code.
-
sName = CurTime();//possible loss of data due to type conversion
CurTime has been an obsolete function for over a decade. Use TimeCurrent().
-
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked, so we can't see your machine.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problemAlways post all relevant code (using Code button) or attach the source file.
You are assigning a datetime (a long) to (likely) an int. Code fails in 2038 when it overflows MAX_INT. Use a long.
-
p1 = iBarShift(Symbol(), Period(), ObjectGet("1" + sName, OBJPROP_TIME1));//implicit conversion from 'number' to 'string'
You are adding a string to a number, implicitly. Be explicit: string(sName).
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
In the code bellow I see some warning. How can I fix these warnings? Please help me. Thank you