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 12 of 15
Author:  SteveHopwood [ Wed Mar 30, 2016 6:15 pm ]
Post subject:  Technical problems running HGB'nG? Post here.

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:
Author:  krzysiekqq2 [ Fri Apr 01, 2016 11:04 am ]
Post subject:  Technical problems running HGB'nG? Post here.

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
Author:  patmontes [ Sun Apr 03, 2016 5:22 am ]
Post subject:  Technical problems running HGB'nG? Post here.

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.
Author:  trader689 [ Thu Apr 07, 2016 9:26 am ]
Post subject:  Technical problems running HGB'nG? Post here.

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
Author:  Logs [ Thu Apr 07, 2016 10:57 am ]
Post subject:  Technical problems running HGB'nG? Post here.

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
Author:  trader689 [ Thu Apr 07, 2016 9:26 pm ]
Post subject:  Technical problems running HGB'nG? Post here.

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
Author:  honeytov [ Sun Apr 10, 2016 4:36 am ]
Post subject:  Technical problems running HGB'nG? Post here.

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
Author:  Peepaws [ Sun Apr 10, 2016 4:42 am ]
Post subject:  Technical problems running HGB'nG? Post here.

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.
Author:  jboy [ Tue Apr 12, 2016 9:19 am ]
Post subject:  Technical problems running HGB'nG? Post here.

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?
Author:  milanese [ Tue Apr 12, 2016 9:28 am ]
Post subject:  Technical problems running HGB'nG? Post here.

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
All times are UTC Page 12 of 15