[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 209

 

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.

 
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.
 

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!

 
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
 
sergeev:
check Hour() against the required 14
if (Hour() < 14) return;

did I get it right?

 
ramirez17:

did I get that right?


syntactically written correctly.
 
if (Hour(TimeLocal()) < 14) return;
 
splxgf:
But you have syntactically written it wrong.
 
Oops, Friday.