Ok, I thought I’m not going to touch forex for a while… cos I can’t find any system with good odds…. Anyway, today, for no particular reason… I opened MT4 again… I think I just wanted to check the USDSGD rates…. but I’ve decided to write any EA… this time, I use the most basic definition of trends to try and program a scalping system… higher highs, higher lows….
Posts Tagged ‘Expert Advisors’
One more try…
Posted: September 18, 2009 in Forex TradingTags: Expert Advisors, Forex, MT4, Programming
Another Strategy
Posted: September 19, 2008 in Forex TradingTags: Expert Advisors, Forex Trading, RSI
1) RSI exceeds 65 / 35
2) RSI crosses back into band
3) RSI reach 50 (and current value compared to value when RSI is out of range is in the right direction)
Stop Loss:
Extreme of the bar which first results in the RSI to exceed 65 / 35
OR
Fixed value (e.g. 100)
OR
RSI falls back out of the channel on the same side and position is currently losing money
Strategy Tester Produces Vastly Different Results
Posted: August 31, 2008 in Forex TradingTags: Alpari, Expert Advisors, Forex Trading, Historical Data, MT4, Strategy Tester
I tested my EA on two different laptops and was totally perplexed by the vastly different results. On my Acer running Vista, I get a profit of …… drum roll pls…… 215562.22! On my eeePC running Linux, I get only 46772.18….. about 5 times different.
I analysed the two result files and soon realised that the historical data used for testing differs on the two laptops, even though they were both downloaded from Alpari. I have no idea why the discrepancy… and which is a better reflection of my EA’s earning power…. Anyway, I reinstalled the data file on both laptops, using exactly the same procedure… and re-tested the EA… This time, the results were the same…. So, can I consider problem solved?
Maybe not… Cos I have yet to test the EURUSD pair, since I was unable to download the zip file from Alpari just now… seems like the server’s down…..
In addition, I remember my EA caused MT4 to crash when I tested it on a third laptop, running Windows XP…. but I’m going to ignore this at the moment, cause I highly suspect the crash is due to the limited virtual memory on that laptop… I’m not quite prepared to run the test on that 512MB RAM laptop again….. the frustration…
Ok, so, what to do now?
1) Download EURUSD from Alpari and test again….
2) Set up a forex and a VPS account to forward test the EA
3) Try running the EA on a forth laptop and see what happens. The EA is a bit ‘dangerous’, cause it produced too extremely difficult results…. It’s not robust… so how much can I trust the Backtesting results?????
Indeed… too good to be true
Posted: July 25, 2008 in Forex TradingTags: Buy and Hold, Expert Advisors, Forex Trading, Turtle Trading
Ok, I was right… the two lines of code that I wrote in the previous post was crap… It basically means that once I reach a certain profit, I’ll sell only when the price drops to zero…. Yes, stupid mistake… but it leaves me a question….
Obviously, when I set my stop loss price to 0, my profits soar…. this is of course due to the bullish trend in EUR/USD now (I tested it on all the XXX/USD pairs)… so, if that’s the case, why don’t I just Buy and Hold…. Whenever I need spending money, I can withdraw a portion of it… I believe the overall profits will still be higher than getting in and out of trades…
I can’t answer that question, neither am I able to evaluate the risks… but here’s my thoughts:
1) This trend following strategy is extremely profitable if I enter at the start of the trend…. now may be a bit ‘late’… can test this out….
2) This is … ummmm …. a bit boring….
3) In addition, how often do I get such a new trend…. once in a few years? Given the limited pairs I can trade….
Anyway, I’ve done some more changes to my code and managed to rise the profit and the percentage of profitable trades. Basically, I programme the EA to sell whenever a 20 Pips profits turn into a loss.
Ok, I’m going to test out whether I should be a turtle (trader) now…