Enivid

Administrator
Staff member
Nov 30, 2008
19,297
1,529
144
Odesa
www.earnforex.com
Post automatically merged:


I Saw the update on download page... i understood them... followed them... but still, my Autotrading Scheduler (ver. 1.02) doesnt show the 《FILE》message....please help.. i really need this...a screen shot would save me great...
What exactly are you doing? What input parameters are you using? How is your schedule file called? Where do you put it?
 

ngoira

Trader
May 19, 2024
6
0
7
35
You would likely need to hire someone to code that for you. You can read our guide on custom coding services: https://www.earnforex.com/custom-coding-service/

What exactly are you doing? What input parameters are you using? How is your schedule file called? Where do you put it?
In MQL5/Files i have created a folder named ScheduleFile.. then inside the folder i've crated a text file named input parameters.. then inside the text file i have:
Tue on the first line then on the secondline i have specified the time as of the example you have given out that in every hour the first ten mins.......
I have saved the file going back to my mt5.. reload the EA.... nothing happens
 

ngoira

Trader
May 19, 2024
6
0
7
35
In MQL5/Files i have created a folder named ScheduleFile.. then inside the folder i've crated a text file named input parameters.. then inside the text file i have:
Tue on the first line then on the secondline i have specified the time as of the example you have given out that in every hour the first ten mins.......
I have saved the file going back to my mt5.. reload the EA.... nothing happens
EDIT: I have also changed the text file name from input parameter to ScheduleFile. Nothing happed (the folder name remain ScheduleFile) ie MQL5/Files/ScheduleFile then te text file named ScheduleFile
 

Udenss

Trader
Jun 4, 2024
1
0
6
57
EA works for me only when MT4 window is active, for instance when you move the mouse over the chart or click the chart. Otherwise it doesn't respect the times defined. Any ideas?
Post automatically merged:

EA works for me only when MT4 window is active, for instance when you move the mouse over the chart or click the chart. Otherwise it doesn't respect the times defined. Any ideas?
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,297
1,529
144
Odesa
www.earnforex.com
EA works for me only when MT4 window is active, for instance when you move the mouse over the chart or click the chart. Otherwise it doesn't respect the times defined. Any ideas?
Post automatically merged:

EA works for me only when MT4 window is active, for instance when you move the mouse over the chart or click the chart. Otherwise it doesn't respect the times defined. Any ideas?
The EA works irrespective of the window activity. It's just that MT4 doesn't update the autotrading icon image until you move the mouse. The actual switching happens regardless. You can verify that by the log messages in the Experts tab.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,297
1,529
144
Odesa
www.earnforex.com
Version 1.03 of the AutoTrading Scheduler is now available for download. The changes include:
  • Added an option to load a text file with a long-term schedule. (Github issue, @Almon, and others)
  • Added some helpful tooltips to the panel's controls.
  • Added a switch between Enabled schedule and Disabled schedule. (@Almon)
  • Changed how non-enforced schedule works. It will now also attempt to toggle AutoTrading either off or on when the Scheduler is launched inside a period.
  • Fixed an off-screen position of the panel after a chart resizing event.
  • Fixed a crash that could occur if the panel is loaded without enabling DLL imports.
  • Fixed a bug that prevented the schedule from resetting when the ScheduleFile input parameter was cleared or changed.
Please let me know how the new version is working for you.
 

FXMelvin

Newbie
Jul 1, 2024
2
0
1
35
Good day,

I'm having trouble setting up the auto scheduler.
I run an EA that starts at 10:00 PM and needs to turn off at 7:00 AM.

I thought the auto scheduler would try to close at 6:00 AM and that the EA would do a hard close at 7:00 AM. Then, at 7:15 AM, auto trading should be turned on again for the other EA.

Is it possible for the auto scheduler to try to close within the hour as soon as there are no open trades?
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,297
1,529
144
Odesa
www.earnforex.com
auto scheduler would try to close at 6:00 AM
What does that mean?
the EA would do a hard close at 7:00 AM
What does that mean?
Is it possible for the auto scheduler to try to close within the hour as soon as there are no open trades?
Close what? If there are no open trades what will it be closing?

