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
I see some incorrect trades on my charts as well. Something wrong in the coding logic.

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
Thank goodness--This is one time when a bloop is a good thing...
Just when I thought I had begun to understand 5% of CJ's strategy with the EA---everything became clear as mud and I was an even bigger dumbass than I thought....

Just when I thought I had begun to understand 5% of CJ's strategy with the EA---everything became clear as mud and I was an even bigger dumbass than I thought....
A Luta Continua
- Freedom787
- Trader
- Posts: 30
- Joined: Wed Mar 13, 2013 3:46 pm
- Location: United States
Re: Rail Road Tracks
To the best of my understanding, this is that it is supposed to help identify a large reversal area. A significant amount of trades that the EA takes, are not major peaks and valleys, and the trend it was on continues after the railroad. I'm experimenting with a few options to see if we can improve the accuracy. Had no success yet. I did find I was slightly more successful on some trades when the % of the average bar was >100. I found the 50 default option to open too many innacurate trades. I'm testing this on both some lower and higher tf charts.
This picture is from CJ's page. It almost looks like the areas he identifies would correspond with a zig zag indicator, identifying tops and bottoms.However, when you run the zig zag indicator over the EA, they identify very different areas. I'm working on seeing if I can assist the logic in anyway.

This picture is from CJ's page. It almost looks like the areas he identifies would correspond with a zig zag indicator, identifying tops and bottoms.However, when you run the zig zag indicator over the EA, they identify very different areas. I'm working on seeing if I can assist the logic in anyway.
- rosst
- Trader
- Posts: 280
- Joined: Wed Feb 27, 2013 1:11 pm
- Location: Austin, Texas
Re: Rail Road Tracks
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...
- 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
To anyone here hacking the code to try to find the problem and who is unfamiliar with my style.
I coed ea's using my Shell, so all of them have the same features.
Here, I see something that might be causing a problem because the ea is looking for a pinbar on the current candle, so this code:
should be
Same sort of thing with the falling candle code block.
It may not make any difference - I do not know whether Close[] and its partner iClose() hold the Bid, or whether this becomes fixed at the open of the next candle. Either way, probably best to change it.

I coed ea's using my Shell, so all of them have the same features.
- void ReadIndicatorValues() is the function that handles calls to indicators used by the ea. Here, it look for a rrt and sets the variable RrtStatus to one of the constants defined at the top of the file. This function is called from start().
- void LookForTradingOpportunities() uses the information gathered in ReadIndicatorValues() to make the trading decision. This is called at the end of start().
Here, I see something that might be causing a problem because the ea is looking for a pinbar on the current candle, so this code:
Code: Select all
//Rising candle
if (iClose(NULL, TradingTimeFrame, 1) > iOpen(NULL, TradingTimeFrame, 1))
Code: Select all
//Rising candle
if (Bid > iOpen(NULL, TradingTimeFrame, 1))
It may not make any difference - I do not know whether Close[] and its partner iClose() hold the Bid, or whether this becomes fixed at the open of the next candle. Either way, probably best to change it.
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
I am seeing lots of errors in the pinbar-spotting code.
Bit worrying really. I was sober when I coded it.
Bit worrying really. I was sober when I coded it.
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
I always thought you did your best work after a bath and a few drams.....? 
A Luta Continua
- lucklogic
- Trader
- Posts: 85
- Joined: Mon Jan 23, 2012 6:26 pm
- Location: On The Hoe in Plymouth, UK
Re: Rail Road Tracks
SteveHopwood wrote:I am seeing lots of errors in the pinbar-spotting code.
Bit worrying really. I was sober when I coded it.
Please see attachment, have also added criteria for the current bar length, basically have to reference the current bar (not shift 1) - I think that works
You do not have the required permissions to view the files attached to this post.
Last edited by lucklogic on Fri Apr 05, 2013 2:51 pm, edited 1 time 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.
Re: Rail Road Tracks
V 1a of RRTnP in post one, with the fixes to the bloops in the pinbar-spotting function. It did not help that the code was looking at the wrong candle. Hey ho.

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
Hold up on the redownloading for a couple of minutes guys.lucklogic wrote:SteveHopwood wrote:I am seeing lots of errors in the pinbar-spotting code.
Bit worrying really. I was sober when I coded it.
Please see attachment, have also added criteria for the current bar length, basically have to reference the current bar (not shift 1) - I think that works
lucklogic, multiplying by 10 will only work sometimes - it has to be factor, which is correctly calculated in int init().
I love the idea of the average candle length and am about to add it.
Back in a mo.
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.