Gertje plus Squalou plus Forexhard EA

Post Reply
acostafulano
Trader
Posts: 243
Joined: Tue Dec 06, 2011 3:40 pm

Re: Gertje plus Squalou plus Forexhard EA

Post by acostafulano »

Steve, even though the bot has been profitable on some pairs I've seen something that I'm not sure is on purpose:

Sometimes The boxrange gets drawn, the trade triggers, the grid develops, etc... and after the basket of trades hits its take profit, it inmmediately opens a new trade in the same direction it ended , messing up the grid and using the previous one for opposite direction entry (instead of resetting and re-drawing the box and waiting for a new breakout)...

This happens very often when after the initial breakout the basket closes for profit without the mid box opposite trigger line gets touched. the problem is that the grid line remains from the previous box, leaving a gap and causing DD.

It's hard to explain by words specially since this is not my first language. Hopefully the examples will clear this out:
GERTJE EURUSD.png
GERTJE AUDU.png
gert gbpznd.png

This is by far the EA with most potential I've seen by you here or in FF. All it needs is optimizing grid size and TP for each pair (working on that).
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Gertje plus Squalou plus Forexhard EA

Post by SteveHopwood »

Looking into it.

Guys, when you post charts please remove that stupid grid from them (Ctrl + G). The damn thing serves no purpose whatsoever and makes some of your charts nigh impossible to make any sense of.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Gertje plus Squalou plus Forexhard EA

Post by SteveHopwood »

The instant re-entry thingy is a design fault - I had omitted to code a check that the market is within the box before drawing the pending trade lines. The bot discovers they are missing and there are no open trades, so it draws the lines, which triggers a trade on the next tick. Well-behaved little bot; does as its told.

Fix in post 1. Coders, go to void ReadIndicatorValues() and find this block at the end of the function:

Code: Select all

   //Draw the pending price lines
   if ((BB0 != EMPTY_VALUE && BB1 != EMPTY_VALUE) || (BB2 != EMPTY_VALUE && BB3 != EMPTY_VALUE))
   {
      double pHigh, pLow;//High and low of the box
      if (BB0 != EMPTY_VALUE) pHigh = BB0;
      if (BB1 != EMPTY_VALUE) pLow = BB1;
      if (BB2 != EMPTY_VALUE) pHigh = BB2;
      if (BB3 != EMPTY_VALUE) pLow = BB3;
      
      
      if (OpenTrades == 0)
      {
         ObjectDelete(risetoline);
         CreateLine(risetoline, NormalizeDouble(pHigh, Digits), BuyLineColour);

         ObjectDelete(falltoline);
         CreateLine(falltoline, NormalizeDouble(pLow, Digits), SellLineColour);
      }//if (OpenTrades == 0) 
   }//if ((BB0 != EMPTY_VALUE && BB1 != EMPTY_VALUE) || BB2 != EMPTY_VALUE && BB3 != EMPTY_VALUE)

Add this:

Code: Select all

      //Only draw the lines if the market is within the box
      if (Bid > pHigh || Bid < pLow)
      {
         return;
      }//if (Bid > pHigh || Bid < pLow)
      
so that it looks like this:

Code: Select all

   //Draw the pending price lines
   if ((BB0 != EMPTY_VALUE && BB1 != EMPTY_VALUE) || (BB2 != EMPTY_VALUE && BB3 != EMPTY_VALUE))
   {
      double pHigh, pLow;//High and low of the box
      if (BB0 != EMPTY_VALUE) pHigh = BB0;
      if (BB1 != EMPTY_VALUE) pLow = BB1;
      if (BB2 != EMPTY_VALUE) pHigh = BB2;
      if (BB3 != EMPTY_VALUE) pLow = BB3;
      
      //Only draw the lines if the market is within the box
      if (Bid > pHigh || Bid < pLow)
      {
         return;
      }//if (Bid > pHigh || Bid < pLow)
      
      
      if (OpenTrades == 0)
      {
         ObjectDelete(risetoline);
         CreateLine(risetoline, NormalizeDouble(pHigh, Digits), BuyLineColour);

         ObjectDelete(falltoline);
         CreateLine(falltoline, NormalizeDouble(pLow, Digits), SellLineColour);
      }//if (OpenTrades == 0) 
   }//if ((BB0 != EMPTY_VALUE && BB1 != EMPTY_VALUE) || BB2 != EMPTY_VALUE && BB3 != EMPTY_VALUE)
:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Gertje plus Squalou plus Forexhard EA

Post by SteveHopwood »

The fix appears to be working. I restarted the demo and the box hilo lines are only drawn when the Bid is inside the box.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
kwchau
Trader
Posts: 305
Joined: Tue Jan 03, 2012 3:37 pm

Re: Gertje plus Squalou plus Forexhard EA

Post by kwchau »

I put it to a demo, the multiple thingy happens again. Steve, appreciate a lot if you can look into it.
acostafulano
Trader
Posts: 243
Joined: Tue Dec 06, 2011 3:40 pm

Re: Gertje plus Squalou plus Forexhard EA

Post by acostafulano »

SteveHopwood wrote:The fix appears to be working. I restarted the demo and the box hilo lines are only drawn when the Bid is inside the box.

:D
Great. Thanks
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Gertje plus Squalou plus Forexhard EA

Post by SteveHopwood »

kwchau wrote:I put it to a demo, the multiple thingy happens again. Steve, appreciate a lot if you can look into it.
There is industrial strength code in all my bots to avoid this, plus enough advice all over these boards about what to do about it when your crim finds a way of defeating it.

Change criminals. There is nothing more I can do.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Gertje plus Squalou plus Forexhard EA

Post by SteveHopwood »

The fix is still not quite right. Some of my demo charts have triggered buys and the sell line has vanished.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
trader689
Trader
Posts: 674
Joined: Thu Nov 17, 2011 12:53 am

Re: Gertje plus Squalou plus Forexhard EA

Post by trader689 »

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
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Gertje plus Squalou plus Forexhard EA

Post by SteveHopwood »

One more update in post 1, solving the disappearing pending trade line thingy.

I had coded the bot to delete these lines when the G++ is removed - even if all you do is close down your platform in order to download an update, Empty4 removed everything from the charts, then replaces them when you fir up again.

I have prevented the deletion if there are trades open. For the coders, go to int deinit()

Code: Select all

if (OpenTrades == 0)
   {
      ObjectDelete(risetoline);
      ObjectDelete(falltoline);
   }//if (OpenTrades == 0)
does the trick.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Post Reply

Return to “Automated trading systems”