Oct 31, 2008

Launching in ten days...

It appears that there is a bug with MBTrading demo accounts, which was related to my problem. They SDK support guy told me how to bypass it and it works. The robot is working. I added a Skype plug-in to my robot, in order to send me SMS every time an order is closed, or being opened.
I decided to use Alpari at the moment as my signal supplier, and an optimization is being run in order to find the best set.
Next week will be used to final tests and checks, and afterwards the robot will be launched for the first time.

Oct 29, 2008

Metatrader platform difficulties

In the last 3 days I was busy debugging the MBTrading robot application. I had a problem related to closing the trades, and I am still in touch with their support team. Except that, the robot is ready.
I noticed a problem related to back test with Metatrader platforms - The Metatrader platform from Metaquotes is very fast, and very comfort to back test, unlike the Alpari platform. I compared them and Alpari is much slower. The second problem is that Alpari has different performance with the same data.
I need a signal supplier which is reliable, and it's platform will be able to conduct my optimizations rapidly. I am examining different brokers in order to find a good signal supplier for my robot.

Oct 22, 2008

Version 6

This week started with two successful trades, and no more. While observing the expert advisor's performance, an idea for a filter came to me, and I decided to check it out. It seems that the new version (from now on it will be version 6) makes the same net profit, with half the trades, and with half the drawdown as well. The back test's results are available here.
The robot that trades with MBTrading is robust to logic changes, and will continue working with any version that I will choose. So, it seems that we will continue with version 6.

Oct 17, 2008

Week's summary

The robot software (which trades via MBTrading) worked well today, made 2 trades according to the expert advisor's orders. The software is stable and simple.
I had a problem this week that the forward testing of version 5 did not match exactly the back test's. I suspected that since I ran two different versions in parallel it might be the reason. So since yesterday only version 5 is being tested on that platform, and the results match at the moment - there were 3 trades since then.
What's next? I have to make a small addition to the expert advisor that will store global variables in case of Metatrdare platform shutdown. I will continue the robot's testing, and if it will be fine, maybe I'll start live trading two weeks from now.

Oct 16, 2008

Progress report

The robot started working, and it's stable. I had a few trades executed, but it needed a manual confirmation. I fixed it. I will have to check carefully the orders execution, and compare it to my expert advisor, since MBTrading works differently. In order to make a buy order, you have to place a position, and against it an open order with the limits. It's more complicated, and therefore it requires extra care.
I noticed that with the Alpari platofm, the forward testing did not match exactly the back test's results of this week. I suspect that since I ran versions 4 and 5 together on the same platform might be the cause. I left only version 5 for the forward testing.

Oct 13, 2008

Robot in demo mode

Well, the settings of the new version is set for forward test in this week. I still need to check the risks again, since it was changed due to logic changes. The back test of the new version is available here. The results are much better: the P.F changed to 2.31, 77% profit trades, with a little bit smaller drawdown.
I finished fixing the robot application. This application embeds the MBTrading API, and receives orders from the Metatrader expert advisor. I used a DLL I wrote in the past for communication between the two different applications.
Right now two versions are in forward testing: MYP4 and the last one - MYP5.
The robot is triggered from MYP5.

Oct 11, 2008

New version - MYP5

After watching my expert advisor in live, I tried a few ideas to minimize the loss trades. I checked a mechanism of rescue, when the trade is profitable, to set the stop loss to a profitable level. This idea did not achieve better results. Afterwards I tried a few conventional filters, which did not do any better. 
At last,  I had an idea for a filter, with three levels:
1. High risk trades
2. Low risk trades
3. No trading at all
I tried it, and it had better results.
The results are for the period 19/9/07-18/9/08 GBPJPY H1:

ProfitP.FDrawdown (%)Trades
196971.9626.95128
230612.2126.67109
236602.8326.1787

The risk is as it was the same (4% for the first and 6% for the second) with a small modification: the filter determines the risk of the first trade: 4% is considered as the high risk and 2% for the low risk.
What's next? I am going to continue with the third result and make a small risk optimization around that setting since the drawdown settings is changed.

Oct 10, 2008

Daily progress report

I have opened two MBTrading accounts, and linked them together. By the way, they have a great support. I have the skeleton of my robot from a project I made in the past. This skeleton receives commands from the Metatrader, and executes them with MBTrading.
A few enhancements should be made: two accounts instead of one, and to integrate the MBTrading communication module into the expert advisor.
The forward testing continues, and it seems fine. It's almost ten days bug-free, and the back-test matches the forward testing.
I am trying to improve the expert advisor by adding a rescue mechanism for profitable trades that end up at the stop loss. It is in the middle of optimizing, but it seems worse.

Oct 8, 2008

Forward testing - updtae

The expert advisor keeps working, and its results match completely the back test. I am starting preparing to live trading.
What does it mean? Since I do not know a reliable Metatrader broker, which is very important, I am going to work with MBTrading.  This company is actually a gateway, and has no interest in your transactions. 
So, MBTrading offers an API to trade, and I am going to develop a small application that will receive trade signals from the Metatrader, and execute them with MBTrading.
There are a few disadvantages with that method:
1. MBTrading does not allow opposite trades (longs and shorts at the same time), but I may open a sub account for this purpose.
2. The small application requires QA.

Oct 6, 2008

Second week forward testing

The week started with 6 winning trades :)
The most important thing is that it matches the back test of today(until now), and no bugs found.

Oct 3, 2008

First forward test week

This week there were two bugs, which were solved. Due to the forward testing they were discovered. I can't compare the results to the week's back test because of the bugs. Consider the fact that the original platform has a few disconnections per day which affect the results, and forced me to change the broker, I will have to wait to the next weekend to compare the results to the back test hopefully with no bugs, and ready to start live.

Oct 1, 2008

Day's summary

Today the expert advisor traded according to the logic, and won one trade. Since I am going migrate to other broker (Alpari instead of OLD), I check the performance with the Alpari's data and it seems fine. No bug found today, and it is a good sign.