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 »

piter44 » Fri Apr 29, 2016 8:44 am wrote:Hi,

I have a question about buttons, sometimes when I see nice opportunity I'd like to send a full grid of orders regardless of HGI signal and I use "send full grid" button however EA send orders and delete them immediately. I know that there is an option "send a pendind grid (and remove ea from chart)" but it is not my point.

My question is whether it is possible to send orders manually (with buttons) and let ea manage trades?
This reminds me of something I could not answer last night - synapse not firing as usual.

zaguy sent me a version he had coded that added Bollinger Bands. He could not understand why trades being sent when his BB trading conditions are met, being instantly deleted.

I looked at the code and found that BB was being used to force a trade when there are no HGI signals. Finding no signals, HGB immediately assumed that the signal that fired the trades is no longer in existence and so deleted them. HGB will not delete pendings if there is already a market trade in place, nor close the market trade because a signal traded live starts a trading sequence that must be worked through.

The trade sending buttons cannot fight a lack of HGI signals.

: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
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 »

I will have an updated version in time for the markets opening next week. The RnR offsetting code is spot on; Bruster tidied mine up and then added the single sided complex offsetting. I will port it across over the weekend.

: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
TraderJoeForex
Trader
Posts: 1157
Joined: Fri Mar 08, 2013 10:29 pm
Location: South London

Holy Graily Bob 'n Grid

Post by TraderJoeForex »

SteveHopwood » Fri Apr 29, 2016 9:54 am wrote:I will have an updated version in time for the markets opening next week. The RnR offsetting code is spot on; Bruster tidied mine up and then added the single sided complex offsetting. I will port it across over the weekend.

:xm:

Look forwards to comparing this with pure RnR .. logically it should provide a nice middle ground for profit vs potential worst case drawdown. Thanks for all your efforts this week Steve and Bruster.
User avatar
PeterUK
Trader
Posts: 79
Joined: Fri Jun 27, 2014 2:18 pm
Location: London, UK

Holy Graily Bob 'n Grid

Post by PeterUK »

I concur, many thanks to Steve and Bruster! :D
Knowledge owned is Pointless. Knowledge Shared is Priceless!
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 »

An updated User Guide and V 2 are in post 1. V 2 has a full implementation of offsetting, so it is an essential download if you wish to use it.

Coders, I realised it is unnecessary to have separate offsetting functions, the the new one is
bool CanTradesBeOffset() starting at line 4751.

I decided to try to cater for OrderClose() failures:
  • Line 234 defines an array to hold the ticket numbers of trades that need to be closed during offsetting:
    • 4767 is a resetting of the array size to zero. I reset it multiple times through the function.
    • 4815 shows how I populate the array for simple offsetting.
    • 4982 This block shows how I avoid going into an endless loop if a trade closure fails, but still allow the iteration through ClosureTickets[] to complete, whilst resizing and populating ForceCloseTickets[] for use later.
  • 4365 bool MopUpTradeClosureFailures() is the function that retries to close the trades.
    • this function is called at lines: 5409; 6923; 7105
I would appreciate it if the bloop spotters could take a look.

:xm:

Edit: I have also moved all the data-gathering variables to below the extern's so we do not have to keep ploughing through them. :arrrg:
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.

Holy Graily Bob 'n Grid

Post by SteveHopwood »

Peasant's V 2a is in post 1. Same fucking bloop as RnR and GW. Lost the will to live. Can't be arsed to explain. Line 5021.

:arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg:

:oops:
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.
zaguy
Trader
Posts: 43
Joined: Wed Feb 03, 2016 7:42 am

Holy Graily Bob 'n Grid

Post by zaguy »

Thank you Steve.
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 »

Make sure you have read my "Really irritating bloop alert" in the RnR thread to know what this is all about. Fix in post 1.

The relevant lines here are:
5208
5323

: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
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 »

Headline figures for last week:
XAUUSDH1.png
Brilliant on the face of it, but the DD is nearly three times the profit, so no idea if or when I will get to bank any of it. We shall see. GU trades a total mess.

GJ is RnR. Again great on the face of it, but the 51 open buy trades will take a bit of clearing out. :arrrg:

: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.
Lifesys
Trader
Posts: 126
Joined: Wed Apr 25, 2012 2:05 am
Location: Echuca Victoria. Australia

Holy Graily Bob 'n Grid

Post by Lifesys »

Hi Steve
Don't give up on HGBnG because of current DD.
Using method previously mentioned, on LIVE account (v.Q with necessary fixes) we took 6% net last week & 13% net previous week. Total 27.9% on live account for April from HGBnG with $0 current Drawdown.

[On a GP "demo" where I let the updated EA versions run, profit seemed to be great, but similarly, was a fraction of the DD which almost wiped out the account.]

Working on assumption - "This is not a set-and-forget ea; there is no such thing ..."
(i) end of week close all open AND pending orders.
(ii) start each week fresh
(iii) don't pick & choose pairs, hours or days - run all week apart from -
- delayed start, MondayStartHour (7hrs after 4X open, for me Mon. 1400 hrs).
- early finish, FridayStopTradingHour (14hrs before 4X close & close ALL 9 hrs before 4X close. This usually avoids the Fri NY open announcements.
(iv) use incrementing profit close system similar to recently posted.

Friday saw green trades close at Dayprofit of +4%, more at +4.5%, more at +5% then all remaining open trades were closed green at 5.5% so I deleted all pendings. All 'in the bank' with no DD.
Greatest profit from XAGUSD then USDCHF and greatest loss from NZDUSD - for April. May will be different.
I can live with 28%/mth with no overheads, compounds to 1800%/yr. Better than what I was doing manually and appreciated.

regards
Paul B.
Post Reply

Return to “Thingy Bob EA's”