Help me backtest a new idea

babrevian

Newbie
Messages
9
Likes
1
Hi,
I need some help back testing an idea I have. It is quite simple (and maybe totally useless) but I am just playing around with some theory. The problem is that I am unable to back test my idea properly since I do have the necessary software (Amibroker) but I lack the knowledge to code this system. I tried reading through the help files etc. but I am still at a loss.

Could someone with the necessary software and knowledge please back test this for me. I am not worried about the code, just the results. I plan on trading end of day and would like to test it on Forex, Gold and Brent Crude Oil.

Here is my basic idea for a system.

Step One: Determine filter
Filtervalue=(High - Open) - (Open - Low)
Buy only if Filtervalue > 0

Step Two: Determine Average Price
Average=(O+H+L+C)/4

Step Three: Determine Buypoint, Stoppoint and Profitpoint
Buyprice = average + (ATR (5) *0.2) (if close price higher than average take High +(ATR(5) *0.2)
Stoppoint = Low - (ATR(5)*0.5)
Profitpoint = Buyprice + (ATR(5)*1.2)

If Filtervalue>0 then buy tomorrow @ Buyprice (based either on average or High).

This is a type of mechanical system. I work full time and I am looking for something robust to trade while still working. I am not able to watch the markets during trading hours so I must make use of orders.

Please give me some hints of improving this system (if it is not totally useless). I have not thought about trading this system short. I suspect it will not be successful on the short side. I
Thanks



http://successfull-forex-investing.blogspot.com/
 
Hi,
I need some help back testing an idea I have. It is quite simple (and maybe totally useless) but I am just playing around with some theory. The problem is that I am unable to back test my idea properly since I do have the necessary software (Amibroker) but I lack the knowledge to code this system. I tried reading through the help files etc. but I am still at a loss.

Could someone with the necessary software and knowledge please back test this for me. I am not worried about the code, just the results. I plan on trading end of day and would like to test it on Forex, Gold and Brent Crude Oil.

Here is my basic idea for a system.

Step One: Determine filter
Filtervalue=(High - Open) - (Open - Low)
Buy only if Filtervalue > 0

Step Two: Determine Average Price
Average=(O+H+L+C)/4

Step Three: Determine Buypoint, Stoppoint and Profitpoint
Buyprice = average + (ATR (5) *0.2) (if close price higher than average take High +(ATR(5) *0.2)
Stoppoint = Low - (ATR(5)*0.5)
Profitpoint = Buyprice + (ATR(5)*1.2)

If Filtervalue>0 then buy tomorrow @ Buyprice (based either on average or High).

This is a type of mechanical system. I work full time and I am looking for something robust to trade while still working. I am not able to watch the markets during trading hours so I must make use of orders.

Please give me some hints of improving this system (if it is not totally useless). I have not thought about trading this system short. I suspect it will not be successful on the short side. I
Thanks



http://successfull-forex-investing.blogspot.com/

1) If it's too complicated to code, it's too complicated to trade.

2) The best thing you can ever do is learn to program the code yourself. Persist with it.
 
Babrevian

Try their formula library on their website

http://www.amibroker.com/library/

or their function reference

http://www.amibroker.com/guide/afl/

or, if you are really stuck, try their Yahoo users groups

http://finance.groups.yahoo.com/group/amibroker/messages/

However I agree with new_trader that you should try to sort it out yourself step by step. Your pseudo-code is practically in the amibroker programming language already. Just break it down into its component parts and start coding. Trading needs effort.

Charlton
 
What about easy language, via tradestation? seen that before and it is quite easy to pile in some ideas such as the type you have mentioned.
 
Thanks guys,

The only problem I have with coding this system is keeping my profit point and entry point constant in coding. I did try using the loop function, but maybe I am not geared to understanding the finer points of coding.

When I code my program I had the problem that when I run my backtest my profitpoint keep changing as well as my entrypoint. I also find it difficult to code the system that I exit either at the stoploss point (which must stay fixed - something I am not good with) or my profitpoint (which must also stay fixed)

The system is dead easy to trade. Determine the Entry and exit points after the market closes and enter it as break orders for the next day. It is the backtesting that is killing me. Thanks anyway for the links... I will browse them.
 
Top