HGI Hurst Trader

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Post Reply
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

HGI Hurst Trader

Post by SpiderX »

sim2505 » Wed Dec 24, 2014 1:37 am wrote:Thanks Neno and Spider for your clarification and for the updated version. We can choose the exit now :hi: I worked on M30 with TMAs H4, it would be more accurate with these options. How are your results for you ?
I have a question: Why it didn't take the trade when FastTMA>LowTMA ? and only after as you can see on the pic ?

Thks

Cheers

Sim
Hi Sim,

Thanks for testing this out.
The Hurst indicator repaints.
To actually see what went on during that moment, you need to use the FxBlue trade simulator and run through the moment with the indicators on the chart.
You can also run the EA in visual backtest mode through that exact moment and see what the EA outputs for the Hurst values ...see if it corresponds to the actual Hurst values you see on your chart.

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
kvhutch
Trader
Posts: 24
Joined: Thu Aug 14, 2014 3:00 pm

HGI Hurst Trader - additional exit

Post by kvhutch »

As an enhancement can I suggest the following exit in line with Hurst principles:
Hurst has excellent predictive take profit capabilities once the 5 and 11 MAs have crossed post trade initiation. Could we project the take profit once the MA cross condition has been met? For a buy, logic might be along the lines of:

if 5 MA >= 11 MA
then TP = MAs intersection price + (MAs intersection price - buy trend arrow bar low)


and vice versa for sell trades - allowing us to take full advantage not only of Hurst entry functionality but the exit functionality as proposed by Hurst too (first mentioned by Pedro2).

I think it could be a great multi-trade candidate. Only downside being you don't know before the intersection how long the run could be - mind you this is also true of other multi trades ...
The dream is real ...
sim2505
Trader
Posts: 46
Joined: Sun Feb 09, 2014 11:12 pm

HGI Hurst Trader

Post by sim2505 »

SpiderX » Wed Dec 24, 2014 1:21 am wrote:
sim2505 » Wed Dec 24, 2014 1:37 am wrote:Thanks Neno and Spider for your clarification and for the updated version. We can choose the exit now :hi: I worked on M30 with TMAs H4, it would be more accurate with these options. How are your results for you ?
I have a question: Why it didn't take the trade when FastTMA>LowTMA ? and only after as you can see on the pic ?

Thks

Cheers

Sim
Hi Sim,

Thanks for testing this out.
The Hurst indicator repaints.
To actually see what went on during that moment, you need to use the FxBlue trade simulator and run through the moment with the indicators on the chart.
You can also run the EA in visual backtest mode through that exact moment and see what the EA outputs for the Hurst values ...see if it corresponds to the actual Hurst values you see on your chart.

Cheers
Hi Spider,

Thanks yes, I tested on basktest to see at the real visual and you're right.

However, I noticed signals are more accurate when it's above or below the TMA slow (11).
So, buy signal when:
- Hurst (5)MA below Hurst (11)MA AND Trend signal below Hurst 11
and Sell signal:
- Hurst (5)MA above Hurst (11)MA AND Trend signal above Hurst 11

Have a look on the chart, I think we have less signals but at a better place.

What do you think about that ? :)

Cheers

Sim
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

HGI Hurst Trader - additional exit

Post by SpiderX »

kvhutch » Wed Dec 24, 2014 2:53 pm wrote:As an enhancement can I suggest the following exit in line with Hurst principles:
Hurst has excellent predictive take profit capabilities once the 5 and 11 MAs have crossed post trade initiation. Could we project the take profit once the MA cross condition has been met? For a buy, logic might be along the lines of:

if 5 MA >= 11 MA
then TP = MAs intersection price + (MAs intersection price - buy trend arrow bar low)


and vice versa for sell trades - allowing us to take full advantage not only of Hurst entry functionality but the exit functionality as proposed by Hurst too (first mentioned by Pedro2).

I think it could be a great multi-trade candidate. Only downside being you don't know before the intersection how long the run could be - mind you this is also true of other multi trades ...
Hi

Sure. That could be done.
Let me know if anything from Pedro's discussion has been missed.

