Наряду с переменными и функциями, массивы являются практически неотъемлемой частью любого языка программирования. Статья должна быть интересна в первую очередь новичкам, приступившим к изучению программирования на MQL5. Опытным программистам представляется хорошая возможность подытожить, обобщить и систематизировать свои знания.
How do I apply it? I try to add call of function in OnTimer() and put a condition that if WeekDays_Check(3)==true and time since beginning of Wednesday within seconds>14300 && seconds <14800, then trade will be opened.
Can you please tell me how to set up trading on a certain day at a certain time?
I searched through the forum and read Programming basics in MQL5 - Time, but still do not understand how to fit it all into the algorithm?
For example, I need to open a deal on Wednesday after the first 4 o'clock candle.
I take everything about trading on a certain day from my article:
How do I apply it? I try to add call of function in OnTimer() and put a condition that if WeekDays_Check(3)==true and time since beginning of Wednesday within seconds>14300 && seconds <14800, then trade will be opened.
Doesn't work like this( It opens on any day. Explain how to make a trade on a specific day at least?
Thanks in advance. If the code is childish - sorry, I just learn)
Yes, it worked! Thank you very much. Of course, there are still some errors in day offsets, but that's already my part of the code problem, but as it is, everything works. If you put false on unnecessary days, in true the trade goes - that's what's needed.
I reregistered at Insta Trader connected a real account, in MQ5 I signed up for a signal at /**/ subscription was successful, then opened Insta Trader and went into the system settings to enable the signal but Atam writes signal is not connected, how do I connect the signal and run it in work with real money [Trading account #5216372]
752360: I reregistered at Insta Trader connected a real account, signed up for the signal in MQ5 / ***/ subscription was successful, then opened Insta Trader and went into the system settings to enable the signal but Atam writes signal is not connected, how do I connect the signal and put it into effect with real money [Trading Account #5216372].
Same as with unreal money, i.e., log into your real account and sign up for the signal.
Could you please tell me how to set expiry date of pending order (EXPIRATION) in CTrade class? I tried to add this position when sending CTrade.SellStop(Lot,Price,NULL,SL,TP,expiration); it always says "can't convert enum". The only thing I found in CTrade's documentation is how to find out the lifetime for the RequestExpiration pending order, but I don't know how to set it.
Can CTrade set the expiration time? Or may be, it may be necessary to use the full request MqlTradeRequest through OrderSend()? I don't really understand how to use it, because CTrade is mentioned in all the articles.
Could you please tell me how to set expiry date of pending order (EXPIRATION) in CTrade class? I tried to add this position when sending CTrade.SellStop(Lot,Price,NULL,SL,TP,expiration); it always says "can't convert enum". The only thing I found in CTrade's documentation is how to find out the lifetime for the RequestExpiration pending order, but I don't know how to set it.
Can CTrade set the expiration time? Or may be, it may be necessary to use the full request MqlTradeRequest through OrderSend()? I don't really understand how to use it, because CTrade is mentioned in all the articles.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Can you tell me how to display a two-dimensional array as a constant, i.e. set all parameters manually?
https://www.mql5.com/ru/articles/567
Can you please tell me how to set up trading on a certain day at a certain time?
I searched through the forum and read Programming basics in MQL5 - Time, but still do not understand how to fit it all into the algorithm?
For example, I need to open a deal on Wednesday after the first 4 o'clock candle.
I take everything about trading on a certain day from my article:
How do I apply it? I try to add call of function in OnTimer() and put a condition that if WeekDays_Check(3)==true and time since beginning of Wednesday within seconds>14300 && seconds <14800, then trade will be opened.
Doesn't work like this( It opens on any day. Explain how to make a trade on a specific day at least?
Thanks in advance. If the code is childish - sorry, I just learn)
Can you please tell me how to set up trading on a certain day at a certain time?
I searched through the forum and read Programming basics in MQL5 - Time, but still do not understand how to fit it all into the algorithm?
For example, I need to open a deal on Wednesday after the first 4 o'clock candle.
I take everything about trading on a certain day from my article:
How do I apply it? I try to add call of function in OnTimer() and put a condition that if WeekDays_Check(3)==true and time since beginning of Wednesday within seconds>14300 && seconds <14800, then trade will be opened.
Doesn't work like this( It opens on any day. Explain how to make a trade on a specific day at least?
Thanks in advance. If the code is childish - sorry, I just learn)
?
Maybe.
?
Yes, it worked! Thank you very much. Of course, there are still some errors in day offsets, but that's already my part of the code problem, but as it is, everything works. If you put false on unnecessary days, in true the trade goes - that's what's needed.
Thanks again
I reregistered at Insta Trader connected a real account, signed up for the signal in MQ5 / ***/ subscription was successful, then opened Insta Trader and went into the system settings to enable the signal but Atam writes signal is not connected, how do I connect the signal and put it into effect with real money [Trading Account #5216372].
where to log in exactly
In the trading terminal.
Hello.
Could you please tell me how to set expiry date of pending order (EXPIRATION) in CTrade class? I tried to add this position when sending CTrade.SellStop(Lot,Price,NULL,SL,TP,expiration); it always says "can't convert enum". The only thing I found in CTrade's documentation is how to find out the lifetime for the RequestExpiration pending order, but I don't know how to set it.
Can CTrade set the expiration time? Or may be, it may be necessary to use the full request MqlTradeRequest through OrderSend()? I don't really understand how to use it, because CTrade is mentioned in all the articles.
Hello.
Could you please tell me how to set expiry date of pending order (EXPIRATION) in CTrade class? I tried to add this position when sending CTrade.SellStop(Lot,Price,NULL,SL,TP,expiration); it always says "can't convert enum". The only thing I found in CTrade's documentation is how to find out the lifetime for the RequestExpiration pending order, but I don't know how to set it.
Can CTrade set the expiration time? Or may be, it may be necessary to use the full request MqlTradeRequest through OrderSend()? I don't really understand how to use it, because CTrade is mentioned in all the articles.