Holy Graily Bob 'n Grid

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Post Reply
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.

Holy Graily Bob 'n Grid

Post by SteveHopwood »

V 1i is in post 1.

It occurred to me that we do not want buy trades closing on a high semafor unless the market has fallen a little, or risen for sells closing at a low semafor.

There is a new input in the semafor section - SemaforRetracePips:
  • the Bid has to fall from a high signal by SemaforRetracePips before trades are closed.
  • the Ask has to rise from a low signal by SemaforRetracePips before trades are closed.
The default value of 10 is pure guesswork. I have no idea what the correct value should be.

:xm:
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
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Holy Graily Bob 'n Grid

Post by Gertje »

SteveHopwood » Thu Mar 24, 2016 2:48 pm wrote:V 1i is in post 1.

It occurred to me that we do not want buy trades closing on a high semafor unless the market has fallen a little, or risen for sells closing at a low semafor.

There is a new input in the semafor section - SemaforRetracePips:
  • the Bid has to fall from a high signal by SemaforRetracePips before trades are closed.
  • the Ask has to rise from a low signal by SemaforRetracePips before trades are closed.
The default value of 10 is pure guesswork. I have no idea what the correct value should be.

:xm:
Great!!

I was breaking my head over this, a few times last week baskets of trades closed @BE where price went out of the arena.

My M15 demo died after 3 days due to high DD/ margin requirements.
I'm brewing on something else, stay tuned.... :smile:

@Steve: if I go 'under the hood', and remove 'extern' before 'bool' and change the values, will the EA's on each chart carry the new settings after recompile?
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.

Holy Graily Bob 'n Grid

Post by SteveHopwood »

Gertje » Thu Mar 24, 2016 2:54 pm wrote: @Steve: if I go 'under the hood', and remove 'extern' before 'bool' and change the values, will the EA's on each chart carry the new settings after recompile?
Yes. It is only the extern's that do not change.

:xm:
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.
MMGood52
Trader
Posts: 26
Joined: Thu May 07, 2015 2:58 pm

Holy Graily Bob 'n Grid

Post by MMGood52 »

Thanks Steve for all you do. :hi: At first I was blown away by HGI and all the ways it could be used to trade the market, then I was in awe at PPoS and the pips it gathered. 'Blown away' or 'in AWE' don't come close to how I feel about HGB n G. This is some amazing stuff. :good:

I have tested and changed my demos all along the way to get a better grip on how I could trade or better yet, how I want to trade. cyberevil got me to thinking about trading 15m TF and gertje suggested that we may only need 1 pair so I decided to start a fresh demo with $250 and two pairs. I put GU and GJ on and let it fly. I set it for 34EMA filter and the rest pretty much default. I realize this is only 3 days but then again this is ONLY 3 days! :yahoo:

I just wanted to see if I could get some way to build up my small account so I could eventually trade the Majors and GJ, definitely GJ!
GJ just closed a grid and the one before had a few buys that were way above price action but it steadily closed trades along the way and kept raising the balance until it was able to close those trades. Here are pics of the GJ and trade report.

P.S. I hope that your wife is doing well and getting the treatments she needs. I too have MS and trading has been my way of staying busy. I had hoped to add to my income and one day be self sufficient again. I have much higher hope that can happen. Thanks for all you guys do!
You do not have the required permissions to view the files attached to this post.
User avatar
patmontes
Trader
Posts: 367
Joined: Wed Apr 23, 2014 10:42 pm

Holy Graily Bob 'n Grid

Post by patmontes »

patmontes » Thu Mar 24, 2016 1:58 am wrote:2 GBPUSD sells had hit TP and I'm not going to interfere manually and see what happens with the open trades since I know we have the tools already to combat most situations :good:
Last week if I did not close the open trades in profit manually, the returns would have been bigger.

.....waiting game for that yellow wavy to close my trades now...
So today the sells got closed by the Semafor low :!!:
Added some nice gains to GU
You do not have the required permissions to view the files attached to this post.
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Holy Graily Bob 'n Grid

Post by Gertje »

patmontes » Thu Mar 24, 2016 4:36 pm wrote:
So today the sells got closed by the Semafor low :!!:
Added some nice gains to GU
You enabled RAD-trading?
User avatar
patmontes
Trader
Posts: 367
Joined: Wed Apr 23, 2014 10:42 pm

Holy Graily Bob 'n Grid

Post by patmontes »

Gertje » Fri Mar 25, 2016 1:46 am wrote:
patmontes » Thu Mar 24, 2016 4:36 pm wrote:
So today the sells got closed by the Semafor low :!!:
Added some nice gains to GU
You enabled RAD-trading?
Yes that's right
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.

Holy Graily Bob 'n Grid

Post by SteveHopwood »

V 1j is in post 1, with a change inspired by this PM from smpcoe:
smpcoe wrote:Subject: Holy Graily Bob 'n Grid

Hi Steve: Love it when you put the code changes up so we newbie programmers can learn this strange new language (coding).
As I was looking for what was new in Version 1i, the iLow & iHigh terms got my attention. I asked a friend of mine who trades strictly using candlesticks what he thought about it and he said it would be better to use the iClose instead of the iLow & iHigh. And he showed me why on GBPJPY H4 on March 22.
The iLow was too far awy from the iClose to work because when the next candle opened, it was 50 some pips above the iLow. The trades would have closed immediately using the 10 pip guess for SemaforRetracePips.
So I changed them to iClose & will let you know how it goes...

Hope this helps, Stan
I pulled up a couple of charts and applied the Quantum indi to them. Here is AU:
AUDUSDH4.png
You probably need to open the pic in a new tab and enlarge it so see it properly. Even better, download Quantum from post 1 and drag it onto a few of your own charts. Each Q box would have been a semafor signal until the hi/lo was broken and the signal redrawn.

