Technical problems running HGB'nG? Post here.

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
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.

Technical problems running HGB'nG? Post here.

Post by SteveHopwood »

Heraclees » Wed Mar 30, 2016 6:05 pm wrote:Hi pals,
For guys who trepassing all secure warnings from Steve and still want to "cross the highway" blinded for feeling the pain and misery aiming to test all your dement strategies with this great tool. You can comment out the following code

Code: Select all

/*   if (LatestTradeTime >= iTime(Symbol(), TradingTimeFrame, 0) )
      if (HgiSignalStatus == hginosignal)
         if (!BuyOpen)
            if (!SellOpen)
            {
               tries = 0;
               ForceTradeClosure = true;
               while(ForceTradeClosure)
               {
                  ForceTradeClosure = false;
                  if (SellStopOpen)
                     CloseAllTrades(OP_SELLSTOP);
                  if (SellLimitOpen)
                     CloseAllTrades(OP_SELLLIMIT);
                  if (BuyStopOpen)
                     CloseAllTrades(OP_BUYSTOP);
                  if (BuyLimitOpen)
                     CloseAllTrades(OP_BUYLIMIT);  
                  tries++;
                  if (tries >= 100)
                  {
                     ForceTradeClosure = false;
                     break;
                  }//if (tries >= 100)
              }//while(ForceTradeClosure)
            }//if (!SellOpen)
    
   //All market trades have hit tp
   if (PendingTradesTotal < (GridSize * 2) )//There should be up to GridSize * 2
      if (MarketTradesTotal == 0)//And all the market trades have hit tp or sl
      {
         ForceTradeClosure = true;
         while(ForceTradeClosure)
         {
            tries = 0;
            ForceTradeClosure = false;
            if (SellStopOpen)
               CloseAllTrades(OP_SELLSTOP);
            if (SellLimitOpen)
               CloseAllTrades(OP_SELLLIMIT);
            if (BuyStopOpen)
               CloseAllTrades(OP_BUYSTOP);
            if (BuyLimitOpen)
               CloseAllTrades(OP_BUYLIMIT);  
                  tries++;
                  if (tries >= 100)
                  {
                     ForceTradeClosure = false;
                     break;
                  }//if (tries >= 100)
        }//while(ForceTradeClosure)
      }//if (MarketTradesTotal == 0)//And all the market trades have hit tp or sl
   */ 
So you can send full grid/stop/limite orders without the AE delete them at sight because you try to alter its "perfection".

Of course there are proper way to do but i'm not a coder, just amateur trying to learn by myself and testing what is generously offer without abusing.
Hence IMO the first test is deleting all pending orders if there is no hgi signal anymore and no trade filled. Not impacting much with keeping grid stop orders trading.
And the 2nd test is removing when all TP is react and only left 1 side order but for me it not impacting much as well as if all tp are hit then close on semafor function / close on yellow wave are nearby and will take care of it.
Voila have fun pals. I'm but at present it affect much my 9/5 job time... :jump:
Great to see you tinkering with this stuff. :clap: :clap: :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.
User avatar
krzysiekqq2
Trader
Posts: 69
Joined: Sun Oct 11, 2015 11:59 am
Location: Gdynia, town at Baltic sea cost

Technical problems running HGB'nG? Post here.

Post by krzysiekqq2 »

Hi, I would like to place all buttons in 1 column on right side of chart. Can you advise me how to do so?
Cheers,
Krzysiek
You do not have the required permissions to view the files attached to this post.
User avatar
patmontes
Trader
Posts: 367
Joined: Wed Apr 23, 2014 10:42 pm

Technical problems running HGB'nG? Post here.

Post by patmontes »

Hope you have a good day...
Just wanted to ask something. If Im currently running version 2n on Live then i have open trades and stops, will changing to the latest version pick up or manage the existing trades from 2n?
Not really a technical problem but just want to make sure before I switch my live charts.
trader689
Trader
Posts: 674
Joined: Thu Nov 17, 2011 12:53 am

Technical problems running HGB'nG? Post here.

Post by trader689 »

hey all

im running hgb n his ma in a hedge. the other day i closed out all open positions and pendings (not sure if its related to my current problem) - but since then no pendings were being set, unusual for a couple of days to go by and no activity. just now i notied that it says 'outside trading hours' even though its set to 24 hr trading, please see screenshot:
hgb hedge.jpg
any advice much appreciated thanks
You do not have the required permissions to view the files attached to this post.
Logs
Trader
Posts: 14
Joined: Sun Nov 27, 2011 5:38 am
Location: Queensland

Technical problems running HGB'nG? Post here.

Post by Logs »

Check Expert inputs for 'Trade Thursday Candle = True', I had the same problem a couple of weeks ago.
This may be part of your problem.

http://www.stevehopwoodforex.com/phpBB3 ... ay#p137258
trader689
Trader
Posts: 674
Joined: Thu Nov 17, 2011 12:53 am

Technical problems running HGB'nG? Post here.

Post by trader689 »

that was it, thanks
Logs » Thu Apr 07, 2016 10:57 am wrote:Check Expert inputs for 'Trade Thursday Candle = True', I had the same problem a couple of weeks ago.
This may be part of your problem.

http://www.stevehopwoodforex.com/phpBB3 ... ay#p137258
honeytov
Posts: 6
Joined: Thu Dec 31, 2015 11:26 am

Technical problems running HGB'nG? Post here.

Post by honeytov »

Good to all
I am running HGBnG v2h on a demo and a live using the same set.Yesterday the demo closed EJ in profit and deleted all EJ pending orders but the live did not.Now EJ on the live is red :arrrg:
Does anyone experience the similar thing?
Why?

Broker:IC Markets
PS:The demo and live are on different VPS.The demo is running for a month and the live just begins this week.

THX
Honey
Peepaws
Trader
Posts: 121
Joined: Thu Nov 27, 2014 11:19 pm

Technical problems running HGB'nG? Post here.

Post by Peepaws »

There are so many factors. You could start the 2 accounts minutes apart and have very different results. I have started 3 demos at the same time and had different results.
jboy
Trader
Posts: 57
Joined: Sat Dec 17, 2011 7:18 am

Technical problems running HGB'nG? Post here.

Post by jboy »

Hey guys,

I'm having this error when I load the EA.

"ButtonCreate: failed to create the button! Error code = 4200"

For some reason, the buttons are not created on my charts. Is there a file that I need to download and put somewhere for the buttons to appear?
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Technical problems running HGB'nG? Post here.

Post by milanese »

jboy » Tue Apr 12, 2016 9:19 am wrote:Hey guys,

I'm having this error when I load the EA.

"ButtonCreate: failed to create the button! Error code = 4200"

For some reason, the buttons are not created on my charts. Is there a file that I need to download and put somewhere for the buttons to appear?
no, try it on a fresh chart, as the error code 4200 means "Object already exists", the buttons were created , try different setting for the buttons, as it depends much on your chart size how usable the buttons will be with the OOTB settings..

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
Post Reply

Return to “Thingy Bob EA's”