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


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()
Code: Select all
//Trading times
TradeTimeOk=CheckTradingTimes();
if(!TradeTimeOk)
{
if (OpenTrades > 0)
if (CloseTradesOutsideTradingHours)
TimeToClose();
DisplayUserFeedback();
Sleep(1000);
return;
}//if (!TradeTimeOk)
It doesn't look as though you took my Welcome message seriosuly.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