Thank youSteveHopwood » 27 Oct 2014, 12:55 wrote:Open of a new candle.WorldsEnd » Mon Oct 27, 2014 10:16 am wrote:Steve,
would you be so kind to let me know when SBB updates it's ATR calculation for the different pairs? Is it updated just once when the EA is loaded or once a day or constantly like every couple of minutes/hours?
Thanks,
Sebastian
Secret Bob's Basket
- WorldsEnd
- Trader
- Posts: 97
- Joined: Fri Aug 29, 2014 7:36 pm
Secret Bob's Basket
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Secret Bob's Basket
V 1b is in post 1. I think the spread problem is sorted out. I had forgotten to resize one of the arrays.
Coders, add
ArrayResize(PairSpreadTotal, NoOfPairs);
to the list of resized arrays in void ExtractPairs().
Then copy this over the top of void UpdateSpread(int cc)

Coders, add
ArrayResize(PairSpreadTotal, NoOfPairs);
to the list of resized arrays in void ExtractPairs().
Then copy this over the top of void UpdateSpread(int cc)
Code: Select all
void UpdateSpread(int cc)
{
//Keep a rolling tally of the average spread for each pair
if (CloseEnough(PairOldBid[cc], bid))
return;//No new quote, so nothing to do
PairOldBid[cc] = bid;
PairSpreadTotal[cc] = PairSpreadTotal[cc] + spread;
PairCountedTicks[cc]++;
if (PairCountedTicks[cc] >= 200)
{
PairAverageSpread[cc] = NormalizeDouble(PairSpreadTotal[cc] / PairCountedTicks[cc], 1);
PairCountedTicks[cc] = 0;
//Save the average for restarts.
SpreadGvName=TradePair[cc] + " average spread";
GlobalVariableSet(SpreadGvName, PairAverageSpread[cc]);
PairSpreadTotal[cc] = 0;
}//if (PairCountedTicks[cc] >= 200)
}//End void UpdateSpread(int cc)
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.
- Gertje
- Trader
- Posts: 1936
- Joined: Mon Dec 12, 2011 1:17 pm
- Location: Middle of the Netherlands
Secret Bob's Basket
Anybody got some results already?
I got right after market opening 9 trades, but due to a "TP-pips" of '0' the TP was set at the openingprice and the trades closed within minutes for just the loss of the commission.
After sorting this, I got 5 more trades till now, which are floating positive.
I decided to only trade with the trend on the H4, and leave trades open untill the basket-TP of $20,- [2%] is reached.
I got right after market opening 9 trades, but due to a "TP-pips" of '0' the TP was set at the openingprice and the trades closed within minutes for just the loss of the commission.
After sorting this, I got 5 more trades till now, which are floating positive.
I decided to only trade with the trend on the H4, and leave trades open untill the basket-TP of $20,- [2%] is reached.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Secret Bob's Basket
That highlights another bloop in the code. I will upload the fix when a few more have emerged. In the meantime, make sure you send a tp with the trade - if you don't want one then send a far-distant one that can never be hit.Gertje » Mon Oct 27, 2014 11:39 am wrote:
I got right after market opening 9 trades, but due to a "TP-pips" of '0' the TP was set at the openingprice and the trades closed within minutes for just the loss of the commission.
Add a temporary fix yourselves by going to line 1100 and inserting this:
if (CloseEnough(take, 0)) return;
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.
Secret Bob's Basket
The permanent fix is: go to line 1166 and copy this over the top of the three line snippet you find there:

Code: Select all
//Insert a missing take profit
if (CloseEnough(OrderTakeProfit(), 0) )
if (TakeProfitPips > 0)
InsertTakeProfit(cc, OrderTicket(), OrderType());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.
- woodlands
- Trader
- Posts: 226
- Joined: Sun Mar 23, 2014 6:16 pm
Secret Bob's Basket
Dear Gertje,Gertje » Mon Oct 27, 2014 11:39 am wrote:Anybody got some results already?
I got right after market opening 9 trades, but due to a "TP-pips" of '0' the TP was set at the openingprice and the trades closed within minutes for just the loss of the commission.
After sorting this, I got 5 more trades till now, which are floating positive.
I decided to only trade with the trend on the H4, and leave trades open untill the basket-TP of $20,- [2%] is reached.
I am up 1.2% since opening at Sydney, so far only closing at $3 per pair target nothing closed on CT yet.
I am using 4hr TF and 23 pairs. Each time closing I am reloading the bot with same settings and then taking trades. I notice that each time there are 10 identical pairs that meet the ATR requirement to trade. I have no average showing yet (edit: have now thanks Steve). I have switched off the 'trade only twice' and the Zelko.
Very smooth function and successfully following the trend signals......This is on Demo, can't get it to run yet on micro live but this for sure is a broker crappy Empty4 issue.
Big thanks, yet again, to Steve and Bob and everyone else who is involved in the development.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Secret Bob's Basket
V 1c is in post 1. Fixed a few bugs and introduced a new feature. Copied from the inputs section of the updated post 1:

- ShowIndividualCharts: SBB can open individual charts with your own template loaded, so you can check that he is behaving as expected. Our thanks to Arts and his Charts Into Alphabetical Order script that got me started.
- load a chart - time frame does not matter as SBB will make the necessary adjustment.
- load the SecretBob indicator so you see the arrows, and anything else you want - 240 moving average etc.
- save the chart template.
- input the template's name into the TemplateName input. I have attached SBB to get you started.
- SBB updates the charts once an hour.
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.
-
Radar
- Trader
- Posts: 437
- Joined: Fri Mar 23, 2012 5:39 pm
- Location: Round the bend ;)
Secret Bob's Basket
SteveHopwood » Tue Oct 28, 2014 12:21 am wrote:V 1c is in post 1. Fixed a few bugs and introduced a new feature. Copied from the inputs section of the updated post 1:
I am just showing off now.![]()
LOL! I almost choked on my 'burger!
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
StackManV2
-
everell
- Trader
- Posts: 16
- Joined: Sat Oct 11, 2014 11:07 am
- Location: Italy
Secret Bob's Basket
I can not understand why opened a new position: I do not see any arrow on the chart
You do not have the required permissions to view the files attached to this post.
-
erikskenne
- Trader
- Posts: 62
- Joined: Fri Mar 30, 2012 6:27 pm
Secret Bob's Basket
Working fine here at my end, did you change template and make yout own with bobs indi? 