That is a mea culpa. Sorry.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 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.