Показват се публикациите с етикет forex. Показване на всички публикации
Показват се публикациите с етикет forex. Показване на всички публикации

28.12.2012 г.

Optimization of trading strategy: is there something wrong Part 2


Is there something wrong with optimizing trading strategies. I think the whole conception of optimizing may be a wrong paradigm. In fact during optimization we make in the same time the strategies very vulnerable to randomness.


That is the whole point. All trading strategies are very  vulnerable to randomness but the problem is that y we do not know to what extent they are vulnerable.

That is why the use of any fancy digital filters or enigmatic time series preprocessing methods: SSA, wavelets, PCA does not add much.

On the other hand the use of different optimization algorithms does not add much too: back propagation, genetic algorithms, particle swarm optimization etc.

So what is the reaction of the big guys. They were investing in infrastructure in order to use the infrastructure edge together with complex data mining methods. And that worked and works. However as many others will do the same the competition will increase in the low latency market. Even more some countries are planning to tax the HFT, in France this is already a reality.Big boys are also using traditional macro strategies but this is another beer.

My point here is that a successful trading strategy needs to balance two pillars:

a. An adequate optimization regarding the market conditions. In practice that means that the strategy needs to learn from the market conditions and not to over - fit the past market conditions. This is a hard stuff.

b. The randomness robust trading strategy. There is a need to secure that the trading strategy is robust regarding the randomness of the market.

There are different ways to achieve it.

- To measure the state of predictability of the market and trade only when the market is sufficiently predictable. This is the core concept of the Spinal Implant EA. In this EA the algorithm takes a trade only if the fractal dimension is below a certain value.

-To apply walk forward testing.
This is a traditional approach and maybe is the state of the art in the trading community. But unfortunately quite a few algorithms pass this test, only to prove later that they are not so good.

-To apply Monte Carlo methods
So I really think that this should be implemented by everybody that seeks consistent results.

The Discussion will be here: only for logged users, sign up for free.


18.12.2012 г.

Optimization of trading strategy: is there something wrong

What is a central question of all trading strategies is the optimization. However is there something wrong with the optimization or at least with our perception of optimization of trading strategies.
I think there is something elusive here.

I think that the main problem is that we look at the market as a problem.
Yes, I think so, we think that the market is a problem and if there is a problem we look for a solution. Applying mathematical models for searching a solution is just the right thing to do.
But what if, there is something wrong in our paradigm?

Of course the trading rule with the highest observed performance is likely to perform in the future provided we have sufficient observations and we do properly performance statistics.

However the problem is that the best rules are highly positively biased. Aronson writes in his book the Objective Technical analysis that technical analysis methods "have the potential to be valid knowledge but only if back-tested results are considered in light if randomness (sampling variability) and data-mining bias.

This screen shot is from the book of Aronson Evidence based technical analysis. Here you can see out-of-sample performance deterioration, that means that the rule which performed well in the past did not perform in out-of-sample trading.

Here in the first part is the in-sample data: the data used for data mining or simply put rule back-testing. In this period you see 50 % Return on on investment. However the out of sample is a different thing. The out-of-sample actually means that the data is not used for data mining and is the actual performance.


The reality is more complex as we may assume. There is not only a problem that needs a solution to be found but there is something else too. That explains why the data - mining normally fails in out of sample trading. I will stop here for the moment.

13.10.2011 г.

Accumulation of orders: accumulation and distribution between market participants and market makers in the Forex market

Accumulation and distribution in the Forex market looks different from the distribution and accumulation in the Stocks. In Stocks there is a relationship between big players and the masses. However the advent of the high frequency algorithms complicated the game too much for the big guys.

In the Forex market there is another game between the masses and the liquidity suppliers. The accumulation distribution also occurs but it is somewhat different.

Check the whole article at beat the spread.

24.09.2011 г.

BPNN Predictor plus

There is a library with mods for the BPNN Predictor Plus.The library allow to use different inputs for the neural net.

beathespread.com

The BPNN Predictor uses for training algorithm the

Improved Resilient back-Propagation Plus (iRProp+).

The method is described on this address:
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.17.1332

The idea is to use as inputs different averaging algorithms. One of the mods includes as inputs the Singular Spectrum Analysis. In fact I use two types the normal one and the end - pointed version. 
You can choose from many different averaging algorithms.
List of MAs:

MA_Method= 0: SMA - Simple Moving Average
MA_Method= 1: EMA - Exponential Moving Average
MA_Method= 2: Wilder - Wilder Exponential Moving Average
MA_Method= 3: LWMA - Linear Weighted Moving Average 
MA_Method= 4: SineWMA - Sine Weighted Moving Average
MA_Method= 5: TriMA - Triangular Moving Average
MA_Method= 6: LSMA - Least Square Moving Average (or EPMA, Linear Regression Line)
MA_Method= 7: SMMA - Smoothed Moving Average
MA_Method= 8: HMA - Hull Moving Average by Alan Hull
MA_Method= 9: ZeroLagEMA - Zero-Lag Exponential Moving Average
MA_Method=10: DEMA - Double Exponential Moving Average by Patrick Mulloy
MA_Method=11: T3 - T3 by T.Tillson
MA_Method=12: ITrend - Instantaneous Trendline by J.Ehlers
MA_Method=13: Median - Moving Median
MA_Method=14: GeoMean - Geometric Mean
MA_Method=15: REMA - Regularized EMA by Chris Satchwell
MA_Method=16: ILRS - Integral of Linear Regression Slope 
MA_Method=17: IE/2 - Combination of LSMA and ILRS 
MA_Method=18: TriMAgen - Triangular Moving Average generalized by J.Ehlers
MA_Method=19: VWMA - Volume Weighted Moving Average 
MA_Method=20: JSmooth - Smoothing by Mark Jurik
Anyway you may see that the predictions varies a lot and it changes from time. There is nothing you can do about that. In fact the Forex time series have a lot of local optima and the neural net may constantly bounce from local optimum solution to another. 

22.09.2011 г.

Elliotware: How it works?

This is how Elliotware works:

1. I identify an Elliot Wave structure. This is MANUAL we do not use software. And this is the fundamental difference between this approach and the other approaches. They try to use a machine to force an Elliott Wave analysis.

2. I set the training range to the Elliot wave structure.

3. I apply my machine learning algorithm:  And I have a prediction.