You can definitely configure the AS the disable autotrading at 7:00 and then re-enable it at 7:15. The rest of your setup - I just don't understand. Please explain more.
 

FXMelvin

Newbie
Jul 1, 2024
2
0
1
35
What does that mean?

What does that mean?

Close what? If there are no open trades what will it be closing?

You can definitely configure the AS the disable autotrading at 7:00 and then re-enable it at 7:15. The rest of your setup - I just don't understand. Please explain more.
Let me try to explain it.
I have an EA (Expert Advisor) for trading gold, and I only want it to trade during the Asian session. I want to be out of trades before the London session starts. My plan is to use the auto-scheduler EA to close trades starting from 6:00 AM if there are no open trades. This way, the gold EA cannot open any new trades.

I want to close the gold EA at 7:00 AM because it has its own time module. I hope that there will be no open trades and no new trades will be opened by then. After 7:15 AM, I want the auto-scheduler to re-enable auto-trading, while the gold EA remains off based on its own timer. This allows me to use another EA during the day.

What I expect from the auto-trade scheduler: Between 6:00 AM and 7:00 AM, it should try to disable auto-trading as soon as there are no open trades from the EA. At 7:15 AM, it should re-enable auto-trading until 12:00 AM.

I understand how to set the on and off times, but I don’t quite understand how to configure the time scheduler to try to disable auto-trading between 6:00 AM and 7:00 AM once there are no open trades.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,297
1,529
144
Odesa
www.earnforex.com
Let me try to explain it.
I have an EA (Expert Advisor) for trading gold, and I only want it to trade during the Asian session. I want to be out of trades before the London session starts. My plan is to use the auto-scheduler EA to close trades starting from 6:00 AM if there are no open trades. This way, the gold EA cannot open any new trades.

I want to close the gold EA at 7:00 AM because it has its own time module. I hope that there will be no open trades and no new trades will be opened by then. After 7:15 AM, I want the auto-scheduler to re-enable auto-trading, while the gold EA remains off based on its own timer. This allows me to use another EA during the day.

What I expect from the auto-trade scheduler: Between 6:00 AM and 7:00 AM, it should try to disable auto-trading as soon as there are no open trades from the EA. At 7:15 AM, it should re-enable auto-trading until 12:00 AM.

I understand how to set the on and off times, but I don’t quite understand how to configure the time scheduler to try to disable auto-trading between 6:00 AM and 7:00 AM once there are no open trades.
Who will be doing the actual closing of the trades from 6:00 till 7:00? Your EA or the AS? If it's the former and you need the AS only to turn autotrading off once the main EA closes all trades, then you can use the normal schedule setup but with the WaitForNoPositions input parameter set to true. You should also set WaitForNoOrders to true if you want to wait for the pending orders to be removed as well.

So, if you set the schedule like this:
00:00-6:00, 7:15-12:00, it will wait before disabling autotrading at both 6:00 and 12:00 for the situation when there are no open trades.
 

Almon

Newbie
Apr 14, 2024
14
1
4
49
Version 1.03 of the AutoTrading Scheduler is now available for download. The changes include:
  • Added an option to load a text file with a long-term schedule. (Github issue, @Almon, and others)
  • Added some helpful tooltips to the panel's controls.
  • Added a switch between Enabled schedule and Disabled schedule. (@Almon)
  • Changed how non-enforced schedule works. It will now also attempt to toggle AutoTrading either off or on when the Scheduler is launched inside a period.
  • Fixed an off-screen position of the panel after a chart resizing event.
  • Fixed a crash that could occur if the panel is loaded without enabling DLL imports.
  • Fixed a bug that prevented the schedule from resetting when the ScheduleFile input parameter was cleared or changed.
Please let me know how the new version is working for you.

Oh wow… this is so wonderful. You are just so amazing @Enivid. Thank you so much!! I think I only ask for the features like a month ago and now they’re here. This is the best scheduler out there!! So grateful!!!

I have 1 question, can I set the scheduler to bind on 1 chart instead of the whole account?

The current scheduler stops Auto Trade for the whole account regardless of various charts opened within.

