Welcome back Meta-Traders.Here's wishing you a joyous winter solstice and greetings of the season! Summer is now officially on the way!
In this review we tackle Sunqu, Asirikuy’s first expert advisor which makes use of neural network technology.
Before approaching a topic like this, it’s good to get some context. There are a lot of good introductory articles on Neural Networks. If you are not familiar with the topic, check out this article here.
To put it simply, Neural Networks are mathematical models that accept one or more numeric inputs, perform a mathematical function and produce a number as output. I have some familiarity with the topic since I did an independent study based on Neural Networks when I was working on my Master’s Degree in Computer Science back in the winter of 1988. The project turned out to be more like a solution looking for a problem in the sense that I didn’t focus on any particular problem domain. So it’s fortunate that all these years later I have an excellent problem domain in the forex markets!
First, Sunqu means door in Quechua, the language of the Inca people in Central America. Sunqu runs on EUR/USD against the daily charts and attempts a once-per-day prediction of the direction of the close based on the today’s open plus the prior X bars price action. Sunqu trains by looking a X bar price patterns over Y number of bars of recent price action.
Since the network weights are initialized to random values, it turns out that the network may produce different results on 2 subsequent runs - even if presented with the same input data! This would appear to violate the definition of a mathematical function that given the same inputs, should produce the same output no matter how times you run it, right?
Daniel tackles this problem by making a ‘committee’ of networks, that all are presented with the identical input data and produce their prediction. Then he polls each of the networks and considers the results to be valid only if some percentages of the network’s predictions agree on one direction or the other. As a result of that process you get one of 3 results:
- All Bullish
- All Bearish
- No-agreement
- An "All Bullish" prediction: results in opening a long position - and first closing an open short if necessary
- An "All Bearish" prediction results opening a short position - and first closing an open long if necessary
- No-Agreement results in no position being taken, and existing longs and shorts are closed if necessary
- Position size defaults to 1 risk unit using the standard Asirkuy position size calculation based on the 14 bar daily ATR
- There is also an option to pyramid positions where you get agreeing signals for more than one day in a row
- Stop losses default to 200% of the ATR value
Before we talk about performance, keep in mind that your results may vary. That’s always the case with back-test and live trading of course. But there’s an extra bit of uncertainty due to the semi-deterministic nature of the neural network and the results that it produces.
In a 10-year back-test, against EUR/USD, Sunqu showed an annual return of 5.62% with a maximum drawdown of 14.05%. That sets the Average Annual Return to Maximum Drawdown Ratio at about 0.4 which does not compare favorably to many Asirikuy systems and portfolios. To put it more simply, Sunqu risks about $1 for every 40 cents in realized profit.
But those numbers don’t really tell the whole story. Considered on a year-by-year basis, Sunqu showed a profit in 9 of the 10 years between 2000 and 2010 and the largest yearly loss was -3.63%. So to consider the overall performance, Sunqu does not produce a lot of profits, but drawdown is also relatively low. Also, the fact that its trading signals are completely unrelated to the other systems on Asirikuy, adds additional diversification to the trading results and should therefore be a good complement to other systems on Asirikuy.One more thing – Sunqu has a cool user interface which can be enabled through an external variable or property for the expert advisor. When enabled, Sunqu pops up a window during network training which shows the actual performance over the past Y days, and the system’s predictions versus the target data during the training process. Each round of training can take between 10 and 30 seconds and based on the settings and the number of networks to be trained, the system can take up to 15-20 minutes to finish testing once it has started the process.
Another positive thing about Sunqu is that it trades often. Looking at the demo account, the system was in a trade more often than not for the testing period. That means more opportunities to be on the right side of a big more even if utterly unforeseen by other circumstances. Also, more trading means more pip rebates which his always a good thing.
Another plus is NFA compliance, since the system trades in only one direction at a time.
Sunqu was tested on the daily chart of several major pairs, and most pairs were not profitable with the exception of EUR/USD. Sunqu has been show to be profitable on USD/CHF as well as EUR/USD.
Sunqu is currently not enabled for live trading. Once it is, I will apply it to one of my spare forex.com accounts.
That’s all, have a great weekend folks.