It is hard to find a candle with a Q box that does not have a wick. This comes as no surprise. I am trading the H4, so a new hilo of 34 H4 candles represents over a week of trading and so will be a take profit level for a lot of people.

Using the candle closing price +- SemaforRetracePips would have kept a fair few trades going for considerably longer than using the candle hilo.

Also, my code was bollocks, so Stan's contribution would have helped a lot even if I had not adopted his suggestion. Thanks Stan. :clap: I had forgotten to add SemaforRetracePips into the mix.

These are really easy changes for you guys to make yourselves - learn how in post 2 if you do not already know.

Change line 8 to:
#define version "Version 1j"

Line 4683 is:
ClosurePrice = iHigh(Symbol(), TradingTimeFrame, 1);
and changes to
ClosurePrice = NormalizeDouble(iClose(Symbol(), TradingTimeFrame, 1) - (SemaforRetrace / factor), Digits);

Line 4690 is:
ClosurePrice = iHigh(Symbol(), TradingTimeFrame, 0);
and changes to:
ClosurePrice = NormalizeDouble(iClose(Symbol(), TradingTimeFrame, 0) - (SemaforRetrace / factor), Digits);

Line 4748 is:
ClosurePrice = iLow(Symbol(), TradingTimeFrame, 1);
and changes to:
ClosurePrice = NormalizeDouble(iClose(Symbol(), TradingTimeFrame, 1) + (SemaforRetrace / factor), Digits);

Line 4755 is:
ClosurePrice = iLow(Symbol(), TradingTimeFrame, 0);
and changes to:
ClosurePrice = NormalizeDouble(iClose(Symbol(), TradingTimeFrame, 0) + (SemaforRetrace / factor), Digits);


I know that some of you are using all this to gain some understanding of coding, so I will give you an insight into one of my thought processes.

I like to try to head potential trouble off at the pass. The info shown on your charts is a great example. It is not there for your benefit, but for mine. When something is not working properly and someone posts a chart picture, I can often work out what the problem is from the info shown on the chart. The user guide is another example. Yes, it tells new users what the bot is all about, but its principle function is that it allows me to snarl, "Read the UG, cretin" instead of needing to answer endless questions.

Have you noticed that the code changes involve SemaforRetrace not SemaforRetracePips. You will find similar thingies dotted around my code. Take profits are calculated using TakeProfit not TakeProfitPips. Stop losses are calculated using StopLoss not StopLossPips.

I declare such variables to the user as an integer whose name ends with 'Pips'. This is to make it clear to noobs that we are talking about pips and not points. Trouble is, an integer variable cannot include a decimal point. Divide an integer variable containing the value 3 by 2, we are left with 1, not 1.5

Each of the integer variables such as:
extern int SemaforRetrace

is matched by a double a little further down the code, always in between two sets of long // comment lines, as in
double SemaforRetrace

I set SemaforRetrace to the correct value in OnInit - line 960 in 1j:
SemaforRetrace = SemaforRetracePips;

Look at the block of code starting at 952 shows how I initialise all the doubles to their partner integers.

Keep on getting into the code folks. You will not be sorry for doing so.

:xm:
You do not have the required permissions to view the files attached to this post.
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.
xclr8tr
Trader
Posts: 12
Joined: Sun Nov 25, 2012 6:02 pm

Holy Graily Bob 'n Grid

Post by xclr8tr »

Hi All,
I've been experimenting with HGBNG but because I'm still with a oanda for the time being I'm trying to find the best way to deal with all the fifo issues etc which makes it difficult to trade this beast properly, just wondered if anyone had any ideas or experimental set files that seem to be working for my environment. I see just today though that they may start allowing us to hedge in Empty4 at oanda, not with the leverage you all have though.

just thought i would ask real quick, I know this thing is evolving quickly and am truly excited about the HGBNG.

yes i read the manual and gleaned what I can from that and my experience trading hgb and the matrix

thanks all and everyone who has helped to build this baby :) especially Steve

apologies for my non-contributory post, going to update to the newest, 3rd one today LOL ;)
xclr8tr
User avatar
tonyharmony
Trader
Posts: 148
Joined: Sat Dec 20, 2014 10:54 pm
Location: Ipswich, Queensland Australia

Holy Graily Bob 'n Grid

Post by tonyharmony »

xclr8tr » Sat Mar 26, 2016 11:58 am wrote:Hi All,
I've been experimenting with HGBNG but because I'm still with a oanda for the time being I'm trying to find the best way to deal with all the fifo issues etc which makes it difficult to trade this beast properly, just wondered if anyone had any ideas or experimental set files that seem to be working for my environment. I see just today though that they may start allowing us to hedge in Empty4 at oanda, not with the leverage you all have though.

just thought i would ask real quick, I know this thing is evolving quickly and am truly excited about the HGBNG.

yes i read the manual and gleaned what I can from that and my experience trading hgb and the matrix

thanks all and everyone who has helped to build this baby :) especially Steve

apologies for my non-contributory post, going to update to the newest, 3rd one today LOL ;)
xclr8tr
G'day mate, how are you?

My only suggestion to you would be to open a Global Prime demo account (it's free) and practice the latest version of HGB'nG on the GP platform (so you will be up to speed with the rest of us), and when you have the funds, open a live account. I think from memory (as it has been a while since I opened my GP account) you can open a live account from as little as $200 -$250 AUD.

What I have been doing is direct depositing $20 / weekly into my GP live account, but testing the EAs on my demo, so while I am learning my account is growing. Just my 2 cents worth... :D

Cheers
Tony
One can't learn from one's success, but one can learn an enormous amount from one's failures! Determination to succeed is the only goal....
Post Reply

Return to “Thingy Bob EA's”