Slopey Peaky Bob

Post Reply
User avatar
SilverTrader
Trader
Posts: 67
Joined: Sun Jan 15, 2012 4:10 pm
Location: New Zealand

Slopey Peaky Bob

Post by SilverTrader »

A spot of good luck is always most welcome, well done Steve.
It has indeed been a good trading time, for counter trend strategies, my own manual trading has paid off way better than it normally does in these times so at this stage anyway, I share in your joy.

:clap: :!!: :clap: :!!: :clap:
You do not have the required permissions to view the files attached to this post.
Kind Regards
Wayne

Never look down on a person, unless you plan to help him up!
User avatar
SteveHopwood
Owner
Posts: 9754
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 »

Today we celebrate.

I started Thomas's adaptation of SPB for the challenge, on 12th Jan 2019 - using FXT-SPB-3. The challenge is long over and we have added many bells and whistles to the bot, but I left it running to see what happened.

The initial deposit was $10,000. Last night the equity reached double that figure. There were trades open so I closed them because I wanted to see the $20,000, so the balance is now $20,269.
XAUUSDH1.png
You probably need to load the pic into a new tab if you want to see the details - I do.

So that is a doubling of the account in just over 15 months, using 0.01 lot sizing. I have recklessly doubled the lot size to 0.02 in the hope of doubling again in the next seven and a half months. :lol:

This proves that SPB is a successful trading EA so long as the trader has: SPB is not quite what I had hoped for - an EA that noobs could leave on a $1,000 deposit starter account. Candle Power and Moving Day are the most likely candidates for that and I have them both trading live a small account that I split off from my main trading account. We shall see. For now:

:party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!:
You do not have the required permissions to view the files attached to this post.
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. [email protected] 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.
trader689
Trader
Posts: 644
Joined: Thu Nov 17, 2011 12:53 am

Slopey Peaky Bob

Post by trader689 »

£10,000 @ 0.01 lots, all trades closed. One word - incredible! :party: :good: :clap: :!!:

trader
User avatar
SilverTrader
Trader
Posts: 67
Joined: Sun Jan 15, 2012 4:10 pm
Location: New Zealand

Slopey Peaky Bob

Post by SilverTrader »

Well that sir, is a damned fine effort, well played. :clap: :clap: :clap:
Kind Regards
Wayne

Never look down on a person, unless you plan to help him up!
bodavid
Trader
Posts: 64
Joined: Sun Jan 10, 2016 1:58 pm

Slopey Peaky Bob

Post by bodavid »

Congratulations! :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap:

Steve, you can and must be really very proud of your endless creative work!

Slopey Peaky Bob is probably one of the best Eas around and I believe many of your other older EAs are also working good for traders who have learned to tame them.

Cheers,
Ben

:party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party:
User avatar
SteveHopwood
Owner
Posts: 9754
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 »

bodavid » Thu Apr 30, 2020 10:48 am wrote:Congratulations! :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap:

Steve, you can and must be really very proud of your endless creative work!

Slopey Peaky Bob is probably one of the best Eas around and I believe many of your other older EAs are also working good for traders who have learned to tame them.

Cheers,
Ben
Thanks. We live in a world where testing, testing, testing is the name of the game at the moment. Our lives are starting to depend on it.

Re trading, I often wonder these days how many more of my EA's would have seen more of the light of day had Eaymon's VPS been available back then. I had my desktop. I did not know then, how to minimise the impact on the cpu of running platforms. I could run three platforms. An EA had a week, tops, to prove itself.

Hey ho. Bugger all I can do about lack of experience in the past. Here these days, we have fantastic minds and fabulous software and bucket loads of hard-won experience. No wonder we are doing a bit better these days than once we did.

: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. [email protected] 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.
eRIKb81
Trader
Posts: 22
Joined: Wed Jul 05, 2017 6:03 am

Slopey Peaky Bob

Post by eRIKb81 »

Hi, i've been thinking about a reinvestment strategy after I read about this in the manual of Zorro trader. They sometimes use a square root reinvestment strategy. And i think it could be a nice improvement for systems that will run for years.

