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

Holy Graily Candle Bob
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5517
Page 5 of 5
Author:  SteveHopwood [ Sun Sep 16, 2018 12:11 pm ]
Post subject:  Holy Graily Candle Bob

V 1k is in post 1.

I have added inputs and code that allows you to use the individual HGI time frames for closing trades.

:xm: :rocket:
Author:  SteveHopwood [ Sat Sep 22, 2018 8:03 pm ]
Post subject:  Holy Graily Candle Bob

I have done some pruning here tonight. Cracking the whip, as I am occasionally called on to do.

Those of you posting to try to help the dimwits, thanks for trying. I appreciate your efforts but they are most likely beyond help.

Those of you whose questions are deleted: they were stupid ones. Ask them again and I will ban you. I consider you to be an idiot. Idiots are unwelcome at SHF.

:xm: :rocket:
Author:  SteveHopwood [ Sun Sep 23, 2018 1:27 pm ]
Post subject:  Holy Graily Candle Bob

HGCB is compatible with TDesk, so to run the latest versions you will need the TDesk.mqh You are missing out monumentally if you have not tapped into its potential yet. I have written a 'getting started' guide at
http://www.stevehopwoodforex.com/phpBB3 ... 90#p163890

V 1l is in post 1. I have added a new input to the "Trading hours" inputs - CloseTradesOutsideTradingHours. This tells HGCB to close all open orders once we are outside our trading hours. It is disabled by default and you do not need the update if you do not want this feature.

DIYers: do a search for "extern string tradingHours=""; and add this underneath:
extern bool CloseTradesOutsideTradingHours=false;
Change the 'false' to true if you intend using this feature.

Insert this function anywhere you like:

Code: Select all

void TimeToClose()
{
   //Closes all trades if we are at the closing hour
   
   
   CloseAllTrades(AllTrades);
   if (ForceTradeClosure)
      CloseAllTrades(AllTrades);

   if (ForceTradeClosure)
      CloseAllTrades(AllTrades);

   if (ForceTradeClosure)
      CloseAllTrades(AllTrades);

   

}//void ItTimeToClose()
Do a search for "TradeTimeOk=CheckTradingTimes();"
Copy this over the top of the existing block:

Code: Select all

   //Trading times
   TradeTimeOk=CheckTradingTimes();
   if(!TradeTimeOk)
   {
      if (OpenTrades > 0)
         if (CloseTradesOutsideTradingHours)
            TimeToClose();
      DisplayUserFeedback();
      Sleep(1000);
      return;
   }//if (!TradeTimeOk)
:xm: :rocket:
Author:  SteveHopwood [ Mon Sep 24, 2018 10:32 am ]
Post subject:  Holy Graily Candle Bob

I see that a lot of people have looked at my TDesk getting started post. Gertje just sent me a pm telling me I had inadvertently described TDesk as an indicator. It is in fact an Expert Advisor, something most of you will have sussed by now.

Sorry about that. I was sober at the time, so no idea what I was thinking. That makes the huge assumption that my vague mental processes can ever be described as "thinking". :oops:

:xm: :rocket:
Author:  oldflatop [ Tue Nov 26, 2019 9:42 pm ]
Post subject:  Holy Graily Candle Bob

I wonder if there is an older version of this EA that does not require TDesk?
A bit like candle power maybe?
I'd love to test this but feel I'm not ready to take on Tdesk yet.
Cheers
Author:  SteveHopwood [ Wed Nov 27, 2019 12:34 am ]
Post subject:  Holy Graily Candle Bob

oldflatop ยป Tue Nov 26, 2019 9:42 pm wrote:I wonder if there is an older version of this EA that does not require TDesk?
A bit like candle power maybe?
I'd love to test this but feel I'm not ready to take on Tdesk yet.
Cheers
It doesn't look as though you took my Welcome message seriosuly.

Re your moronic post, all you need to do is download TDeskSignals.mqh into your Include file, from the TDesk thread.

Can't do this? Tough.

SHF is not a place for the wet and pathetic. You need to find somewhere else to play if you cannot even be arsed to work out how to download a basic file.
Author:  salah98 [ Thu Sep 30, 2021 5:37 pm ]
Post subject:  Holy Graily Candle Bob

thanks :popcorn:
All times are UTC Page 5 of 5