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

Holy Graily Bob 'n Grid
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4525
Page 78 of 99
Author:  SteveHopwood [ Fri Apr 29, 2016 8:59 am ]
Post subject:  Holy Graily Bob 'n Grid

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:
Author:  SteveHopwood [ Fri Apr 29, 2016 9:54 am ]
Post subject:  Holy Graily Bob 'n Grid

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:
Author:  TraderJoeForex [ Fri Apr 29, 2016 11:55 am ]
Post subject:  Holy Graily Bob 'n Grid

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.
Author:  PeterUK [ Fri Apr 29, 2016 2:37 pm ]
Post subject:  Holy Graily Bob 'n Grid

I concur, many thanks to Steve and Bruster! :D
Author:  SteveHopwood [ Sat Apr 30, 2016 2:57 pm ]
Post subject:  Holy Graily Bob 'n Grid

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:
Author:  SteveHopwood [ Sat Apr 30, 2016 8:07 pm ]
Post subject:  Holy Graily Bob 'n Grid

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:
Author:  zaguy [ Sun May 01, 2016 12:14 pm ]
Post subject:  Holy Graily Bob 'n Grid

Thank you Steve.
Author:  SteveHopwood [ Sun May 01, 2016 6:26 pm ]
Post subject:  Holy Graily Bob 'n Grid

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:
Author:  SteveHopwood [ Sun May 01, 2016 7:42 pm ]
Post subject:  Holy Graily Bob 'n Grid

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:
Author:  Lifesys [ Mon May 02, 2016 4:10 am ]
Post subject:  Holy Graily Bob 'n Grid

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.
All times are UTC Page 78 of 99