Nice thought but no. It is only supposed to send buy trades when Peaky indicates long and here it was indicating short, which is correct.Gertje » Wed Jun 27, 2018 11:23 am wrote: From the look of your chart, I believe SPB is doing it correctly.
When placing the pendings, the market is still 20? or 30? pips away from the first pending, and probably was JUST in the lower half of the 6th when getting the D1 SS signal.
Slopey Peaky Bob
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Slopey Peaky Bob
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.
-
arkhonic
- Trader
- Posts: 12
- Joined: Tue Sep 08, 2015 9:39 am
Slopey Peaky Bob
Is it possible that the look back is not taking all of the history when determining the Peaky divisions? its the only thing I can think of that would account for 3 different outcomes using the same version unless there is a major bug somewhere, but given you've checked this seems unlikely.
-
Lifesys
- Trader
- Posts: 126
- Joined: Wed Apr 25, 2012 2:05 am
- Location: Echuca Victoria. Australia
Slopey Peaky Bob
Re BasketTrailingStop closing trades prematurely (for me)
Believe found a solution. Inroutine, we group Cash & Pips processes together.
egand similar for Pips components. After doing this, BasketTrailingStopCash triggered & worked fine.
Realised Steve had addedlines & he is right, this would have obviated the //Pips target & //Cash target sections, but I had found them closing trades prematurely.
regards Paul B.
Believe found a solution. In
Code: Select all
bool CanEntirePositionClose()eg
Code: Select all
if(TreatAllPairsAsBasket && UseBasketTrailingStopCash)
{
.....
} //if(TreatAllPairsAsBasket && UseBasketTrailingStopCash)
else
{
//Cash target
if (!CloseEnough(BasketTargetCash,0) )
if (TotalCashUpl >= BasketTargetCash)
{
....
}//if (TotalCashUpl >= BasketTargetCash)
}Realised Steve had added
Code: Select all
//return(false); This would prevent the rest of the function being tested. regards Paul B.
-
toc17
- Trader
- Posts: 34
- Joined: Mon Mar 30, 2015 7:55 am
- Location: Madrid, Spain
Slopey Peaky Bob
Yeah, maybe this is the problem.arkhonic » Wed Jun 27, 2018 11:53 am wrote:Is it possible that the look back is not taking all of the history when determining the Peaky divisions? its the only thing I can think of that would account for 3 different outcomes using the same version unless there is a major bug somewhere, but given you've checked this seems unlikely.
I have this EA with NoOfBarsOnChart = 800 and has made 3 buy trades since June 26th as Steve says.
Maybe the historical data wasn't loaded well after last weekend?
-
Dragonian
Slopey Peaky Bob
Hello Steve,SteveHopwood » Wed Jun 27, 2018 11:20 am wrote:This one has me puzzled. AUDNZD:
SPB is running on VPS. The pic is taken from my desktop where I code and monitor my live trades. The Peak HiLo is correctly showing the trading direction as short.......................................Any of you guys got any ideas?
Not going to be able to help with any coding ideas but just to give you an idea of what others are seeing I put Peaky (OOTB) on an AUDNZD chart and this is what it shows. There are 4 instances of SPB running on this GP demo account; 2xD1SS-H1PK and 2xD1SS-H4PK.
Hope this in some way helps.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Slopey Peaky Bob
Nice one. This sent me looking in the right place.toc17 » Wed Jun 27, 2018 12:24 pm wrote:
Yeah, maybe this is the problem.
I have this EA with NoOfBarsOnChart = 800 and has made 3 buy trades since June 26th as Steve says.
Maybe the historical data wasn't loaded well after last weekend?
I had mine and Gareth's max bars on the platform set to 1000. PJ's is a recent platform with the full complement of over 50000 bars.
Problem solved. Not the code. Just Steve being an idiot. <Ignores chorus of, "As usual.">
Phew.
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.
- MurphyMan
- Trader
- Posts: 345
- Joined: Tue Nov 15, 2011 2:35 pm
- Location: Southern Illinois, USA
Slopey Peaky Bob
I am writing this mid-Thursday. I am getting WE HAVE REACHED OUR WEEKLY PROFIT TARGET. I HAVE STOPPED TRADING UNTIL NEXT WEEK.
I had inadvertently set UseTradingDoneForTheWeek to Thursday but my WeeklyCashTarget was set well above my actual profits. After I discovered it, I changed UseTradingDoneForTheWeek, UseDynamicWeekelyTargetCash, and UseDynamicWeekelyTargetPips all to FALSE, yet I am still getting the STOPPED TRADING message. I tried shutting SPB down then restarting, to no avail. Is there a way to resume trading, or must I truly wait until next week?
Thanks.
I had inadvertently set UseTradingDoneForTheWeek to Thursday but my WeeklyCashTarget was set well above my actual profits. After I discovered it, I changed UseTradingDoneForTheWeek, UseDynamicWeekelyTargetCash, and UseDynamicWeekelyTargetPips all to FALSE, yet I am still getting the STOPPED TRADING message. I tried shutting SPB down then restarting, to no avail. Is there a way to resume trading, or must I truly wait until next week?
Thanks.
- tomele
- Administrator
- Posts: 1208
- Joined: Tue May 17, 2016 3:40 pm
- Location: Germany, Forest of Odes, Defending the Limes
Slopey Peaky Bob
Hi.
Delete global variable "SPB_Done for the week GV".
Delete global variable "SPB_Done for the week GV".
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
- MurphyMan
- Trader
- Posts: 345
- Joined: Tue Nov 15, 2011 2:35 pm
- Location: Southern Illinois, USA
Slopey Peaky Bob
Thanks!
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Slopey Peaky Bob
A quiet week this week with just four baskets closing - two on my main trading account and one each on the other two. The total profit was $240, so the accumulated total over all three accounts since going live is $1704.
As a side note, I have left the original demo accounts running on Eaymons VPS. The $500 starter account has more than tripled to $1645.
It is a similar story with Gareth's account. I had run it down to c. $226 and now it is worth just three dollars short of $700 and flat for the weekend.
Given my ambition to create an auto trader that total noobs can run safely on a tiny starter account, this is good news.

As a side note, I have left the original demo accounts running on Eaymons VPS. The $500 starter account has more than tripled to $1645.
It is a similar story with Gareth's account. I had run it down to c. $226 and now it is worth just three dollars short of $700 and flat for the weekend.
Given my ambition to create an auto trader that total noobs can run safely on a tiny starter account, this is good news.
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.