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

Holy Graily Bob 'n Grid
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4525
Page 49 of 99
Author:  goldcourse [ Tue Mar 22, 2016 11:43 am ]
Post subject:  Holy Graily Bob 'n Grid

Gertje » Tue Mar 22, 2016 5:14 pm wrote:
goldcourse » Tue Mar 22, 2016 1:45 am wrote:Gertje,

Can you kindly share your set file for v2n. Thanks
Sure, attached.
Be aware there will be DD involved.... :jump:


Margin is beginning to be an issue, $2.000,- is the minimum for 0.01 lots in my opinion.
.
Gertje,

Thanks for the set file. I'll be running it on GBPJPY only with $1,000/0.01 lots. Let's see how it goes!
Author:  PeterUK [ Tue Mar 22, 2016 12:13 pm ]
Post subject:  Holy Graily Bob 'n Grid

Thanks Steve,

I'll run it on a demo at low TF to see/observe how it triggers this time round :-)

Peter
SteveHopwood » 22 Mar 2016, 11:42 wrote:V 1b is in post 1 with the fix I described above. Keep an eye open especially on your live accounts folks. I am not sure this is the solution.

:xm:
Author:  PeterUK [ Tue Mar 22, 2016 12:55 pm ]
Post subject:  Holy Graily Bob 'n Grid

Guys/Gals,

I think you should hold off from running the latest v1b on live... :|

Trades are opening and closing immediately when HGI triggers a signal, and then stops when the HGI signal disappears...
v1b-xauusd-order-bug-chart.jpg
v1b-audcad-order-bug-chart.jpg
v1b-audcad-order-bug.jpg
It'll get fixed eventually :-)

Peter
Author:  SteveHopwood [ Tue Mar 22, 2016 1:46 pm ]
Post subject:  Holy Graily Bob 'n Grid

The source of the problem is in the block starting at line 4944. Comment it out and the problem disappears.

Working on it.

:xm:
Author:  SteveHopwood [ Tue Mar 22, 2016 1:50 pm ]
Post subject:  Holy Graily Bob 'n Grid

I know what the problem is. Fix coming soon.

:xm:
Author:  traderandy [ Tue Mar 22, 2016 1:51 pm ]
Post subject:  Holy Graily Bob 'n Grid

Thank you very much Steve.
Author:  SteveHopwood [ Tue Mar 22, 2016 2:12 pm ]
Post subject:  Holy Graily Bob 'n Grid

V 1c is in post 1.

I wanted to make use of the enhanced position snapshot building in my latest shells (void CountOpenTrades()) so I commented out the original in case I needed it, and copied the function from my shell. I forgot to update a couple of variables calculations.

You can check that the bot is working properly by going to line 2472 which is a blank line and inserting:
TrendArrowStatus = Trenduparrow;

Recompile and HGBnG will send a grid. Watch it for a few seconds, then delete the code at 2472 and recompile. The bot will find there is no signal, and so will delete the grid.

Buggerin' 'ell. :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg:

:xm:
Author:  SteveHopwood [ Tue Mar 22, 2016 2:29 pm ]
Post subject:  Holy Graily Bob 'n Grid

I forgot to add to my previous that I have reinstated a safety feature that went AWOL somehow.

PostTradeAttemptWaitSeconds tells HGBnG not to attempt to trade for (default) 3 minutes after attempting to send a trade. This is a vital feature so you must not disable it with a zero value input.

:xm:
Author:  PeterUK [ Tue Mar 22, 2016 2:58 pm ]
Post subject:  Holy Graily Bob 'n Grid

Thanks Steve,

My initial tests of this latest bot v1c seems to be working as expected now :-)

Will see how it goes in the next few hours...

NB: My demos running v2p (my version with 34EMA, 15min TF) is running hot at 0.03 lots (0.01 per 1000 sizeofgollop) hence the large drawdown... will be changing to 0.01 per 2500 to reduce the drawdown and give the account a bit more breathing room... it's the pips that count, so reducing lot size shouldn't affect it :-)

Regards,

Peter
Author:  SteveHopwood [ Tue Mar 22, 2016 5:44 pm ]
Post subject:  Holy Graily Bob 'n Grid

V 1e is in post 1.

This is a teensy change whose need only becomes clear if you manually close your market trades and the bot fails to delete the outstanding stop/limit orders.

Line 4957
if (PendingTradesTotal <= GridSize)

needs to be:
if (PendingTradesTotal < (GridSize * 2) )

because a full grid will consist of GridSize * 2 trades - default 10. If there are less than 10 stop/limit orders and no market order, then a market order has closed/been closed, trading is over for the time being and the pending trades are no longer required.

:xm:
All times are UTC Page 49 of 99