Multi-trade is probably not such a great idea for now.
You should run a backtest using fxblue simulator with both indicators, and you will see that there are not that many trades.
The Hurst filter really limits the number of trades..this is the reason why the EA allows one trade a time at this point.
It is very very unlikely you can pick up another HGI trade signal after your initial trade.

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 »

sim2505 » Wed Dec 24, 2014 6:14 pm wrote: However, I noticed signals are more accurate when it's above or below the TMA slow (11).
So, buy signal when:
- Hurst (5)MA below Hurst (11)MA AND Trend signal below Hurst 11
and Sell signal:
- Hurst (5)MA above Hurst (11)MA AND Trend signal above Hurst 11

Have a look on the chart, I think we have less signals but at a better place.
Hi sim,

The number of trades are already not so much with the Hurst filter, not sure how many trade you would cut off if you add even more restrictions on the trading.
If a few others advise that this suggestion is workable, then i will add it into 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
Neno0102
Trader
Posts: 30
Joined: Wed Jan 04, 2012 4:25 pm

HGI Hurst Trader

Post by Neno0102 »

Hi Spider,

What I found useful is to calculate gap between SlowMA and FastMa and if that gap is greater then XX then all RAD buy signals to become sell trigers since market is in exhaustion.
I tried with

else if(EntryOnRAD && HGI_Signal == RADDN && (MathAbs(SlowMA_val - FastMA_val) > HurstGap_Sell))
{
MagicNumber = MagicNumberRAD;
TradeComment= "RAD Sell";

but I clearly done something wrong. It compiles without errors but EA is not taking trades.I already defined buffer 4 to be sell and buffer 5 buy.Without gap it is taking trades in opposite direction but do not want to take opposite trade on RAD until gap between 2 MA's is in extreme.
Can you please help ?
Thanks.

Happy Christmas to everyone. :xm:
kwchau
Trader
Posts: 305
Joined: Tue Jan 03, 2012 3:37 pm

HGI Hurst Trader

Post by kwchau »

Merry Christmas to Everyone !

Hi Spider,

Market opened in Asia with a very slow pace, I put the EA to test. There is a big green arrow now for AUDJPY but the trade is not taken. I have set Entry On Trend to true, Min Trade Time Minutes to 15 and Trading Hours to Blank, others are pretty much out of the box.

Please see the attached chart. The indicator HGI v15.06 also gives an alert to buy but the EA stays put.
I could figure out why ?

Cheers
You do not have the required permissions to view the files attached to this post.
kwchau
Trader
Posts: 305
Joined: Tue Jan 03, 2012 3:37 pm

HGI Hurst Trader

Post by kwchau »

Hi Spider,

Same for CADJPY. Please see chart.
You do not have the required permissions to view the files attached to this post.
User avatar
SpiderX
Trader
Posts: 554
Joined: Thu Aug 22, 2013 4:50 pm

HGI Hurst Trader

Post by SpiderX »

kwchau » Fri Dec 26, 2014 10:54 am wrote:Hi Spider,

Same for CADJPY. Please see chart.

Hi kwchau,

Thanks for providing feedback.
Today is Friday.
So Friday trading restrictions kick in.
Please adjust the following:

Code: Select all

extern int     MondayStartHour=15;//Do not allow trading on Mondsay before this time
extern int     FridayStopHour =1; //Do not allow trading on Friday after this hour 
Next version i would probably readjust these variable to a more reasonable time.

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
kwchau
Trader
Posts: 305
Joined: Tue Jan 03, 2012 3:37 pm

HGI Hurst Trader

Post by kwchau »

SpiderX » Fri Dec 26, 2014 11:09 am wrote:
Hi kwchau,

Thanks for providing feedback.
Today is Friday.
So Friday trading restrictions kick in.
Please adjust the following:

Code: Select all

extern int     MondayStartHour=15;//Do not allow trading on Mondsay before this time
extern int     FridayStopHour =1; //Do not allow trading on Friday after this hour 
Next version i would probably readjust these variable to a more reasonable time.

Cheers
Thank you Spider, will adjust them and try again. Appreciate your work very much.
Post Reply

Return to “Thingy Bob EA's”