stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Euro Grid by Dietmar
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=116
Page 8 of 15
Author:  DragosDanescu [ Fri Dec 09, 2011 8:59 am ]
Post subject:  Re: Euro Grid by Dietmar

lhDT wrote:Hi Dragos,

Thanks for the great job !
I got errors when compiling. See attach.

++,
L
Hmm, strange, gonna re-upload it again.Try after this....
Author:  gaheitman [ Fri Dec 09, 2011 11:08 pm ]
Post subject:  Re: Euro Grid by Dietmar

OK, another version of the indicator. This one adds an option to close the trap after a certain number of minutes. It will calculate the result as if you closed all the trades at the end of the bar that meets or exceeds the time in minutes specified. The display has also been updated to show the average minutes a trap is open.

The second change allows for logging of the results to a CSV file. The file will be saved in the <broker install path\experts\files directory with the default name of "PriceTrap.csv."

The file will be updated each time a change is made to the indicator settings or timeframe. It would be good to be sure you have all the history downloaded since it will trigger a write at the change to the new timeframe and possible after the data is downloaded from the server, which may be confusing.

The relevant extern variables are:

Code: Select all

extern int    MaxMinutes=0;

extern string FileName = "PriceTrap.csv";
extern bool   LogResults=false;
Enjoy.

George
Author:  ironrick [ Sat Dec 10, 2011 12:14 am ]
Post subject:  Re: Euro Grid by Dietmar

gaheitman wrote:OK, another version of the indicator. This one adds an option to close the trap after a certain number of minutes. It will calculate the result as if you closed all the trades at the end of the bar that meets or exceeds the time in minutes specified. The display has also been updated to show the average minutes a trap is open.

The second change allows for logging of the results to a CSV file. The file will be saved in the <criminal install path\experts\files directory with the default name of "PriceTrap.csv."

The file will be updated each time a change is made to the indicator settings or timeframe. It would be good to be sure you have all the history downloaded since it will trigger a write at the change to the new timeframe and possible after the data is downloaded from the server, which may be confusing.

The relevant extern variables are:

Code: Select all

extern int    MaxMinutes=0;

extern string FileName = "PriceTrap.csv";
extern bool   LogResults=false;
Enjoy.

George
My email dinged with this notification while I was on my drive home! Couldn't wait to get home and get into this!! :)

YOU. Are. Awesome!

Thanks,
R
Author:  ironrick [ Sat Dec 10, 2011 1:19 am ]
Post subject:  Re: Euro Grid by Dietmar

gaheitman wrote:OK, another version of the indicator. This one adds an option to close the trap after a certain number of minutes. It will calculate the result as if you closed all the trades at the end of the bar that meets or exceeds the time in minutes specified. The display has also been updated to show the average minutes a trap is open.
So far, just in some preliminary tests I have been able to get the following better results compared to my (still prelim) best effort before "time-based stops":
  • 157% Increase in Overall Profitability
    WHILE taking a (and only!) 3.5% reduction in Win Rate
    With a 42% Reduction in the MAX LOSS Trap
Pretty good for a set of prelim tests done while cooking dinner!! :)
  • Tested on EU
    1M Chart
    Over 332 traps
    Default/standard strategy settings on everything except:
    Start time changed to 9 (from 7)
    Max minutes set to 1441 (24 hours plus 1 minute)
Thank you SO much for your help in this, George!

Dragos, you might want to include this as some more options in the EA.

More to follow...
R
Author:  ironrick [ Sat Dec 10, 2011 1:20 am ]
Post subject:  Re: Euro Grid by Dietmar

gaheitman wrote:OK, another version of the indicator. This one adds an option to close the trap after a certain number of minutes. It will calculate the result as if you closed all the trades at the end of the bar that meets or exceeds the time in minutes specified. The display has also been updated to show the average minutes a trap is open.
So far, based on some preliminary tests, I have been able to get the following better results compared to my (still prelim) best effort before "time-based stops":
  • 157% Increase in Overall Profitability
    WHILE taking a (and only!) 3.5% reduction in Win Rate (from about 79.5% to 75.9%)
    With a 42% Reduction in the MAX LOSS Trap
Pretty good for a set of prelim tests done while cooking dinner!! :)
  • Tested on EU
    1M Chart
    Over 330 traps
    Default/standard strategy settings on everything except:
    Start time changed to 9 (from 7)
    Max minutes set to 1441 (24 hours plus 1 minute)
Thank you SO much for your help in this, George!

Dragos, you might want to include this as some more options in the EA.

More to follow...
R
Author:  garyfritz [ Sat Dec 10, 2011 5:16 am ]
Post subject:  Re: Euro Grid by Dietmar

I did some analysis of the Euro Grid Trap trades, and found that the longer you were in a trade, the less money you made. All trades over about 100 minutes long (in EURUSD) lost money in aggregate.

But it didn't help when I tried closing the trades after X minutes. Apparently the losing trades start losing money well before 100 minutes, even if they take a long time before they close. (Which makes sense, since a trap that goes back & forth a bunch is in the red long before it closes.) Or it might be that some of those long trades turned around and got better after 100 minutes, so closing them early lost those later gains.

In any event it didn't work in my testing to close after X minutes. So I'll be interested to hear the results as you keep looking into this!
Author:  forextrader-radioman [ Sat Dec 10, 2011 3:49 pm ]
Post subject:  Daylight saving times and fridays

Hy Dragos,
I´m running some backtests with the EA (v.4) ... some thoughts, resulting from the (still running) backtests in Empty4 stategy tester:

- it is important to switch the EA in "no trading on friday" mode ... because there are heavy losses initiated by trades on fridays ... non farm payment rolls data release news and so on ... and then some of these trades are still open over the weekend ...

- it ist important to use grid time start times with considering the daylight saving times ... specially when backtesting ... so backtest from 1st january to 31th december is not ok ... because there are two different grid set times to consider ...

Thank you and I wish you a nice weekend,
Dietmar :)
Author:  garyfritz [ Sat Dec 10, 2011 5:12 pm ]
Post subject:  Re: Daylight saving times and fridays

forextrader-radioman wrote:- it is important to switch the EA in "no trading on friday" mode ... because there are heavy losses initiated by trades on fridays ... non farm payment rolls data release news and so on ... and then some of these trades are still open over the weekend ...
I didn't see major losses on Fridays, but I didn't test it real extensively.

I closed all grids before starting up another one, and I also closed on Friday just before the end of trading. That way I didn't have to carry any grids over the weekend.
Author:  Tebis [ Sun Dec 11, 2011 2:30 pm ]
Post subject:  Re: Euro Grid by Dietmar

- it is important to switch the EA in "no trading on friday" mode ... because there are heavy losses initiated by trades on fridays ... non farm payment rolls data release news and so on ... and then some of these trades are still open over the weekend ...

This is my result on friday (Version3)
Author:  forextrader-radioman [ Sun Dec 11, 2011 6:34 pm ]
Post subject:  Re: Euro Grid by Dietmar

Was busy all weekend ... no time for anything else, but working :(

On my VPS I´m running the EA in strategy tester from 4th of april to 29th of october ... try to find settings which is working profitable on EURUSD ... very very hard ... it seems, that EURUSD is only working nowadays when we have almost every european morning some news which moves the EURUSD up and/or down ...

until now I can not find a proper setup which is working during the last summer months in EURUSD morning breakout ...

... but it is still running ...

I wish all of you a pipful week,
Dietmar
All times are UTC Page 8 of 15