Lavoro terminato
Specifiche
I want Moving Average trading EA which set up itself by strategy tester (backtester) result. You can program it for MT4 or MT5.
The software (EA) should use a blue with fast (lower period) and a slower (red, with higher period) MA lines.
The software should making backtest after every closed candles and then listing the backtest results. From this list the software should use the best setups (highest profit or highest pip profit) and update itself in every new candle. The software should working on 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour and 4 hours charts. I want that software display the 2 MA indicator lines on the chart and actual profits in pip, and actual MA setups (for both indicators): periods, methods and applies.
Buy trading starting when blue line cross the red line from below to above and the candle closed.
Sell trading starting when blue line cross the red line from above to below and the candle closed.
When the blue line crossing the red line again from below to above and sell trading opened, then software should closing the sell trade and opening a buy trade instantly. So we should seeing 1 trade every time.
Both MA's should working with all 4 methods (simple, exponential, smoothead, linear weighted) and the following 5 applies: closed, open, median prices, typical prices, wighted close. That is 20 different combinations.
I want to set the followings:
Backtest Period in candle: set up 1000 as default (for example it is meaning that on the 5 minute chart the software should test the last 5000 minutes or 1000 candles)
MA blue period start (set 1 as default)
Middle (selector) period start (set 10 as default) (this value must be higher than MA blue start)
Middle (selector) period stop (set 15 as default) (this value must be higher than middle period start)
MA red period stop (set 25 as default) (this value must be higher than middle period stop)
The middle (selector) period meaning that we giving a period range (from 10 to 15 as default) which is the blue MA's stop and red MA's start values.
It's means that software should test the followings with default settings:
MAblue from 1 to 10 and MAred from 11 to 25 which is: (10 (blue periods) X 4 (methods) X 5 (applies) = 200) X (15 (red periods) X 4 (methods) X 5 (applies) = 300) = 60000 different tests
MAblue from 1 to 11 and MAred from 12 to 25 which is: (11 (blue periods) X 4 (methods) X 5 (applies) = 220) X (14 (red periods) X 4 (methods) X 5 (applies) = 280) = 61600 different tests
MAblue from 1 to 12 and MAred from 13 to 25 which is: (12 (blue periods) X 4 (methods) X 5 (applies) = 240) X (13 (red periods) X 4 (methods) X 5 (applies) = 260) = 62400 different tests
MAblue from 1 to 13 and MAred from 14 to 25 which is: (13 (blue periods) X 4 (methods) X 5 (applies) = 260) X (12 (red periods) X 4 (methods) X 5 (applies) = 240) = 62400 different tests
MAblue from 1 to 14 and MAred from 15 to 25 which is: (14 (blue periods) X 4 (methods) X 5 (applies) = 280) X (11 (red periods) X 4 (methods) X 5 (applies) = 220) = 61600 different tests
So the software with the default settings should making 60000 + 61600 + 62400 + 62400 +61600 = 308000 tests and listing it, then use the most profitable (maximum pip profit) set ups.