Hello Support,
Can you please post a clear example showing how to use the Time block in the following manner:
Monday:
-Open any position on or after 00:00
-Close
all positions at 23:57
Tuesday:
-Open any position on or after 00:00
-Close
all positions at 23:57
Wednesday:
-Open any position on or after 00:00
-Close
all positions at 23:57
Thursday:
-Open any position on or after 00:00
-Close
all positions at 23:57
Friday:
-Open any position on or after 00:00
-Close
all positions at
19:57When the Start block function "Trading Time Filter" = "On" and "Action before/after Trading Hours" = "Close All Open Positions," the EA
does not close all open positions at the time specified. The EA simply ignores the "Action before/after Trading Hours" function when set to "Close All Open Positions."
When the Start block function "Trading Time Filter" = "Off" and I try to use the Time block to set the EA schedule as posted above, the EA once again, ignores all Ending Trading Hours settings and will not close all trades at the designated time.
I've read the manual on using the Time block and the instructions don't seem to match my requirements. I've tried turning On and Off, the Start block time filter and then using a Time block with each day set to the above schedule, but again, the EA seems to ignore the Ending Trading Hours settings.
The connection path was set to: Start block >>> Time block >>> AND >>> BUY >>> End. I've tried this with the Start block's "Trading Time Filter" = "On" and "Off," with the "Action before/after Trading Hours" = "Close All Open Positions."
The .mol attached attempts to use the exact method found in the Strategy Builder User Guide on page 24 and 25, which reads as follows:
"For time filters you have 3 options:
1. You use the START icon
2. You use a TIME icon
3. You use both
For 1) In the START icon you define a time filter for the whole ea. The ea works if the server time is in the time filter (between X hour and Y hour). The START icon has an option that you can set to close all positions when trading time is out of the time filter (before X and after Y). Again this applies to the
whole expert advisor."
Note: the above instructions on pages 24/25 do not seem to work in my version of Molanis.
This config shows what the instructions on pages 24 and 25 outline. Yet, "Action before/after Trading Hours" = "Close All Open Positions," does not result in any trade being closed, regardless of the Ending Time used:
I also tried using the Time block and the CL block combination, connecting Start to Time, and then Time to Cl, and then CL to End. That DOES close the open trade, but it closes the trade instantly (immediately) after the trade is opened, not at 23:59 as the Time block is configured.
I need open all open positions closed precisely three (3) minutes before the end of each trading session Monday through Thursday, and at 19:53 on Friday's trading session.
Thanks for your help on this.
Regards,
cfx