The reason I ask is most times I trade several markets that don’t necessarily correlated. So if I stop trading on 1 market due to one Economic Announcement, I want to still be able to trade on another chart with uncorrelated market that is not affected by that Economic Announcement.

Thank you again @Enivid. Thank you!
 

Almon

Newbie
Apr 14, 2024
14
1
4
49
Version 1.03 of the AutoTrading Scheduler is now available for download. The changes include:
  • Added an option to load a text file with a long-term schedule. (Github issue, @Almon, and others)
  • Added some helpful tooltips to the panel's controls.
  • Added a switch between Enabled schedule and Disabled schedule. (@Almon)
  • Changed how non-enforced schedule works. It will now also attempt to toggle AutoTrading either off or on when the Scheduler is launched inside a period.
  • Fixed an off-screen position of the panel after a chart resizing event.
  • Fixed a crash that could occur if the panel is loaded without enabling DLL imports.
  • Fixed a bug that prevented the schedule from resetting when the ScheduleFile input parameter was cleared or changed.
Please let me know how the new version is working for you.

Thank you again for the great updates!

I have one more question:

Do I need to restart MT5 every time I update the schedule file?

Or I’m not sure how it works, is there an interval where the EA checks the schedule file every hour or everyday?
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,297
1,529
144
Odesa
www.earnforex.com
Oh wow… this is so wonderful. You are just so amazing @Enivid. Thank you so much!! I think I only ask for the features like a month ago and now they’re here. This is the best scheduler out there!! So grateful!!!

I have 1 question, can I set the scheduler to bind on 1 chart instead of the whole account?

The current scheduler stops Auto Trade for the whole account regardless of various charts opened within.

The reason I ask is most times I trade several markets that don’t necessarily correlated. So if I stop trading on 1 market due to one Economic Announcement, I want to still be able to trade on another chart with uncorrelated market that is not affected by that Economic Announcement.

Thank you again @Enivid. Thank you!
No, that's not possible unfortunately. The AutoTrading is set for the entire platform.
Thank you again for the great updates!

I have one more question:

Do I need to restart MT5 every time I update the schedule file?

Or I’m not sure how it works, is there an interval where the EA checks the schedule file every hour or everyday?
You don't need to restart the entire MT5, you just need to reload the scheduler. Either remove/add it or simply change any input parameter - this will reload the EA and the schedule file.
 

Almon

Newbie
Apr 14, 2024
14
1
4
49
No, that's not possible unfortunately. The AutoTrading is set for the entire platform.

You don't need to restart the entire MT5, you just need to reload the scheduler. Either remove/add it or simply change any input parameter - this will reload the EA and the schedule file.
Thank you, I didn’t know that it was so simple to make the EA absorb new schedule.

On the chart specific auto-trade scheduler which is not possible because it is set for the entire platform. How about restricting trade based on magic number?

That means I can set different magic numbers for each charts, which are going to be restricted according to the schedule. This is sort of borrowing a feature from Account Protector playbook. Would this be possible?

Thank you.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,297
1,529
144
Odesa
www.earnforex.com
On the chart specific auto-trade scheduler which is not possible because it is set for the entire platform. How about restricting trade based on magic number?

That means I can set different magic numbers for each charts, which are going to be restricted according to the schedule. This is sort of borrowing a feature from Account Protector playbook. Would this be possible?
Unfortunately, it's impossible to restrict trades based on magic numbers in MetaTrader.
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,297
1,529
144
Odesa
www.earnforex.com
Thank you, I didn’t know that it was so simple to make the EA absorb new schedule.

On the chart specific auto-trade scheduler which is not possible because it is set for the entire platform. How about restricting trade based on magic number?

That means I can set different magic numbers for each charts, which are going to be restricted according to the schedule. This is sort of borrowing a feature from Account Protector playbook. Would this be possible?

Thank you.
However, you could use separate platform instances connected to the same account to enable or disable autotrading separately for currency pairs or groups of currency pairs.
 

ngoira

Trader
May 19, 2024
6
0
7
35
Hi, can i time the scheduler to work in between the 1min timeframe? As in,... can i confingure it to turn on the EA in seconds? ie 07:00:30-07:01?