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

Holy Graily Bob 'n Grid
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4525
Page 11 of 99
Author:  SteveHopwood [ Sun Jan 10, 2016 3:11 pm ]
Post subject:  Holy Graily Bob 'n Grid

V 1k is in post 1.

I am coding a private ea for one of our members and this has suggested a way of dealing with fully hedged positions and providing an earlier exit from limit-only trading than is usually provided by HGI. Details in "Using 3_level_zz_semafor for trade closure" in post 1.

The new code has yet to be tested and may contain bugs, so don't rush to put it on any live trading accounts just yet.

:xm:
Author:  cyberevil [ Sun Jan 10, 2016 7:25 pm ]
Post subject:  Holy Graily Bob 'n Grid

Thanks for the info steve. I'll check it out... any edge on the market is good for us as we need it to be consistent in this battle :smile:
Author:  stt [ Mon Jan 11, 2016 12:06 am ]
Post subject:  Holy Graily Bob 'n Grid

Hi Steve,
in LookForTradingOpportunities() you call SendBuyGrid where OriginalSignal = OP_BUY and SendSellGrid function where
OriginalSignal = OP_SELL. I think lines 1885 & 1886 (HGBnG v1k) should be moved to line 1725 and 1823&1824 + 'SendTrade = true;' to line 1698.
Could you be so kind and check it.

regards
stt
Author:  SteveHopwood [ Mon Jan 11, 2016 12:19 am ]
Post subject:  Holy Graily Bob 'n Grid

stt » Mon Jan 11, 2016 12:06 am wrote:Hi Steve,
in LookForTradingOpportunities() you call SendBuyGrid where OriginalSignal = OP_BUY and SendSellGrid function where
OriginalSignal = OP_SELL. I think lines 1885 & 1886 (HGBnG v1k) should be moved to line 1725 and 1823&1824 + 'SendTrade = true;' to line 1698.
Could you be so kind and check it.

regards
stt
Who the Hell are you?

Don't bother to answer. It was a rhetorical question and I do not care whom you are.

Wouldn't care to credit me with the occasional (ok, so often misplaced but we will leave that for a different discussion) bit of intelligence and assume just for a second or two that I know what I am doing?

Or that the code has worked seamlessly and flawlessly for what feels like a mini ice age.

And that you might actually be the dimwit that I now Officially Crown You.

I see this is your first post. Congratulations on your first post being a monumental irritant to the Forum Owner.

In case you are too stupid to have noticed, that is me. I do not like morons. Clearly you did not read my Welcome message closely enough.

This is the second time tonight that I have been called upon to deal with a dimwit, so clearly time to crack the whip.

One more idiotic word from you feller and you will find yourself removed to the group here unable to do anything more than read posts. If I am in a good mood. Otherwise your registration will be removed and you will only be able to return after spending a lot of time getting around the banning thingies here.

Read post one properly, cretin. Then do yourself a favour and shut up until you have learned enough to be able to contribute intelligently.
Author:  Peepaws [ Mon Jan 11, 2016 12:25 am ]
Post subject:  Holy Graily Bob 'n Grid

Sorry to post off topic, but I had a long day and this just made my day!! :yahoo:
Author:  SteveHopwood [ Mon Jan 11, 2016 12:31 am ]
Post subject:  Holy Graily Bob 'n Grid

Peepaws » Mon Jan 11, 2016 12:25 am wrote:Sorry to post off topic, but I had a long day and this just made my day!! :yahoo:
As I remark from time to time, I do try to entertain.

:xm:
Author:  patmontes [ Mon Jan 11, 2016 2:16 am ]
Post subject:  Holy Graily Bob 'n Grid

Nice one Steve!

By the way just to report that last week was 800+ pips...
I was using the stop and limit order option :yahoo:
Only thing I changed was the Grid ATR to H4 same as my trading time frame. We will see if this proves effective over the long run or I get more SLs because or the tighter grid than the D1 setting
Author:  SteveHopwood [ Mon Jan 11, 2016 10:30 am ]
Post subject:  Holy Graily Bob 'n Grid

FXCoder » Fri Jan 08, 2016 4:29 am wrote:Steve,
During setup and preliminary testing of HGBnG 1-j I was setting up multiple pairs (and also a profile for the setup).
I use profiles extensively and always have MT Options set to disable AutoTrading when switching profiles.
i.e. when loading a profile I like to be able to make setting changes before letting things loose by using the AutoTrading button.
My EAs are coded to look for AutoTrading and do whatever they are supposed to do when Terminal and/or an individual EA trading is not enabled.

For convenience I made the below simple change to OnTick() in HGBnG that will check the Terminal AutoTrading status as well as the EA trading status before allowing further processing in OnTick().

Use at your discretion of course.

Cheers,

Bob

Code: Select all

// ======================== Prior code ==========================
   //Those stupid sods at MetaCrapper have ensured that stopping an ea by diabling AutoTrading no longer works. Ye Gods alone know why.
   if (!IsExpertEnabled() )
   {
      Comment("                          EXPERTS DISABLED");
      return;
   }//if (!IsExpertEnabled() )

// ======================= Replace with ========================
if ( !TerminalInfoInteger(TERMINAL_TRADE_ALLOWED) )
   {
      Comment("                          TERMINAL AUTOTRADING IS DISABLED");
      return;
      
   }//if ( !TerminalInfoInteger(TERMINAL_TRADE_ALLOWED) )
   if (!IsTradeAllowed() )
   {
      Comment("                          THIS EXPERT HAS LIVE TRADING DISABLED");
      return;
   }//if (!IsTradeAllowed() )
Thanks Bob. I have added this to HGB'nG and it will be included in the next update. I am also adding it to my shells.

:xm:
Author:  SteveHopwood [ Mon Jan 11, 2016 4:39 pm ]
Post subject:  Holy Graily Bob 'n Grid

I received this pm from Pat earlier:
patmontes wrote:Subject: Holy Graily Bob 'n Grid

Hi Steve,
I know this is a long shot request but would you agree to add a trade close feature for activated HGI Trend Arrow stops or limits by a Yellow Wavy? Like the one in the attached screenshot.
I reckon it will prevent SLs more rather than waiting for an opposite trend arrow to close the trades

Thanks very much!
Sounds like a good idea so I have added this feature. Details in the trade closure section of post 1. The additions are V 1l.

Please also read Live trading and demo versions. in post 1.

:xm:
Author:  patmontes [ Mon Jan 11, 2016 5:12 pm ]
Post subject:  Holy Graily Bob 'n Grid

Thank you Steve!
All times are UTC Page 11 of 99