I tried using APS on forex data EURUSD & GBPUSD 60 minute bars on the metatrader platform but didnt have a great deal of success. My methodology was as follows:
bool longcondition1 = Open[3] > Close[1] && Close[1] > Open[2] .........
bool longcondition2 = Close[2] > Close[3] && Close[3] > Close[1] ........
.....
.....
bool shortcondition1 = Close[1] > Open[1] && Open[1] > Close[2].........
bool shortcondition2 = High[3] > High[2] && High[2] > Close[3] .........
......
.......
if(longcondition1==true or longcondition2 == true or .........) then open long position
if(shortcondition1 ==true or shortcondition2 == true or .........) then open short position
In other words if any of the long conditions is true on the current bar then open a long position, reverse for short. I was extracting patterns on one year of data then testing out of sample on 3 months data. I did this for data from 2000 to 2008 rolling the window forwards by 3 months each time. The results were mixed, some periods showing good performance and others not.
I typically had 50 pip profit target/stop loss.
I read with interest the comments of Ron and Albert. How are you guys generating your trading signals on the etfs SPY and Qs? So if for example your run a pattern search on SPY such as the following:
roughly 4000 bars daily SPY (1993 - 2008)
5% profit/stop
% profitable = 66%
number of trades > 20
This generated 25 long patterns. How would I then use this to trade going forward? I am not sure how to update data on a daily basis using APS and generate trading signals.
I can generate the wealth lab code and then trade using a similar approach to that I used in Metatrader in Wealth-Lab ie if any of the long patterns is true on a particular bar then open a long position (but only allow a single position at a time so dont open if position already open - this can be adjusted to allow a maximum number of open positions).
Its very encouraging that you both get good results trading ETFs but do you get a high of enough frequency of signals trading just two ETFs - Q's and SPY on daily data? Or is it a good idea to increase the basket of ETFs?
Regards
M Ballagan
I trade quad Qs and SPY and APS performance has been excellent. There will be drawdowns but if you stick to profit target and stop loss you have assigned you can make a lot of money.
I use the system tracking function to generate my signals. I could use an API for placing orders online but no such option is available at this point.
Ron