Experts: Pending orders by time 2

 

Pending orders by time 2:

The Expert Advisor sets pending Buy Stop and Sell Stop order at a specified time.

Pending orders by time 2

Author: Vladimir Karputov

 

Hello, when compiling it gives errors (attached screenshot). Renat

Files:
 
MURENAT:

Hello, when compiling it gives errors (attached screenshot). Renat

Thanks for the comment. The file has been replaced with version 2.004.

 
Vladimir hello .I have 65 errors when compiling.Help.
Files:
 
mr.valexv:
Vladimir hello .I have 65 errors during compilation.Help me.

I can see from your screenshot that you tried to edit the file (or maybe you accidentally hit the keyboard when the mouse was inside the code).

Restore the initial file.

 
The file has not been edited. Everything is as instructed. I'll try again.
 

if it is used to scalp TF1M and the target is reached in the same minute, why does the EA open again?

Can it only be opened once?

 
Holie #:

If it is used to scalp TF1M and the target is reached in the same minute, why is the EA reopened?

Can it only be opened once?

This is the logic of the EA: it checks the time, namely it compares the current hour and the target hour

void TimePattern(MqlDateTime &time_struct)
  {
   if(time_struct.hour==InpOpeningHour)
 
error  - 'INIT_FAILED' - expression not boolean Pending orders by time 2.mq5 272 20

 

'INIT FAILED - expression not boolean.      Please solve

Files:
1677723357785.jpeg  2135 kb
 
Can be available an mt4 version?thank you