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

Technical problems running HGB'nG? Post here.
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4570
Page 10 of 15
Author:  krzysiekqq2 [ Tue Mar 15, 2016 7:11 pm ]
Post subject:  Technical problems running HGB'nG? Post here.

Hi, just to confirm. If Semafor closes all market and pending order in profit it will not send any new grid. Am I correct? This I saw today on EG pair
Author:  k3v1n0s [ Tue Mar 15, 2016 7:22 pm ]
Post subject:  Technical problems running HGB'nG? Post here.

krzysiekqq2 » 15 Mar 2016, 20:11 wrote:Hi, just to confirm. If Semafor closes all market and pending order in profit it will not send any new grid. Am I correct? This I saw today on EG pair
Hi krzysiekqq2,

With default settings, the grids are just placed in case there are open losing trades. If the position is unhedged and running in profit as a semafor signal appears, the position gets closed out and there is no need to place new grids. The cycle is over and HGB'nG starts looking for a new signal.

Cheers,

Kevin
Author:  krzysiekqq2 [ Tue Mar 15, 2016 7:46 pm ]
Post subject:  Technical problems running HGB'nG? Post here.

Kevin, thanks for confirmation. I kept them running with hope, that when they close, new grid will be send continuing the HGI signal. Still with extreme gorgeous results of +1150 pips today. Thanks to Steve and you.
Cheers, Krzysiek
Author:  krzysiekqq2 [ Wed Mar 16, 2016 7:20 pm ]
Post subject:  Technical problems running HGB'nG? Post here.

HGBnG_MK2.set
Hi, have you get executed blue wave on EU? I have a signal, but no trades.
Cheers, Krzysiek
EURUSDH4_16_3_16.png
Author:  SteveHopwood [ Wed Mar 16, 2016 10:49 pm ]
Post subject:  Technical problems running HGB'nG? Post here.

krzysiekqq2 » Wed Mar 16, 2016 7:20 pm wrote:Hi, have you get executed blue wave on EU? I have a signal, but no trades.
Cheers, Krzysiek
The bot will not take trades in the teeth of a high semafor on the previous candle.

:xm:
Author:  lwphoon [ Mon Mar 21, 2016 8:58 am ]
Post subject:  Technical problems running HGB'nG? Post here.

I face the following on the version 1a and I use the same set file from the previous version 2n. I switch off all the RAD trading and MA filters and maintain the same settings from the version 2n. I wonder what happen, is there a bug in this version 1a as this doesn't happen on 2n. Kindly please advise.
screenshot.png
2n set file.set
Author:  SteveHopwood [ Mon Mar 21, 2016 9:30 am ]
Post subject:  Technical problems running HGB'nG? Post here.

lwphoon » Mon Mar 21, 2016 8:58 am wrote:I face the following on the version 1a and I use the same set file from the previous version 2n. I switch off all the RAD trading and MA filters and maintain the same settings from the version 2n. I wonder what happen, is there a bug in this version 1a as this doesn't happen on 2n. Kindly please advise.


You might care to note that I react badly to suggestions that problems on your platform are down to a bug in my code. Best not to suggest that again; my next reply will be unfriendly should you do so.
Author:  barry [ Mon Mar 21, 2016 10:13 am ]
Post subject:  Technical problems running HGB'nG? Post here.

lwphoon,
See p6 of this thread for earlier discussion of this issue.
Author:  lwphoon [ Mon Mar 21, 2016 3:26 pm ]
Post subject:  Technical problems running HGB'nG? Post here.

SteveHopwood wrote:
lwphoon » Mon Mar 21, 2016 8:58 am wrote:I face the following on the version 1a and I use the same set file from the previous version 2n. I switch off all the RAD trading and MA filters and maintain the same settings from the version 2n. I wonder what happen, is there a bug in this version 1a as this doesn't happen on 2n. Kindly please advise.


You might care to note that I react badly to suggestions that problems on your platform are down to a bug in my code. Best not to suggest that again; my next reply will be unfriendly should you do so.
Noted Steve.

barry wrote:lwphoon,
See p6 of this thread for earlier discussion of this issue.
Thanks Barry
Author:  xclr8tr [ Tue Mar 22, 2016 7:39 pm ]
Post subject:  Technical problems running HGB'nG? Post here.

Hi All,
I got myself set up with some demos and everything looks good :)

Having trouble with the FIFO Scripts for closing trades and pendings. I've tried both of them and they don't seem to close anything. I've got the right magic in them etc... I've used other scripts for HGB etc for other things and they work fine so not sure what I'm doing wrong...

Any help on this appreciated, I'll try some more and have a look at the code just cause I'm curious how its set up, always wondered how they do things different for fifo stuff.

Also, I'm a long time user of Oanda so maybe something not agreeable with their set up, just guessing I haven't had a problem with them before though...

Edit:
I added the "CountOpenTrades()" to the two "ForceTradeClosure" if statements and now it works like its on fire :) , just got lucky with that, figured it wouldn't hurt to try, it looked like the only thing that could be missing. Same fix applies for both the "Close all trades this pair only FIFO.mq4" and the
"Nuclear Option FIFO.mq4".

I didn't try the non FIFO code so someone might want to check it but my guess is that its fine because it doesn't use the "CountOpenTrades()" function and someone would have probably fixed it by now.

I like how you use the arrays, just starting to understand them a little, thanks for all you do Steve, your the best :) and thanks to all who contribute and help build these awesome ea's for me to work with.

Code: Select all

void OnStart()
{
   //Construct the ticket numbers array
   CountOpenTrades();// ***this one was already here***
   
   //Close market orders
   CloseAllTrades(0);
   
   //Delete pending trades
   CloseAllTrades(2);
   
   //Try again if necessary
   if (ForceTradeClosure)
   {   
    CountOpenTrades();// ***added code here***
   
      //Close market orders
      CloseAllTrades(0);
      
      //Delete pending trades
      CloseAllTrades(2);
   }//if (ForceTradeClosure)
   
   //And again if necessary
   if (ForceTradeClosure)
   {   
     CountOpenTrades();// ***added code here***
      
      //Close market orders
      CloseAllTrades(0);
      
      //Delete pending trades
      CloseAllTrades(2);
   }//if (ForceTradeClosure)
   
   //Give up
   if (ForceTradeClosure)
      Alert("The script did not close/delete all trades. Please try again.");
   
}

Thanks All
xclr8tr
All times are UTC Page 10 of 15