stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Slopey Peaky Bob
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5389
Page 13 of 84
Author:  Peepaws [ Thu May 24, 2018 8:09 pm ]
Post subject:  Slopey Peaky Bob

Here are my 3 live accounts running SPB. All are OOTB, except for changing basket TP to 100, 200 and 500

I have only just restarted these accounts so not too much action yet. The 100 pip basket has already closed 2 baskets and is the clear winner right now.

It may be best to keep all 3 running as I believe they will all have their time to shine, depending on market movement at the time.

https://www.myfxbook.com/members/Peepaw ... et/2536877

https://www.myfxbook.com/members/Peepaw ... et/2536878

https://www.myfxbook.com/members/Peepaw ... et/2536881


Thank you Steve and all other contributors!
Author:  tomele [ Thu May 24, 2018 9:07 pm ]
Post subject:  Slopey Peaky Bob

Peepaws » 24 May 2018, 21:09 wrote:Thank you Steve and all other contributors!
Why dont give something back and contribute to our common database?

Cheers
Thomas
Author:  Peepaws [ Thu May 24, 2018 9:19 pm ]
Post subject:  Slopey Peaky Bob

tomele » Thu May 24, 2018 9:07 pm wrote:
Peepaws » 24 May 2018, 21:09 wrote:Thank you Steve and all other contributors!
Why dont give something back and contribute to our common database?

Cheers
Thomas
I very much want to do that. If I can find the time to do so I will.
Author:  SteveHopwood [ Thu May 24, 2018 9:31 pm ]
Post subject:  Slopey Peaky Bob

Peepaws » Thu May 24, 2018 9:19 pm wrote:
I very much want to do that. If I can find the time to do so I will.
That is a pitiful response that shows you have no idea what is going on here. Your next one had better be an improvement or I will ban you from SHF.

Do not even have bad dreams about asking anywhere what I mean. Your SHF membership hangs by a thread that you can immediately cut with your own dimwitted response.

Work it out for yourself. Not able to do so? Follow the SHF mantra: you have nothing useful to say, then say nothing.

Do feel free to say something when you have nothing useful to say. Your SHF ban will follow within minutes.
Author:  Zennor [ Thu May 24, 2018 11:46 pm ]
Post subject:  Slopey Peaky Bob

Guys if you are using any of the EA's freely available on this forum I cannot recommend highly enough the benefits of submitting your data for analysis. I did it and it takes literally a minute or two to do.

Thomas and Rene have done a truly excellent job of making this an extremely simple operation. Place the EA into your EA folder, the DLL file in your library, get a code from Thomas and away you go. Dead simple. Took me less than two minutes to set up. The more of us who submit data the better the quality for the brains behind the EA's to analyze and improve the EA's for our benefits. Not to mention you get the benefit of seeing all the data as well which may give you an idea to tweak a setting or two.

These guys spent untold hours to write these EA's for our benefit, least we can do is give them a few minutes of our time.
Author:  SteveHopwood [ Thu May 24, 2018 11:51 pm ]
Post subject:  Slopey Peaky Bob

Zennor » Thu May 24, 2018 11:46 pm wrote:Guys if you are using any of the EA's freely available on this forum I cannot recommend highly enough the benefits of submitting your data for analysis. I did it and it takes literally a minute or two to do.

Thomas and Rene have done a truly excellent job of making this an extremely simple operation. Place the EA into your EA folder, the DLL file in your library, get a code from Thomas and away you go. Dead simple. Took me less than two minutes to set up. The more of us who submit data the better the quality for the brains behind the EA's to analyze and improve the EA's for our benefits. Not to mention you get the benefit of seeing all the data as well which may give you an idea to tweak a setting or two.

These guys spent untold hours to write these EA's for our benefit, least we can do is give them a few minutes of our time.
:clap: :clap: :clap: :clap: :clap: :clap:
Author:  Dragonian [ Fri May 25, 2018 3:32 am ]
Post subject:  Slopey Peaky Bob

