|
My pleasure codersguru to help you guys. Enclosed is a modified script from your post yesterday. What i have done is the following:
1. Changed the variables for 5 min charts. Ran this on the Gbp/Usd, Usd/Chf, Usd/Jpy, Eur/Usd and some others with good accuracy. In the code after the // i left the original values
2. Added in a boolean switch for the option if you want to go pro or counter trend if it isn't at a cross. False is pro-trend as in if the fast moving EMA is above the slow, it takes a buy right away. A True does a sell.
3. I went through and changed references to the fast and slow ema so that the fast is first (it was easier for me to debug that way as the fast ema is more active and the one that crosses).
4. Made sure that a fast EMA cross above did a buy (as an old version i had would do a sell, which didn't make sense to me).
I did some backtesting in Metatrader which made this not look to good, however given problems backtesting in metatrader, decided to do forward testing and try different things.
Here are some ideas for future versions:
1. Enabling a 5 min chart to take trades only before peak times.
2. Possibly having seperate variable settings in the script for different charts (the gbp/jpy moves alot more than the eur/usd, thus needing higher stoploss/limit, etc. Both 1 and 2 here can be found in Hans123, which i plan on working on here soon.
3. Some of the ideas i have already suggested in previous posts.
Let me know what you think and what I/we can put into into it. Also if anyone has Instant Messanging, maybe for coding we can work faster than via a forum. i use primarily googletalk or msn
Graham
|