[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 209 1...202203204205206207208209210211212213214215216...652 New comment [Deleted] 2011.09.23 19:26 #2081 When trading with an EA, you can choose in the "General" tab which trades are allowed: longs, shorts, or both. Could you please advise how to display information on the terminal screen about the types of trades that are currently allowed? Errors, bugs, questions Questions from Beginners MQL5 Experts: Expert adviser Easy --- 2011.09.23 19:29 #2082 there is no way to know. Only if you get a corresponding error when you try to send the order. [Deleted] 2011.09.23 19:30 #2083 sergeev: there is no way to know. Only if you get a corresponding error when you try to send the order. I see, thank you. [Deleted] 2011.09.23 20:34 #2084 Good afternoon! Can you please tell me the following simple thing: how to make the Expert Advisor work only at certain times, for example after 14.00? Or give me a link, if this question has already been raised. Thank you in advance! [Archive!] Any rookie question, Any questions from newcomers [ARCHIVE!] Any rookie question, --- 2011.09.23 20:46 #2085 ramirez17: Good afternoon! Can you tell me how to make the Expert Advisor work only at certain times, e.g. after 2pm? Check Hour() against the required 14 [Deleted] 2011.09.23 21:01 #2086 sergeev: check Hour() against the required 14 if (Hour() < 14) return; did I get it right? --- 2011.09.23 21:20 #2087 ramirez17: did I get that right? syntactically written correctly. Всеволод 2011.09.23 21:46 #2088 if (Hour(TimeLocal()) < 14) return; --- 2011.09.23 21:47 #2089 splxgf: But you have syntactically written it wrong. Всеволод 2011.09.23 22:25 #2090 Oops, Friday. 1...202203204205206207208209210211212213214215216...652 New comment
When trading with an EA, you can choose in the "General" tab which trades are allowed: longs, shorts, or both.
Could you please advise how to display information on the terminal screen about the types of trades that are currently allowed?
there is no way to know.
Only if you get a corresponding error when you try to send the order.
there is no way to know.
Only if you get a corresponding error when you try to send the order.
Good afternoon!
Can you please tell me the following simple thing: how to make the Expert Advisor work only at certain times, for example after 14.00?
Or give me a link, if this question has already been raised.
Thank you in advance!
Good afternoon!
Can you tell me how to make the Expert Advisor work only at certain times, e.g. after 2pm?
check Hour() against the required 14
did I get it right?
did I get that right?
syntactically written correctly.