Get Back Your Money

Thursday, November 11, 2010

VS_PipsCola_D01 Trading Time Parameter

I think VS_PipsCola_D01 was ready for distribution. But before that I better explain its parameters or external variable first. I probably will not include the manual, so I'll publish them all online via this blog. And for simplicity I will divide these parameters into several sections. And this section will explain the parameters associated with Trading Time setting. For the Money Management section, you can find in VS_PipsCola_d01 Money Management Parameter.
Default trading time is 21-23GMT+1. So please adjust your trading time if your broker time zone is not GMT+1. The following parameters are related to trading hours:
Opening
OpenHour = 21;
OpenMinute = 0;
Two variables above are used to set when to start trading. Their combination will tell the EA what time to begin to trade. OpenHour=12 and OpenMinue=0 means that EA will start to trade at 21.00.
Closing
CloseHour = 23;
CloseMinute = 59;
Just like the opening, CloseHour and CloseMinute are used to set when to stop trading. Combination of CloseHour and CloseMinute will tell the EA what time to stop to trade. CloseHour=23 and CloseMinute=59 means EA will stop to trade at 23.59.
Extra Time
bool EnableXtraTime = true;
int XtraCloseHour = 1;
int XtraCloseMinute = 59;
The three parameters above may be rarely used by EA. I add this parameter to increase the trading hours. But this only applies if EA still has an open position. And EA is just going to take the same position with the open position. For example if the EA still hold a Long position and the trading hour has been passed, if extra time is enable then the EA will only take a Long position and never take the opposite position.
To enable the extra time you have to adjust the EnableXtraTime parameter with True. The rest it just like to set closing hour. So XtraCloseHour=1 and XtraCloseMinute=59 means the extra time will end at 1.59.
Restricted Day
int DAY_OF_WEEK = 5;
int Begin = 0;
int End = 23;
Day_of_Week2 int = 1;
Begin2 int = 0;
End2 int = 5;
In general I do not allow the EA to trade at the Beginning and Closing market. And to arrange for the EA does not trade on these days, I am providing as much as 6 parameters.
Parameters Day_of_Week2 and DAY_OF_WEEK can be filled between 0 to 6 that represents the days from Sunday to Saturday. While the Begin, End, Begin2 and End2 parameters represent the hour for the day.
So DAY_OF_WEEK = 5, Begin = 0 and End = 23, mean EA is not allowed to transact on Friday from 0 to 23 o'clock. While DAY_OF_WEEK = 1, Begin2 = 0, and End2 = 5 means that the EA should not trade on Monday from at 0 to 5 o'clock.
All you have to note that this is a configuration for Alpari server which their Time Zone is GMT+1.
And you should also remember, that the trade in Alpari Server starts Monday at 0 GMT+1, while the actual Forex Market is open on the Sunday at 23 GMT+1. So if even if your broker time zone is the same with Alpari, you also need to find out if they start trading at 23 or 0. If your broker start to trade on Sunday at 23 GMT+1 o'clock, prevent ea to trade at this time.

0 komentar:

Post a Comment

Risk Warning

Please note that Trading in the Foreign Exchange market might carry potential rewards, but also potential risks. You must be aware of the risks and are willing to accept them in order to trade in the foreign exchange market. Don't trade with money you can't afford to lose.