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

HGI Hurst Trader
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4009
Page 12 of 18
Author:  drunka [ Sun Jan 11, 2015 9:36 pm ]
Post subject:  HGI Hurst Trader

sim2505 » 2 minutes ago wrote:Why did you delete the HGI name in the EA inputs ?
Because it uses the libs now.
Author:  sim2505 [ Sun Jan 11, 2015 9:46 pm ]
Post subject:  HGI Hurst Trader

drunka » Sun Jan 11, 2015 9:36 pm wrote:
sim2505 » 2 minutes ago wrote:Why did you delete the HGI name in the EA inputs ?
Because it uses the libs now.
Ok thanks drunka ;)
Author:  SpiderX [ Mon Jan 12, 2015 12:47 am ]
Post subject:  HGI Hurst Trader

hi drunka,

Thanks for helping out fellow traders here.
With regards to the issues, let me see if it can be replicated on my end.
The EA seem to be working fine in backtester.
The worse case temporary fix for now is to edit the file for your settings and compile it.
Maybe you all can check also what version of the HGI indicator you have currently in your Empty4.

Cheers
Author:  SpiderX [ Mon Jan 12, 2015 1:01 am ]
Post subject:  HGI Hurst Trader

bazze » Mon Jan 12, 2015 1:25 am wrote:Thanks for sharing :good: But,got this error...I try to attach the EA,but it dissapear from the chart after a while?

Hi bazze,

Were you using trading hours ?
If yes, can you post the input you have for trading hours ?

Cheers
Author:  bazze [ Mon Jan 12, 2015 5:07 am ]
Post subject:  HGI Hurst Trader

Yes,I want to have the EA to trade +01.00.-09.00. But,everytime I try to attach it,it deletes itself from the chart...
Have tried to set the trading hour and then compiled it,but the same happens....
Author:  SpiderX [ Mon Jan 12, 2015 5:59 am ]
Post subject:  HGI Hurst Trader

bazze » Mon Jan 12, 2015 1:07 pm wrote:Yes,I want to have the EA to trade +01.00.-09.00. But,everytime I try to attach it,it deletes itself from the chart...
Have tried to set the trading hour and then compiled it,but the same happens....
Probably the input is wrong.
Can you revert trading hours back to "" , and retry ?
If it works, it implies there is a mistake in your filling up of the trading hours.
It should be "+01.00,-09.00";

Cheers
Author:  SpiderX [ Mon Jan 12, 2015 11:48 am ]
Post subject:  HGI Hurst Trader

Hi all,

Have isolated the issue to the TradingHours part.
Hang on tight while the issue is being resolved.
In the mean time, please do not use that function.

Cheers
Author:  kabitto [ Mon Jan 12, 2015 2:38 pm ]
Post subject:  HGI Hurst Trader

Hi, SPiderX,

Is it normal to see undefined value in latest EA :

HGI SLope Status: UNDEFINED
Author:  SpiderX [ Mon Jan 12, 2015 3:14 pm ]
Post subject:  HGI Hurst Trader

Hi all,

Caught the bug.

11 Jan 15:v1.04b

Fixed bug in trading time function.
Due to enabling of #property strict in the EA, the bug surfaced and caused the EA to exit.
Previously this bug was not uncovered without #property strict

For the coders, under CheckTradingTimes() Function

Previously was:

Code: Select all

while ( time >= tradeHours[i] ) 
{	
	if ( i == ArraySize( tradeHours ) ) break;		
	i++;	
}
Correct code is:

Code: Select all

while ( time >= tradeHours[i] ) 
{	
	i++;
	if ( i == ArraySize( tradeHours ) ) break;			
}

When #propertystrict is enabled, the first piece of code causes the call to go out of bounds and exit the EA.


Cheers
Author:  SpiderX [ Mon Jan 12, 2015 3:15 pm ]
Post subject:  HGI Hurst Trader

kabitto » Mon Jan 12, 2015 10:38 pm wrote:Hi, SPiderX,

Is it normal to see undefined value in latest EA :

HGI SLope Status: UNDEFINED
Hi kabito,

Yes.
My bad...UNDEFINED means no slope value, so that is normal.

Cheers
All times are UTC Page 12 of 18