I would like to know is there a way to turn on / off the signals at a specific time.. either using the EL scripts, or any settings of MC Support this?
THANKS
Turn on/ off systems at a specific time
- ABC
- Posts: 721
- Joined: 16 Dec 2006
- Location: www.abctradinggroup.com
- Has thanked: 125 times
- Been thanked: 408 times
- Contact:
Re: Turn on/ off systems at a specific time
vivienne,I would like to know is there a way to turn on / off the signals at a specific time.. either using the EL scripts, or any settings of MC Support this?
THANKS
you can program your systems in PowerLanguage that they will only trade during a specific time and stop trading outside of this time period.
That way the system is still active, but it's not taking any trades due to the time conditions.
That's probably the easiest way.
Regards,
ABC
- ABC
- Posts: 721
- Joined: 16 Dec 2006
- Location: www.abctradinggroup.com
- Has thanked: 125 times
- Been thanked: 408 times
- Contact:
I can give you an example, that should get you started:
That would be a very basic approach and the system will only take entries during your specified time period. You should at least add something to close all open positions if the time > EndTime (or at End of day, whatever you want), because otherwise you might end up with a system in the market although your EndTime condition is reached.
Regards,
ABC
Code: Select all
Inputs:
StartTime(930),
EndTime(1614);
{Replace the comment with your variables and system calculations}
If Time > StartTime and Time <= EndTime then begin
//put your Entries here
end;
Regards,
ABC