- Ricks creations: i am getting this error " implicit conversion from 'number' to 'string'
SetIndexLabel(0,"Fibo("+BandsPeriod+")["+TimeFrame+"]");
Appending a number to a string.
- Ricks creations: any advice would be great thanks.
Stop implicitly converting. Use a cast, IntegerToString, or StringFormat.
SetIndexLabel(0, StringFormat("Fibo(%d)[%s]", BandsPeriod, TimeFrame) );
- No idea what TimeFrame is since you didn't provide post all relevant code (using Code button) or attach the source file.
How To Ask Questions The Smart Way. (2004)
Be precise and inive about your problemPerhaps as_string might help you.
Why are MT5 ENUM_TIMEFRAMES strange? - General - MQL5 programming forum - Page 2 #11 (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
i am getting this error " implicit conversion from 'number' to 'string'
i am still new to coding and i am trying to figure out why this would cause this error.
Section below is where the error is being generated
Below is the entire custom indicator.
any advice would be great thanks.