Holy Graily Bob Basics - ask your questions here.

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 Basics - ask your questions here.

Post by SteveHopwood »

hepsibah » Tue Mar 17, 2015 8:34 pm wrote:I am trying to utilise hedging in HGB but am not able to get both long and short trades open at the same time.

I have:

BrokerAllowsHedging = true
TradeLong = true
TradeShort = true
CloseOnOppositeSignal = false

I am using only Trend and RAD signals and, if a buy Trend trade is already open it seems to ignore subsequent sell signals and vice versa - similarly for RAD signals.

I wondered if the fact that you can have only one main signal of each type open means it is not possible to have both a Trend buy and sell open simultaneaously and/or a buy and sell RAD open?

If anyone has this working ok and can point me in the right direction, I'll be most grateful.
(I am in the UK and my broker allows manual opening of simultaneous buy and sell trades).

Thanks
That is a mea culpa. Sorry.

I create all my EA's from shells that save me a lot of typing and ensure that the code is robust - it worked for 5 years previously so it works now, kind of thing. It also allows me to be confidently rude to people who question it - something I always enjoy.

The problem with doing this is that some redundant code gets left behind if I forget to delete/hide it. This is why you have come across BrokerAllowsHedging - it should be hidden from your view because there is no hedging allowed by HGB. This input will be hidden in future releases.

So, to confirm: this input should have been hidden from your view; it has no effect on HGB; HGB has no hedging features.

: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 Basics - ask your questions here.

Post by SteveHopwood »

hepsibah » Tue Mar 17, 2015 8:34 pm wrote:I am trying to utilise hedging in HGB but am not able to get both long and short trades open at the same time.

I have:

BrokerAllowsHedging = true
TradeLong = true
TradeShort = true
CloseOnOppositeSignal = false

I am using only Trend and RAD signals and, if a buy Trend trade is already open it seems to ignore subsequent sell signals and vice versa - similarly for RAD signals.

I wondered if the fact that you can have only one main signal of each type open means it is not possible to have both a Trend buy and sell open simultaneaously and/or a buy and sell RAD open?

If anyone has this working ok and can point me in the right direction, I'll be most grateful.
(I am in the UK and my broker allows manual opening of simultaneous buy and sell trades).

Thanks
I should say that you are the first person in umpteen thousand to have tried this bot to have both noticed and brought it up.

Congrats on a useful post. :clap:

: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.
hepsibah
Posts: 2
Joined: Thu Jul 25, 2013 2:14 am

Holy Graily Bob Basics - ask your questions here.

Post by hepsibah »

SteveHopwood » Tue Mar 17, 2015 10:00 pm wrote: I should say that you are the first person in umpteen thousand to have tried this bot to have both noticed and brought it up.

Congrats on a useful post. :clap:

:xm:
Many thanks for the speedy response - and for not flaming me :shock:

I am loving your forum, the attitude of the subscribers is refreshing and the quality of the contributions is awesome.
grasshopper
Trader
Posts: 23
Joined: Sat Jan 14, 2012 2:58 pm

Holy Graily Bob Basics - ask your questions here.

Post by grasshopper »

I get invalid trade volume error and is seems to be isolated to eur/usd?
Otherwise the pips are piling up in our favor.
You do not have the required permissions to view the files attached to this post.
buzznack
Trader
Posts: 10
Joined: Tue Dec 17, 2013 9:11 pm

Holy Graily Bob Basics - ask your questions here.

Post by buzznack »

Hi,

My computer has slowed to a crawl since installing HGB. It was fine to start with with rapid opening of charts etc but now its almost at a standstill taking up to two minutes to flick between charts.
Its a new computer with 4gb of ram and a 2.4 ghz processor. Anyone else experiencing this problem and how do i overcome it. Just looked at my task manager and my platform is taking 72% of my CPU capacity.

Andy
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Holy Graily Bob Basics - ask your questions here.

Post by milanese »

buzznack » Fri Mar 20, 2015 2:34 pm wrote:Hi,

My computer has slowed to a crawl since installing HGB. It was fine to start with with rapid opening of charts etc but now its almost at a standstill taking up to two minutes to flick between charts.
Its a new computer with 4gb of ram and a 2.4 ghz processor. Anyone else experiencing this problem and how do i overcome it. Just looked at my task manager and my platform is taking 72% of my CPU capacity.

Andy
try to set HgiReadDelaySeconds to 300 or 600 and use less pairs... at exp only the majors..

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
buzznack
Trader
Posts: 10
Joined: Tue Dec 17, 2013 9:11 pm

Holy Graily Bob Basics - ask your questions here.

Post by buzznack »

Thanks Tommaso that´s improved it no end.

Regards

Andy
barry
Trader
Posts: 81
Joined: Thu Mar 01, 2012 5:12 am

Holy Graily Bob Basics - ask your questions here.

Post by barry »

buzznack » Sat Mar 21, 2015 1:04 am wrote: My computer has slowed to a crawl since installing HGB. It was fine to start with with rapid opening of charts etc but now its almost at a standstill taking up to two minutes to flick between charts.
Its a new computer with 4gb of ram and a 2.4 ghz processor. Anyone else experiencing this problem and how do i overcome it. Just looked at my task manager and my platform is taking 72% of my CPU capacity.

Andy
Andy, in Task Manager, you can click the headers to rank the processes. When you do that, you can see which are the CPU hogs. For me, it was a malfunctioning OneDriveSynch, and Microsoft has a free download to fix that, which worked for me.
JohnnyAmpere
Trader
Posts: 42
Joined: Thu Feb 19, 2015 12:40 pm

Holy Graily Bob Basics - ask your questions here.

Post by JohnnyAmpere »

For the past days I've been trying to figure something out. I've noticed while I was testing HGB and now with HGB-Piproid on my Empty4 platform that (almost) exactly the same pending orders were sent out for a signal generated by HGI.
wave.png


I've been reading through the user guide to figure out how to avoid this and I managed doing that by setting PostTradeAttemptWaitSeconds to 14400 for trading on 4H charts and to 3600 for trading on 1H charts. It did not open multiple pending orders for the same signal anymore, but I've got a feeling that this isn't the way how it's supposed to be done and that I'm messing with a setting which I shouldn't.

Is there a correct way solve this? I know I am missing something but I can't figure it out. :arrrg:
You do not have the required permissions to view the files attached to this post.
buzznack
Trader
Posts: 10
Joined: Tue Dec 17, 2013 9:11 pm

Holy Graily Bob Basics - ask your questions here.

Post by buzznack »

Hi,
I´ve noticed that the new version of HGB/pip that the pending orders seem to be along way off the current price. For example NZ/jpy the order was placed at 00.10 at 90.93 but the pending order was a buy at 92.40 .
Seems to be a long way off can the setting be adjusted?

Many thanks

Andy
Post Reply

Return to “Thingy Bob EA's”