Results 1 to 2 of 2
 4 Attachment(s)    

Thread: Reversing Hours EA

  1. #1
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default Reversing Hours EA

    We suppose that the price will repeat a movement each specific hour of a day each month. For example, the price follows the main trend most of the time at 14 gmt the 4th day of the month. Or it goes mostly in the opposite direction, or there is no particular way (it can goes up and down).

    The trades are closed on the next bar.

    We define the main trend with a 100 SMA.



    We have for example the hour14 :

    Code:
    2,1,2,0,2,2,2,1,0,2,2,1,2,0,0,2,0,2,2,2,1,1,2,1,1,2,2,1,1,0,2
    The first value is for day1, then day2, day3, ... until day31.

    0 = trend following,
    1 = reversing,
    2 = don't trade.

    When we optimize the code, we begin with default settings in the strategy tester, and we put this line for the hour that we want to set first :

    Code:
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    We click on start. We get the results that we save. We then open the statement with forex control center (a great tool to go faster and deeper with backtesting). We click on "charts" and "pips by day of the month". We have a histogram. We determine if we should follow the trend or not or to not trade at all, if one of the histogram is twice bigger or not than the other (red compared to green). If Red is higher than green, we put 1, if green is higher than red, we put 0. If the values are similar, we put 2.



    We have our set for this hour. We continue the optimization. We reset the settings, we put the 0 values in the next hour paratemer, etc...

    It should be better to optimize the EA on 3 years and on a more active pair (GBPUSD). The results will be more interesting with a low spread as the body of a bar is generally tight.

    EU H1. 2009.

    Total net profit : 78699.08%
    RDD : 6.97%

    Download : Reversing Hours EA (available in the Elite section)
    Attached Images Attached Images Reversing Hours EA-strategytester-reversing-hours-ea-eu-h1-gif 
    Attached Files Attached Files

  2. #2
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Different settings. Here we close the trades on SL and TP only.

    EU H1. 2009.

    Total net profit : 148234.43%
    RDD : 28.27%%

    Download : Reversing Hours EA (available in the Elite section)
    Attached Images Attached Images Reversing Hours EA-strategytester-reversing-hours-ea-eu-h1-set2-gif 
    Attached Files Attached Files

Similar Threads

  1. Reversing EA
    By Dutchess in forum Ideas for expert advisors
    Replies: 1
    Last Post: 11-08-2010, 12:23
  2. Reversing Hours EA
    By fxtester in forum Expert advisors live statements
    Replies: 1
    Last Post: 04-14-2010, 17:07
  3. Two Hours EA
    By funyoo in forum Expert advisors backtesting
    Replies: 0
    Last Post: 04-17-2009, 19:00
  4. Trading to certain days and hours
    By HiwayNZ in forum MQL programming
    Replies: 1
    Last Post: 02-08-2009, 18:08

Tags for this Thread

100, backtesting, elite, gbpusd, hours, main, pips, profit, sma, spread, strategy, systems, time, tool, trend

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •