HeatherMartin66 / プロファイル
友達
リクエスト
プロファイルまたはユーザー検索を経由して友達を追加できます。追加するとオンラインステータスがわかるようになります。
発信
HeatherMartin66
Hi could I just get your help on what the error is here and how to amend it. I just can't work out the 2 errors chatgpt isn’t picking it up right
// Intraday filter - uses TimeCurrent() inline (no t_now variable)bool IsIntradayAllowed(){ int hour = TimeHour (TimeCurrent()); // inline TimeCurrent()),no intermediate variable
bool allowed = false; if(Inp_IntradayStartHour <= Inp_IntradayEndHour) { if(hour >= Inp_IntradayStartHour && hour <= Inp_IntradayEndHour) allowed = true; }
What needs to be amended I cannot see what there error is can you help here is what it is highlighting - bold line
undeclared identifier Trend Duration EA.mq5 61 15'TimeCurrent' - some operator expected Trend Duration EA.mq5 61 25possible loss of data due to type conversion from 'double' to 'datetime' Trend Duration EA.mq5 265 53possible loss of data due to type conversion from 'double' to 'datetime' Trend Duration EA.mq5 278 542 errors, 2 warnings 2 2
// Intraday filter - uses TimeCurrent() inline (no t_now variable)bool IsIntradayAllowed(){ int hour = TimeHour (TimeCurrent()); // inline TimeCurrent()),no intermediate variable
bool allowed = false; if(Inp_IntradayStartHour <= Inp_IntradayEndHour) { if(hour >= Inp_IntradayStartHour && hour <= Inp_IntradayEndHour) allowed = true; }
What needs to be amended I cannot see what there error is can you help here is what it is highlighting - bold line
undeclared identifier Trend Duration EA.mq5 61 15'TimeCurrent' - some operator expected Trend Duration EA.mq5 61 25possible loss of data due to type conversion from 'double' to 'datetime' Trend Duration EA.mq5 265 53possible loss of data due to type conversion from 'double' to 'datetime' Trend Duration EA.mq5 278 542 errors, 2 warnings 2 2
: