Slopey Peaky Bob

Post Reply
User avatar
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

Post by SteveHopwood »

MurphyMan » Thu May 23, 2019 4:29 pm wrote:I got this alert today from my SPB, Ver 2n:
2019.05.23 14:20:14.186 Slopey Peaky Bob Latest Version USDSGDi,H1: Alert: USDJPYi SPB buy trades Recovery target reached. All USDJPYi SPB buy trades should have closed.
The two losing trades closed, along with 4 pendings, but there was nothing in profit to balance, so break-even didn't happen. My recovery settings are:

Use Recovery - True
The number of trades that must be opened for recovery - 6
The number of losers to close out at the break - 2
Recovery Profit Pips - 10

Have I got a setting wrong here?
I need to think about this Sam. It might help if others chip in here.

Here is what SPB does when looking for a recovery, and taking buys as an example:
  • adds up the total of all market trade open prices.
  • divides that figure by the number of open trades to calculate a price at which all trades should close at breakeven.
  • adds RecoveryProfitPips to that figure.
  • closes the position when the market hits the breakeven price.
Thingy is, this takes no notice of swap and/or commission costs. Maybe we need to add a stipulation that the cash UPL is positive before closing? Not sure.

Any ideas, folks?

:xm: :rocket:
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.
User avatar
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

Post by SteveHopwood »

Sam's post made me rethink.

My obsession with a price point meaning we have reached breakeven is clearly a nonsense. It is a classic case of someone working largely alone who gets an idea and sticks with it, never thinking about it again until something goes wrong.

There is only one thingy that is important here - cash. Price points and pips are irrelevant. All we need here is a function that: spots that x trades are losers and triggers Recovery; closes the position when it reaches a cash breakeven (plus a profit lock in to ease the pain of waiting). Simple really.

Unless you are me. :arrrg: :arrrg: :arrrg:

Hey ho.

I will rewrite the function tomorrow. I haven't looked, but the same probably applies to Desky.

Thanks Sam.

:xm: :rocket:
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.
User avatar
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

Slopey Peaky Bob

Post by MurphyMan »

If this is any help, in my case neither of the two open trades were in profit. It's like SPB thought something was in recovery, but it really wasn't.

I'm pretty sure this has happened a couple of times in the past, when some trades inexplicably closed in the red, but I didn't really understand that it was related to recovery.
User avatar
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

Post by SteveHopwood »

V 2o is in post 1.

Recovery closure now operates on a cash basis. SPB will not close a position unless the cash upl is a breakeven or better. The RecoveryProfitCash input has morphed into RecoveryProfitCash.

I am going to look at Desky now to see if I need to repeat the exercise.

:xm: :rocket:
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.
Z2TT
Posts: 7
Joined: Tue Jun 04, 2019 12:43 pm

Slopey Peaky Bob

Post by Z2TT »

Hi Everyone.

I've recently joined the forum and have begun running SPB. I'm running it on a Demo account and it had 40 pending orders ready on various pairs. None have been executed yet. It appears a few orders did attempt to get executed however Empty4 displayed a few errors.

The message I got is :

EURJPY Slopey Peaky Bob 10000 pips order send failed with error (0): no error

It appears it is retrying to send the order but failing constantly and printing the same errors on the log, as errors come up on the Alert log every few seconds.


- Using the SPB 10000 pips version
- Bully Pepperstone Empty4 Version 4.00 Build 1170 (20 Dec 2018)
- Bully Pepperstone Demo Account with $10,000

Thanks
User avatar
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

Slopey Peaky Bob

Post by MurphyMan »

First, the good news. I just had a basket close and all the pendings remained open. Thanks Steve, worked like a charm. :hi:

Now, the bad. No matter what I do, the Basket Cash Take Profit = USD $5.00, when it should be in the range of $250 - 100. I have tried all sorts of permutations, to no avail.The strange thing, it seems to come and go.

To cut to the quick, I tried changing all the TP inputs to False, and it still returns $5.00, and I can't figure out where that number is coming from. Any ideas anyone? I'll attach my set file and my experimenting set file.

Now, here is the really crazy thing. If I set Dynamic Basket Take Profit To True, and $5,000 and save that set, the SPB EA screen flashes Basket Cash Take Profit = $USD 250 for a fraction of a second, then goes to Basket Cash Take Profit = USD $5.00.

Maybe it's just the screen display and not the actual working number. I am totally bumfluxed. :arrrg:

Edit: I had a large basket going, but it was in drawdown for the last week and a half. The Basket Cash Take Profit jumped around, then seemed to settle at usd $5.00. I didn't look at my screen today at all until after the basket closed, so I can't say what Basket Cash Take Profit was doing at that point. The basked closed with $41 profit, which is a good way from $5.00.
Capture.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
pivotter
Trader
Posts: 38
Joined: Sun May 01, 2016 12:02 am
Location: The Hague, The Netherlands

Slopey Peaky Bob

Post by pivotter »

In your setfile
BasketFridayCashTargets="0,30,12,20,14,10,16,5,18,1"
has to be
BasketFridayCashTargets=" " to disable it

Give it a try

Pivotter
You think the rumbling comes from our "magic" black-box ?
User avatar
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

Slopey Peaky Bob

Post by MurphyMan »

pivotter » Sat Jun 08, 2019 7:27 am wrote:In your setfile
BasketFridayCashTargets="0,30,12,20,14,10,16,5,18,1"
has to be
BasketFridayCashTargets=" " to disable it

Give it a try

Pivotter
It looks like it did it! When I made your suggested change, "Basket cash take profit =" Bounced right up to USD 250. I thought using 24 for all the other "done for the week inputs" would do it.

Fantastic! Thank you!

:party: :clap: :party: :yahoo: :yahoo:
User avatar
Vokin
Trader
Posts: 51
Joined: Tue Dec 06, 2011 4:31 pm

Slopey Peaky Bob

Post by Vokin »

Z2TT » Fri Jun 07, 2019 5:16 am wrote:Hi Everyone.

I've recently joined the forum and have begun running SPB. I'm running it on a Demo account and it had 40 pending orders ready on various pairs. None have been executed yet. It appears a few orders did attempt to get executed however Empty4 displayed a few errors.

The message I got is :

EURJPY Slopey Peaky Bob 10000 pips order send failed with error (0): no error

It appears it is retrying to send the order but failing constantly and printing the same errors on the log, as errors come up on the Alert log every few seconds.


- Using the SPB 10000 pips version
- Bully Bully Pepperstone Empty4 Version 4.00 Build 1170 (20 Dec 2018)
- Bully Bully Pepperstone Demo Account with $10,000

Thanks
I have same problem with SPB 10000 (v.1o) at VPS, now err code changed to 148 (amount of open and pending orders has reached the limit) - I thought that Global Prime has no limit??
So maybe is some problem at broker side? Till today everything was fine.
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Slopey Peaky Bob

Post by Gertje »

Vokin » Mon Jun 10, 2019 9:21 am wrote:
I have same problem with SPB 10000 (v.1o) at VPS, now err code changed to 148 (amount of open and pending orders has reached the limit) - I thought that Global Prime has no limit??
So maybe is some problem at broker side? Till today everything was fine.
GP installed a 250 order maximum limit on demo
Post Reply

Return to “Super Slope EA's”