Zennor » Thu May 24, 2018 11:46 pm wrote:Guys if you are using any of the EA's freely available on this forum I cannot recommend highly enough the benefits of submitting your data for analysis. I did it and it takes literally a minute or two to do...............................................................
These guys spent untold hours to write these EA's for our benefit, least we can do is give them a few minutes of our time.
:good:
Author:  c1borg [ Fri May 25, 2018 6:25 am ]
Post subject:  Slopey Peaky Bob

Zennor » Thu May 24, 2018 11:46 pm wrote:Guys if you are using any of the EA's freely available on this forum I cannot recommend highly enough the benefits of submitting your data for analysis. I did it and it takes literally a minute or two to do.

Thomas and Rene have done a truly excellent job of making this an extremely simple operation. Place the EA into your EA folder, the DLL file in your library, get a code from Thomas and away you go. Dead simple. Took me less than two minutes to set up. The more of us who submit data the better the quality for the brains behind the EA's to analyze and improve the EA's for our benefits. Not to mention you get the benefit of seeing all the data as well which may give you an idea to tweak a setting or two.

These guys spent untold hours to write these EA's for our benefit, least we can do is give them a few minutes of our time.
Well said :hi:
Author:  SteveHopwood [ Sun May 27, 2018 11:55 am ]
Post subject:  Slopey Peaky Bob

V 1l is in post 1. This fixes the lots per dollop of cash calculation that always increased the lot size prematurely. I have been meaning to do this for years, so this fix can be applied to any of the EA's coded using my shells.

It is a simple DIY:
Go to the top of the file and do a search for "SizeOfDollop". I declared this originally as a double and it needs changing to an int i.e.
extern int SizeOfDollop=1000;

Repeating the search will take you to the "void CalculateLotAsAmountPerCashDollops()" function. Replace it with this:

Code: Select all

void CalculateLotAsAmountPerCashDollops()
{

   double lotstep = MarketInfo(Symbol(), MODE_LOTSTEP);
   int decimal = 0;
   if (CloseEnough(lotstep, 0.1) )
      decimal = 1;
   if (CloseEnough(lotstep, 0.01) )
      decimal = 2;
      
   double maxlot = MarketInfo(Symbol(), MODE_MAXLOT);
   double minlot = MarketInfo(Symbol(), MODE_MINLOT);
   double DoshDollop = AccountInfoDouble(ACCOUNT_BALANCE); 
   
   if (UseEquity)
      DoshDollop = AccountInfoDouble(ACCOUNT_EQUITY); 

//For testing:
//DoshDollop = 2796;
   
   //Calculate the no of dollops in DoshDollop
   int NoOfDollops = (int) DoshDollop / SizeOfDollop;

   
   //Initial lot size
   Lot = NormalizeDouble(NoOfDollops * LotsPerDollopOfCash, decimal);
     
   //Min/max size check
   if (Lot > maxlot)
      Lot = maxlot;
      
   if (Lot < minlot)
      Lot = minlot;      

//For testing
//Alert(DoubleToStr(Lot, decimal));


}//void CalculateLotAsAmountPerCashDollops()
:xm: :rocket:
Author:  SteveHopwood [ Sun May 27, 2018 9:55 pm ]
Post subject:  Slopey Peaky Bob

I just realised that I have failed to acknowledge a contribution by Brenden last week. He sent me this pm:
odrisb wrote:Hi Steve

Noticed this issue when I set DeletePendingTradesOnOppositeColour = true;

The EA was deleting the pending orders but the ReadIndicatorValues() function was adding them back in again in an endless loop.

I made the following changes in the ReadIndicatorValues() which I believe may help:

Line 2170
if ((BuyStopsCount > 0 || MarketBuysCount > 0) && (!DeletePendingTradesOnOppositeColour || HtfSsStatus[PairIndex] != red))

Line 2210
if ((SellStopsCount > 0 || MarketSellsCount > 0) && (!DeletePendingTradesOnOppositeColour || HtfSsStatus[PairIndex] != blue))

I have not tested extensively but it seemed to stop the looping :good:

Cheers
Brenden
The latest version includes this fix. DIYers need to add it.

Thanks Brenden. :clap: :clap: :clap: :clap: :clap:

:xm: :rocket:
All times are UTC Page 13 of 84