Bar and Time isMonthLastTradingDay doesn’t generate MT5 EA
3件の返信
こんにちは、,
when creating an EA using isMonthLastTradingDay (SQX 137), MT5’s strategy code is missing the SQ.getMonth function.
This function is included in the MT4 when the strategy is generated for this platform. It’s possible to make it compile and be executed by adding some modified code lines to the EA.
int getMonth(datetime time) {
MqlDateTime strTime;
TimeToStruct(time, strTime);
return strTime.mon;
}
Is there any way to make SQ to add these code lines by itself, as it does for MT4?
お礼申し上げます。
Julián S.
0
Can you please attach the SQX strategy file? I will test
0
トーマスさん、こんにちは,
thank you for your answer. Here are the files: the sqx strategy and the mq5 file obtained from it that generates the compiling errors in the attached jpg file.
お礼申し上げます。
0
The strategy code compiles correctly for me when exported from the version 140. Which SQX build do you run?
0
3件の返信を表示中 - 1 - 3件目 (全3件中)