HeatherMartin66
HeatherMartin66
친구

프로필 또는 사용자 검색을 통해 친구를 추가하면 친구가 온라인 상태인지 확인할 수 있습니다

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
HeatherMartin66
MQL5.커뮤니티에 등록됨