HGI Hurst Trader

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Post Reply
drunka
Trader
Posts: 86
Joined: Thu Dec 11, 2014 8:05 pm

HGI Hurst Trader

Post by drunka »

sim2505 » 2 minutes ago wrote:Why did you delete the HGI name in the EA inputs ?
Because it uses the libs now.
sim2505
Trader
Posts: 46
Joined: Sun Feb 09, 2014 11:12 pm

HGI Hurst Trader

Post by sim2505 »

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 ;)
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

HGI Hurst Trader

Post by SpiderX »

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
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

HGI Hurst Trader

Post by SpiderX »

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
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
bazze

HGI Hurst Trader

Post by bazze »

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....
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

HGI Hurst Trader

Post by SpiderX »

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
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

HGI Hurst Trader

Post by SpiderX »

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
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
kabitto
Trader
Posts: 16
Joined: Tue Aug 05, 2014 11:31 pm

HGI Hurst Trader

Post by kabitto »

Hi, SPiderX,

Is it normal to see undefined value in latest EA :

HGI SLope Status: UNDEFINED
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

HGI Hurst Trader

Post by SpiderX »

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
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

HGI Hurst Trader

Post by SpiderX »

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
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
Post Reply

Return to “Thingy Bob EA's”