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 3 of 18
Author:  SteveHopwood [ Mon Apr 16, 2012 11:56 am ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

Another fix in post 1 guys.

If you already had trades open when you did the previous update, G++ will have replaced the pending trade lines, causing a new and premature trade on exit of the CZ in the same direction.

Coders, go to void ReadIndicatorValues() and encase

Code: Select all

         ObjectDelete(risetoline);
         CreateLine(risetoline, NormalizeDouble(pHigh, Digits), BuyLineColour);

         ObjectDelete(falltoline);
         CreateLine(falltoline, NormalizeDouble(pLow, Digits), SellLineColour);
inside this conditional:

Code: Select all

      if (OpenTrades == 0)
      {
         ObjectDelete(risetoline);
         CreateLine(risetoline, NormalizeDouble(pHigh, Digits), BuyLineColour);

         ObjectDelete(falltoline);
         CreateLine(falltoline, NormalizeDouble(pLow, Digits), SellLineColour);
      }//if (OpenTrades == 0) 
:D
Author:  acostafulano [ Mon Apr 16, 2012 11:59 am ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

Is anyone else getting the "Do not trade this EA on a live account" warning popup when adding it to a demo account? Or is it just me? (Happened in 8 demo instances of Empty4)
Author:  jb68 [ Mon Apr 16, 2012 3:29 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

magft wrote:
SteveHopwood wrote:
Steve

That is a really old version of the indy, in the comments v1.8. The one you have in first post is v1.13 but i have v1.13_R1 as well which has a minor mod. Can you remember what changes you made? I have a quick scan and looks like you have set defaults and commented out drawing bits is that correct?

Ive attached v1.13_R1 for reference, in the top the history states

Code: Select all

 * - v1.13 R1 (2011.09.22):
 *   With AutoBoxRange=true:
 *   Box continue fixed. Box Range changed when new Day starts because of change in ATR value.
 *   Also Box change values when variable "_period" no longer rise. "i+_period-1" points then to the wrong bar.
 *   In display_stats() Division by Zero 'num_buy' and 'num_sell' avoided.
This may be the issue FH was referring to, i'll have a play around tonight, day job beckons at the mo.

Regards

Mike
Hi,
I did the changes on 1.13, I think I commented out the stats. They are useless any way into an EA and with 1.13 they generate a zero-division error. I did this before the R1 version. I cannot figure out the changes with the ATR on R1, however I search on my comp and found my EA tests and checked the R1 indie.

On The R1 signal buffers (4, & 5 ) doesn't seem to work anymore but the rest works the same.

Any way IMO the boxes are not done right when market open with gap like today. Per SQ indicator we should make 73 pips today and this is no way possible in real life.

Steve, you can put the R1 version in the EA, it should work fine with your code. I will do a backtest to see if there is any changes, may be we might hit the jackpot :)
Author:  SteveHopwood [ Mon Apr 16, 2012 5:25 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

acostafulano wrote:Is anyone else getting the "Do not trade this EA on a live account" warning popup when adding it to a demo account? Or is it just me? (Happened in 8 demo instances of Empty4)
Your demo thinks it is a live-money account. I have included a basic check to protect the unwary from themselves.

If you have not yet got the experience to remove the code, then now is the time to acquire it. Look at the beginning of int start().

:D
Author:  SteveHopwood [ Mon Apr 16, 2012 5:27 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

jb68 wrote:Steve, you can put the R1 version in the EA, it should work fine with your code. I will do a backtest to see if there is any changes, may be we might hit the jackpot :)
Point me at it and I will oblige.

:D
Author:  jb68 [ Mon Apr 16, 2012 6:11 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

SteveHopwood wrote:
jb68 wrote:Steve, you can put the R1 version in the EA, it should work fine with your code. I will do a backtest to see if there is any changes, may be we might hit the jackpot :)
Point me at it and I will oblige.

:D
magft posted a bit newer version of the indie here.

http://www.stevehopwoodforex.com/phpBB3 ... hp?id=4257

I downloaded it, found my old EA, insert the R1 into it and unfortunately after 3 and half hours backtesting last 2 years I didn't get any improvements over the old one so it is up 2 you if you want to have fun with extra work.
Author:  SteveHopwood [ Mon Apr 16, 2012 8:17 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

jb68 wrote:
SteveHopwood wrote:
jb68 wrote:Steve, you can put the R1 version in the EA, it should work fine with your code. I will do a backtest to see if there is any changes, may be we might hit the jackpot :)
Point me at it and I will oblige.

:D
magft posted a bit newer version of the indie here.

http://www.stevehopwoodforex.com/phpBB3 ... hp?id=4257

I downloaded it, found my old EA, insert the R1 into it and unfortunately after 3 and half hours backtesting last 2 years I didn't get any improvements over the old one so it is up 2 you if you want to have fun with extra work.
Not a clue what you mean. Sorry.

Anybody happen to have a copy of this damn indicator that actually does what it is bloody-well supposed to do, whatever the Hell that is? Preferably without hedging it around with ifs buts and maybees? Sq, you around? Anybody with a firing brain cell who also happens to know anything about blasted custom indicators? And is capable of understanding why I loathe them?

If not, shut up and leave me alone to try to develop this flippin' EA. Whichever one that is. Whatever it does. Right at this moment, I haven't a clue and will be perfectly happy if I never have to read another idiotic bloody thread post or write another line of bloody mql4 code ever again.

We are talking serious loss of will to live here folks. If you cannot post usefully, then stop posting.
Author:  Eamonn [ Tue Apr 17, 2012 5:38 am ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

Morning Steve, just checked GSF this morning have it on 8 pairs on Demo with SIG TRADER and the breakout boxes didn,t form over night. When I changed the time frames on all the pairs and put them back to the 15m time frame they all appeared back as normal.
Author:  jb68 [ Tue Apr 17, 2012 3:42 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

Eamonn wrote:Morning Steve, just checked GSF this morning have it on 8 pairs on Demo with SIG TRADER and the breakout boxes didn,t form over night. When I changed the time frames on all the pairs and put them back to the 15m time frame they all appeared back as normal.
This look more like an Empty4 glitch.

As a funny thing after I posted on forexhard's FF thread that I couldn't find a winning exit and CZ strategy has a limited edge he banned my on his thread. :roll:
Author:  SWG123 [ Tue Apr 17, 2012 3:49 pm ]
Post subject:  Re: Gertje plus Squalou plus Forexhard EA

jb68 wrote:As a funny thing after I posted on forexhard's FF thread that I couldn't find a winning exit and CZ strategy has a limited edge he banned my on his thread. :roll:
Yes, he can be a bit .... tetchy :lol:
All times are UTC Page 3 of 18