It says
Why the square root? Here's the background in short. In short term trading with high leverage, the required capital is mainly determined by the expected maximum drawdown. The maximum drawdown of any trade system increases over time. A system tested over 10 years has worse drawdowns than the same system tested over only 5 years. When modeling drawdown depth mathematically with a diffusion model, the maximum drawdown is proportional to the square root of the trading time. But the maximum drawdown is also proportional to the invested amount: When investing twice the volume you'll get twice the drawdown. Thus, if you would reinvest a fixed percentage of your balance, as suggested in most trading books, the maximum drawdown would grow by both effects proportionally to time to the power of 1.5. It will thus grow faster than your account balance. This means that at some point, a drawdown will inevitably exceed the balance, causing a margin call. There are several methods to overcome this problem, and one of them is to reinvest only an amount proportional to the square root of the capital growth. Thus when your capital doubles, increase the trade volume only by a factor of about 1.4 (the square root of 2), i.e. 40%.
Source: https://manual.zorro-project.com/tutorial_kelly.htm.

It can be implemented in the calculateLotAsAmountPerCashDollops() function in the 'SPH core library.mph' by adding a 'extern double InitialCash = 1000;' and 'extern bool SqrtReinvest = true;' in the inputs of your favorite SPB EA and adding two lines of code after the 'if (UseEquity)' statement:

Code: Select all

   if (UseEquity)
      DoshDollop = AccountInfoDouble(ACCOUNT_EQUITY); 
   
   // Reinvest with the square root of the profit, to reduce long term drawdowns.
   // The EA can use 'extern double InitialCash = 1000;' and 'extern bool SqrtReinvest = true;' to enable it
   if (SqrtReinvest && (DoshDollop > InitialCash))
      DoshDollop = sqrt(DoshDollop/InitialCash)*InitialCash;
Haven't tested it longer than a day yet, the code seems to work.

What you'll see is (assuming a 1k initial account):
100k cash, 1k initial: 10000 available for positions
20k cash, 1k initial: 4472 available for positions
10k cash, 1k initial: 3162 available for positions
2k cash, 1k initial: 1414 available for positions
1k cash, 1k initial: 1000 available for positions, no change from normal
500 cash, 1k initial: 500 available for positions, as we only want to reinvest profits

It will severely limit growth, but will also reduce drawdown headaches. If it is a bit to much, one could just code it with a simple reinvestment factor like 0.7. The code for that would be (DoshDollop-InitialCash)*0.7+InitialCash. a 10k account would give 7300 for positions then.
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 »

I haven't read the manual, only the post above.
It sounds from a mathematical point of view like complete BS.
30% DD is 30% DD using the same dollup, no matter how high the balance.

Of course the value of the DD will differ between accounts with different balances.
eRIKb81
Trader
Posts: 22
Joined: Wed Jul 05, 2017 6:03 am

Slopey Peaky Bob

Post by eRIKb81 »

It's about the chance of drawdown in time. And therefore reducing risk with time. So 30% DD will be 21% after doubling an account. But you are still trading bigger than you would with a fixed size. It creates a balance between 100% reinvesting like one does with '0.01 per dollop' and fixed size trading.
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 »

Yesterday I asked for the location of the 'xxx-bars back-indi' in Bob's part of the forum.

viewtopic.php?f=38&p=170601#p170575

I'm glad bodavid pointed me in the right direction. I got the indi, and put it on the chart.

My reason for this is the following;
On some pairs both the PL and PH are a long way back, even not visible on the screen.
It _might_ happen [if it might happen, it WILL happen] that on a pair the PH switches to PL without the price action touching the PL at all. The previuos PL simply 'expired' by being further away than the 1682 [?] bars that we use for calculating the PH/ PL.
When [not if] this happens, open orders will be closed if CSS is pointing the right way.
Just to not be surprised by this, I want the x-bars back on the chart to see which pairs are 'in danger'.

See below for a screenprint of GBPUSD that will flip PH to PL in an hour.
The red dotted line is the 1682-bars back indi that touches the yellow PH-line.
GBPUSDH1.png
I started examining this because last week a EURCAD sell basket closed without logical cause as far as I was concerned. I then noticed that the PL made a jump in time and level because the previous PL was too long ago.
We learn something everyday :mrgreen:
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Super Slope EA's”