- adopted ll's candle length idea.
- in the process, spotted a few more occasions where the ea was still looking at the previous candle rather than the current one.
Rail Road Tracks
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: Rail Road Tracks
V 1c of RRTnP in post 1:

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.
- Pooler
- Trader
- Posts: 175
- Joined: Sat Dec 31, 2011 5:15 pm
- Location: Port Elizabeth, South Africa. A friendly windy spot at the bottom of Africa
Re: Rail Road Tracks
Steve,
1 c OTB. Shouldn't this be a retrace area therefore a sell trade?
1 c OTB. Shouldn't this be a retrace area therefore a sell trade?
You do not have the required permissions to view the files attached to this post.
A Luta Continua
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: Rail Road Tracks
I have copied this as a comment into the code so I do not lose it.rosst wrote:I am not sure it could be programmed, but another sign of a reversal RRT is a widening spread - of course at HOD/LOD (only seen in hindsight) - even better at the previous day's HOD/LOD which gives a nice M or W over 2 days...
Let's keep the HOD/LOD in the back of our mind for now and see if pure swing trading is successful - it is how I have traded live using 0.01 lots at $0.01 a pip for a couple of days and broken even.
Spotting the widening spread is a neat idea. Spread data is not saved but we can calculate it. I am thinking:
- write an multi-pair script that will calculate the average spread over, say, 200 ticks and save this info in a Global Variable.
- RTTnM can read the GV on startup, then compare the current spread with the average, go into ready-to-trade mode when it spots a spread that is x times the average, then trade when the spread contracts again.
- run the script, say, once a week to keep up average spread updated
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.
Re: Rail Road Tracks
Yup. Bugger.Pooler wrote:Steve,
1 c OTB. Shouldn't this be a retrace area therefore a sell trade?
I will add a comment that will identify the nature of the trade in time for next week, then we can see whether it is the rrt or the pinbar that is causing the wrong trades.
lucklogic, I forgot to say thanks for looking at the code so: thanks for looking at the code.
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.
- rosst
- Trader
- Posts: 280
- Joined: Wed Feb 27, 2013 1:11 pm
- Location: Austin, Texas
Re: Rail Road Tracks
Great idea using GV! that has always been the problem with the spread history indicators - you have to keep them running all the time. if GV could keep the history and tell you when the spread is way out of wack (a technical term) + RRT and or pin bars + within some pips of HOD/LOD (today, yesterday or even the day or 2 before) = should be a 90% winner! - if it is at HOD/LOD for today as well as yesterday it is a good sign you are in what CJ calls Level 3....SteveHopwood wrote:I have copied this as a comment into the code so I do not lose it.rosst wrote:I am not sure it could be programmed, but another sign of a reversal RRT is a widening spread - of course at HOD/LOD (only seen in hindsight) - even better at the previous day's HOD/LOD which gives a nice M or W over 2 days...
Let's keep the HOD/LOD in the back of our mind for now and see if pure swing trading is successful - it is how I have traded live using 0.01 lots at $0.01 a pip for a couple of days and broken even.
Spotting the widening spread is a neat idea. Spread data is not saved but we can calculate it. I am thinking:Any other thoughts about this, guys?
- write an multi-pair script that will calculate the average spread over, say, 200 ticks and save this info in a Global Variable.
- RTTnM can read the GV on startup, then compare the current spread with the average, go into ready-to-trade mode when it spots a spread that is x times the average, then trade when the spread contracts again.
- run the script, say, once a week to keep up average spread updated
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: Rail Road Tracks
Slow down feller. All of this is irrelevant until the bloody thing trades in the right direction.rosst wrote:Great idea using GV! that has always been the problem with the spread history indicators - you have to keep them running all the time. if GV could keep the history and tell you when the spread is way out of wack (a technical term) + RRT and or pin bars + within some pips of HOD/LOD (today, yesterday or even the day or 2 before) = should be a 90% winner! - if it is at HOD/LOD for today as well as yesterday it is a good sign you are in what CJ calls Level 3....SteveHopwood wrote:I have copied this as a comment into the code so I do not lose it.rosst wrote:I am not sure it could be programmed, but another sign of a reversal RRT is a widening spread - of course at HOD/LOD (only seen in hindsight) - even better at the previous day's HOD/LOD which gives a nice M or W over 2 days...
Let's keep the HOD/LOD in the back of our mind for now and see if pure swing trading is successful - it is how I have traded live using 0.01 lots at $0.01 a pip for a couple of days and broken even.
Spotting the widening spread is a neat idea. Spread data is not saved but we can calculate it. I am thinking:Any other thoughts about this, guys?
- write an multi-pair script that will calculate the average spread over, say, 200 ticks and save this info in a Global Variable.
- RTTnM can read the GV on startup, then compare the current spread with the average, go into ready-to-trade mode when it spots a spread that is x times the average, then trade when the spread contracts again.
- run the script, say, once a week to keep up average spread updated
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.
- rosst
- Trader
- Posts: 280
- Joined: Wed Feb 27, 2013 1:11 pm
- Location: Austin, Texas
Re: Rail Road Tracks
I'll drink to that! Have a good WE 
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: Rail Road Tracks
V 1d is in post 1.
I spent a couple of hours this afternoon with the code and Crapergy Tester in visual mode. After seeing a bloop in the pinbar-spotting function, the most obvious point was: the ea was spotting and trading rrt's as coded, but that they were not necessarily at a reasonable high or low. I have added code to combat this.
MinCandlesInSequence: The trigger candle must have the highest high (sell) or lowest low (buy) of this number of candles. This is an attempt to ensure trading a swing rather than a poor entry during a period of consolidation.
I am not sure the code is entirely correct yet - it looks to me as though a few opportunities for an sar were missed. We shall see.
Next step is to consider more dynamic sl/tp functions to facilitate risk-based lot sizing. I am not a fan of these, but I know many of you are.
Here are my initial thoughts:
I spent a couple of hours this afternoon with the code and Crapergy Tester in visual mode. After seeing a bloop in the pinbar-spotting function, the most obvious point was: the ea was spotting and trading rrt's as coded, but that they were not necessarily at a reasonable high or low. I have added code to combat this.
MinCandlesInSequence: The trigger candle must have the highest high (sell) or lowest low (buy) of this number of candles. This is an attempt to ensure trading a swing rather than a poor entry during a period of consolidation.
I am not sure the code is entirely correct yet - it looks to me as though a few opportunities for an sar were missed. We shall see.
Next step is to consider more dynamic sl/tp functions to facilitate risk-based lot sizing. I am not a fan of these, but I know many of you are.
Here are my initial thoughts:
- sl placed x pips above/below the trigger candle hilo. This allows risk-based trading.
- tp based on the previous swing (Fractals) and/or ADR.
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.
Re: Rail Road Tracks
* After deleting a slew of pointless posts about backtesting results *
Guys, please stop posting back test results. Note that I say 'please' only out of politeness. I do not actually mean 'please'. It is an instruction. Only the naive think that Empty4 Craptergy Tester backtesting results show anything useful.
Backtesting helps me spot bloops in my code. That apart, forget it.
Future posts about backtesting will also be deleted. Members making an issue of this will have their membership cancelled.
Capiche?

Guys, please stop posting back test results. Note that I say 'please' only out of politeness. I do not actually mean 'please'. It is an instruction. Only the naive think that Empty4 Craptergy Tester backtesting results show anything useful.
Backtesting helps me spot bloops in my code. That apart, forget it.
Future posts about backtesting will also be deleted. Members making an issue of this will have their membership cancelled.
Capiche?
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.
- Sojourner
- Trader
- Posts: 105
- Joined: Fri Apr 27, 2012 7:36 pm
Re: Rail Road Tracks
Steve, can you put an option in the EA setting to discombooberate the rogue trade setting thing? I get all crinkly knuckled and nervous when I edit anyones mq4 code.