int candle_time_left = current_bartime + entry_signal_period_seconds - TimeCurrent() ; datetime + int - datetime datetime - datetime int = long // Possible loss of data due to type conversion
a datetime minus a datetime is a long.
int candle_time_left = int( current_bartime + entry_signal_period_seconds - TimeCurrent() );
WHRoeder, you made my day... ;-)
Thank you.
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
The code:
int candle_time_left = current_bartime + entry_signal_period_seconds - TimeCurrent();
gives warning with #property strict
How should I programm it correct?
Any help appreciated !