Recently I have focused my attention on trading Range and Trend market conditions independently on the same account with a view to reducing overall draw down and maximizing profit.
Rather than trying to make one EA do the impossible I thought why not find the best for each. After all if we were given the task of putting together the best home sound system we probably wouldn't choose the same brand speakers, amplifier and CD player, we would choose the best brands independently.
I am bringing together my three favorite EA's which have been developed here at SHF:
HGBnG on M5 to handle directional moves
RnR to maximize profit from every range
GridMaster to add an extra offsetting option working one level higher than RnR and HGBnG
SERIOUS WARNING
Most Forex traders lose all their money.
Using the robots posted here in trading Forex does not guarantee success.
Trading these robots could lead to serious financial loss.
Trading these robots without understanding its underlying trading strategies guarantees traders will lose their money.
These are not set-and-forget ea; there is no such thing and anyone who tries to claim there is, is either stupid or lying. These EA requires frequent manual intervention.
At best, a trading robot is only 90% as good as the manual strategy it trades. At best. At worst, it can be much less effective. If the strategy is rubbish, so is the robot.
To trade these robots, you have to understand how to use EA's
To trade these robots, you have to read the relevant threads for HGBnG, RnR and Gridmaster
Lot size of 0.01 RnR and 0.05 HGBnG per 5000+ account size
GridMaster (HGBnG + RnR) 5 pip grid
TrendRangeCombo
- TraderJoeForex
- Trader
- Posts: 1157
- Joined: Fri Mar 08, 2013 10:29 pm
- Location: South London
TrendRangeCombo
You do not have the required permissions to view the files attached to this post.
Last edited by TraderJoeForex on Thu Aug 18, 2016 6:46 pm, edited 30 times in total.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
TrendRangeCombo
Brilliant. Thanks for this.
Others will be along later - there does not tend to be a lot of activity on a Saturday. I will link this in my wrup.

Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- tomele
- Administrator
- Posts: 1208
- Joined: Tue May 17, 2016 3:40 pm
- Location: Germany, Forest of Odes, Defending the Limes
TrendRangeCombo
Great work, TJ.
I will definitely test this next week.
Happy pippin, Thomas
I will definitely test this next week.
Happy pippin, Thomas
Happy pippin, Thomas 
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
- woodlands
- Trader
- Posts: 226
- Joined: Sun Mar 23, 2014 6:16 pm
TrendRangeCombo
Thanks TJF, setting up demo now. This looks very interesting :hi:
It seems that the 'common' tab needs to be set manually to 'Only Long' or 'Only Short' on the HGBnG, certainly on my platform unless I am missing something in the settings tab
It seems that the 'common' tab needs to be set manually to 'Only Long' or 'Only Short' on the HGBnG, certainly on my platform unless I am missing something in the settings tab
- TraderJoeForex
- Trader
- Posts: 1157
- Joined: Fri Mar 08, 2013 10:29 pm
- Location: South London
TrendRangeCombo
Good catch.. yes I will add this note to post 1. It's also worth knowing that there will be error messages as a result of managing the EA this way too.. I am sure this can be sorted when Steve has a chance so that we can have a dedicated buy only and sell only version perhaps.woodlands » Sat Jul 09, 2016 4:06 pm wrote:Thanks TJF, setting up demo now. This looks very interesting :hi:
It seems that the 'common' tab needs to be set manually to 'Only Long' or 'Only Short' on the HGBnG, certainly on my platform unless I am missing something in the settings tab
- tomele
- Administrator
- Posts: 1208
- Joined: Tue May 17, 2016 3:40 pm
- Location: Germany, Forest of Odes, Defending the Limes
TrendRangeCombo
Hi,
we have those parameters already in line 208 and 209:
You could post two different EAs accordingly.
EDIT: Or even better, make them extern and include the values in the settings files.
Happy pippin, Thomas
we have those parameters already in line 208 and 209:
Code: Select all
bool TradeLong=true;
bool TradeShort=true;EDIT: Or even better, make them extern and include the values in the settings files.
Happy pippin, Thomas
Happy pippin, Thomas 
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
TrendRangeCombo
I will make sure that the various incarnations of RnR have trade direction control before the markets open tonight.

Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
TrendRangeCombo
I have added the usual TradeLong/Short inputs to RnR and RnR.EXP. Vp and 1d respectively.
Go birdie if you need anything else.

Go birdie if you need anything else.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- tomele
- Administrator
- Posts: 1208
- Joined: Tue May 17, 2016 3:40 pm
- Location: Germany, Forest of Odes, Defending the Limes
TrendRangeCombo
Hi Steve,
the swap filters for CAD,AUD,NZD in TradeDirectionBySwap() could override the global trade direction control by re-enabling trade directions. Is this intended?
Surely a very seldom used feature and no relevance for TrendRangeCombo, I just stumbled upon.
Thomas
the swap filters for CAD,AUD,NZD in TradeDirectionBySwap() could override the global trade direction control by re-enabling trade directions. Is this intended?
Surely a very seldom used feature and no relevance for TrendRangeCombo, I just stumbled upon.
Thomas
Happy pippin, Thomas 
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
TrendRangeCombo
Yes, they will. Good thinking. Turn them off.tomele » Sun Jul 10, 2016 11:45 am wrote:Hi Steve,
the swap filters for CAD,AUD,NZD in TradeDirectionBySwap() could override the global trade direction control by re-enabling trade directions. Is this intended?
Surely a very seldom used feature and no relevance for TrendRangeCombo, I just stumbled upon.
Thomas
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.