Wednesday, March 31, 2010

Two VOM shorts on EURUSD

Earlier, I posted an example of two VOM EAs with opposing virtual orders, resulting in no net position at the broker.

Today, there is an example of the two EAs agreeing on price direction. Both the FrAMA Cross EA and the Support Resistance EA are short on EURUSD, and it is instructive to see how this ends up in the VOM and at the server.

FrAMA Cross EA on daily EURUSD chart
Virtual short 0.1 lots at 1.33978. This has a wide protective virtual stoploss 500 (or 5000, in 5 digit terms) pips away.
This was the first order executed, and the server stoploss was set at 550 pips, ie virtual stop plus 50.

Support Resistance EA on hourly EURUSD chart
Virtual short 0.1 lots at 1.34895. This has a virtual stoploss 85 (or 850, in 5 digit terms) pips away.
This is what happened to the server position when this second order was executed
  • The server lots moved up to 0.2 short
  • The server position open price is now the average of the two orders - this is automatically calculated by the broker.
  • The VOM moved the server stoploss down to the tightest virtual stoploss plus 50 (1.36195), which can be seen on the daily chart.
If the virtual stoploss for this EA is hit, then the server stoploss will revert back to the much wider stoploss of the FrAMA Cross EA

All this careful maintenance of the server stoploss at the tightest stop plus 50 (500) pips is there for disaster protection in the event of Internet or PC failure.

Monday, March 15, 2010

Forward tests suspended for a short time

I run all my MetaTrader accounts (MT4 & MT5 demo and MT4 live) on a Commercial Network Services  virtual desktop (see original post here). Although there have been a couple of negative comments on this blog about CNS, it's been completely trouble-free for me.

CNS has been promoting a move to Hyper-V for some time, so I decided to do it. Hyper-V is apparently even more reliable than Virtuozzo, which is what I was running on before. I received an email this morning that the change had occurred, but I didn't have much time before going to work so have only set up my live account at this stage. It only took me about 20 minutes, and it's running fine - I'll write another blog soon on my impressions of Hyper-V and the general experience of remote desktop working. 

Other than being a customer I have no connection whatsoever with CNS.

[ update 18/3 ]
Just waiting for another MT5 build to come out before I can start the forward tests again.  The last two builds broke my VOM code but as usual MetaQuotes have been very responsive in fixing it.

Thursday, March 11, 2010

A real "hedge" situation with two different timeframe MQL5 EAs using the Virtual Order Manager

I started up the FrAMA Cross EA VOM forward test at least a couple of weeks ago during a massive EURUSD downtrend, and the first cross event occurred yesterday with a long trade which has already reversed this morning to a short after pulling in 111 pips. So it's finally in the market. I am reassured to see a profitable trade first off, but remember that this is such a slow trader that even though the backtest is excellent it is not at all certain that it will be profitable long term.

It's good to see an example of a real "hedge" scenario happening here with the two different timeframe EAs. The Support Resistance EA entered a EURUSD long last week against support in the 1.3450 area (which is off the bottom of the chart screenshot shown below), and the FrAMA Cross EA is now EURUSD short. The result is no open position at the broker, with the VOMs maintaining the opposing long and short trades respectively.

Wednesday, March 3, 2010

Reorganising the forward tests

I have been letting a number of forward tests run for some time without really paying much attention to them, so it's time to clean everything up.

Here's what will continue to run.  These will also have a link in the forward tests section on the right, and I have looked through old posts and updated links so I hope everything works.

MetaTrader 5
I am running two VOM EAs on the one demo account.
Past forward tests on MetaTrader 4
I was running a number of tests on MT4, in particular two versions of a News Trader, but I'm going to stop for the moment.  The best NewsTrader only broke even at best, and obviously needs work.  I'll be converting to MQL5 as some stage.