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

Gertje plus Squalou plus Forexhard EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=485
Page 10 of 18
Author:  CoRi [ Tue Apr 24, 2012 7:11 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

Thank you for the fix.
The multiplier is still not working. You have probably not seen my post on page 7. Could that be fixed as well in one of the next updates please? Thanks again
Author:  SteveHopwood [ Tue Apr 24, 2012 9:07 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

CoRi wrote:Thank you for the fix.
The multiplier is still not working. You have probably not seen my post on page 7. Could that be fixed as well in one of the next updates please? Thanks again
I have looked at the code, briefly, and cannot see why not. Right now, nor do I care. I might try to sort this out somewhere down the line or I might simply delete the functionality.

Right now for reasons you should have read about by now, I don't really care.

If someone else can sort this out, you will have my undying gratitude.

:D
Author:  Mariusz [ Tue Apr 24, 2012 10:08 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

Steve,

I recall from another thread "Gertje: a hedged grid trader" there was the same issue with multiplier lot - see your post from April 3 on page 15 where you said you fixed this thingy.

I tried to find the difference in these two EAs' codes but failed... If no one is gonna catch it I will try again on the weekend...

Mariusz
Author:  SteveHopwood [ Tue Apr 24, 2012 11:14 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

Mariusz wrote:Steve,

I recall from another thread "Gertje: a hedged grid trader" there was the same issue with multiplier lot - see your post from April 3 on page 15 where you said you fixed this thingy.

I tried to find the difference in these two EAs' codes but failed... If no one is gonna catch it I will try again on the weekend...

Mariusz
Yes please. I am a tad busy right now, so if you can that would be great. I will have another look when I return on Friday, but I could not see anything earlier today, so spotting something on Friday will be equally difficult. A bit like spotting a spelling mistake in those old school essays..........

:D
Author:  mbkennel [ Wed Apr 25, 2012 12:16 am ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

I recommend a program called WinMerge (free) which can find differences between codes fairly easily, and apply differences in one to the other.

I use a tool like this reasonably frequently in my day job.
Author:  garyfritz [ Wed Apr 25, 2012 1:01 am ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

Heh. I just suggested exactly the same idea over in the Forex Robot thread. :) I've used http://text-compare.com/ many times and it works well.
Author:  nubika [ Wed Apr 25, 2012 1:59 am ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

trader689 wrote:everything is OOTB default, apart from fixed lot size 0.1 and box length = 15 . so cashprofit target 1000, cashprofitperlot 0.0 and pipsprofit target 100. pip gap (pips between trades) is indeed 20.

demo is now up to $2260 with a -$50 floating drawdown at the moment. :)

nubika wrote:
trader689 wrote:WOW. this thing is on fire. with acostafulano's tip of using 15 box length my demo *in one day* has gone from $1000 to $2036, with -$41 floating open trade. 0.1 fixed lots, 20 pairs, 15m timeframe. we'll see how it holds up over this week

Hi Trader

What TP have you used on the pairs, and did you leave the pip gap at 20 as a default?

Frank

Hi Trader, I did setup a DEMO like yours on Alpari UK with the same settings on 20 pairs.

The EA is running now for around 12 hours, but did not close any trades on any of the pairs. There are many trades open.
Did you have any trades closed in the last 12 hours? I just cannot see how it would be closed out so frequently to get results like yours with those TP settings.

I still have the issue (I am using the latest version from post 1.) with the red and green (high and low) lines not drawn automatically to a new box, when there are no open trades on that particular pair. Even if the price is within the box, the lines are not drawn, until I toggle the time frame.
First I thought that this has to be an issue with the broker platform, My first setup is on Bully Pepperstone Razor account (STP), so I decided to setup a standard dealing desk account with Alpari UK. But the issue is the same on Alpari account as well.

Guys, do you have the same issue as what I described above? If not, then which broker are you using?

Because the lines are not drawn automatically, cannot run it unattended. Once price breaks out of the box, the trade should have been taken, but during the night while I was asleep, a lot of trades were missed.

I love this EA, if we can sort this issue out somehow and can let it run unattended without manual interference, this would be an all time best.

Frank
Author:  acostafulano [ Wed Apr 25, 2012 6:02 am ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

Is the LOOKFORBREAKEVEN AFTER input working at all? I still have yet to see a closure at BE at all. I'll take a look at the code to see if I can spot something
Author:  acostafulano [ Wed Apr 25, 2012 6:25 am ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

This is the part of the code that seems to take care of Breaking even (Which in over 2 weeks of testing with different settings and in 16 pairs haven't been able to observe even once; thus my suggestion that it may not be working correctly).

Again, I'm not coder, so I can only TRY to understand what's going on:

//Basket closure at breakeven if LookForBreakevenAfter trades are open
if (OpenTrades > LookForBreakevenAfter)
{
if (MathAbs(OpenBuys - OpenSells) == 1)
{
if (upl >= 0)
{
if (StopTradingAfterBasketClosure) StopTrading = true;
CloseAllTrades();
DeleteRemainingPendingLines();//Remove pending price lines
if (ForceTradeClosure) return;
}//if (upl >= 0)
}//if (MathAbs(OpenBuys - OpenSells == 1)
}//if (MathAbs(OpenBuys - OpenSells) == 1)


If some coder could please correct me:

From what I understand, the "closealltrades()" thingy will only be triggered "if" the "StopTradingAfterBasketClosure and/or "StopTrading" inputs are set to true?

If that's the case, then that's the reason that I'm not getting any closures at breakeven, ever...

Maybe I'm just looking ridiculous trying to understand all of this without knowing mql :S!
Author:  mantkinth [ Wed Apr 25, 2012 7:28 am ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

Good to see someone looking at the code and trying to understand it hehe. I've been testing it myself a lot, and has yet to see a StopTradingBasketClosure hit. But its understandable, do some maths witht he grid and try to understand the maths behind it.

The odds of when the grid becomes unbalanced, (for example, it the setting was at 4, it means 5 orders are now open to test the routine, if its not unbalanced, it means its either winning or losing so doesnt matter). Depending on how its weighted, and the size of your lots, averaged buy/sell prices, for it to actually return and hit BE is very unlikely. Maybe someone else can use mathlab or something to figure out what price it must be before it can break even? I've been doing some of the maths on a Excel spreadsheet and the sad fact, that its very unlikely to happen ><

Note to your understanding of the highlighted line.. it just means if the unrealized profit and loss (upl) >= 0, aka break even or profit, the highlighted line doesnt really matter unless you set the robot to Stop trading after basket closure... effects nothing if you dont manually turn it on and off.

Lastly the only problem with the robot is what people have discovered called the "death trade", but the RangeBoundClosure is the only setting that will get you out... of course when that triggers the hit is substantiale. Need more strategies to get out of those problems early (assuming you leave it unattented... but then again if a basekt if still going for over a week, I think you should take control of it hehe).

What I have been doing to stay out of those "death trades", is set Jumping stop loss to start at like $5, and hey if i get stopped out at BE, im happy, no way to get into a "death trade". (Testing with 0.1 lots here, my Target is set at $50)
All times are UTC Page 10 of 18