Secret Bob's Basket

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
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.

Secret Bob's Basket

Post by SteveHopwood »

renexxxx » Sun Oct 26, 2014 12:19 pm wrote:Not sure if I am following this ... Shouldn't it be something like:

Code: Select all

BasketCashUpl = basketProfit( MagicNumber );
with:

Code: Select all

//+------------------------------------------------------------------+
//| basketProfit()                                                   |
//|    -- returns total profit (or loss) for basket                  |
//+------------------------------------------------------------------+
double basketProfit( int magic = -1 ) {

   double myProfit = 0.0;
   int allOrders = OrdersTotal();
   
   for (int i = 0; i < allOrders; i++) {
      if (OrderSelect(i, SELECT_BY_POS)) {
         if ( ( (magic == -1) || ( OrderMagicNumber() == magic ) ) && ( (OrderType() == OP_BUY) || (OrderType() == OP_SELL) ) ) {
            myProfit += OrderProfit() + OrderCommission() + OrderSwap();
         }
      }
   } // for
   return(myProfit);
}
?
I don't think so. Users might run multiple SBB's on the same platform if they have a death by confusion and chaos wish, but each instance is only dealing with its own trades and so should be able to cope.


Not that I care.
No more about this please, folks. You already have a highly complex ea; finding ever more complex ways to use it will merely result in it breaking.

Upon your own head be it if you insist on running multiple instances in basket mode.

:xm:
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
Pedigree
Trader
Posts: 226
Joined: Thu Apr 11, 2013 12:09 pm
Location: Buckinghamshire, UK

Secret Bob's Basket

Post by Pedigree »

Steve and Bob,

A big congratulations for this EA! It is the first I have seen that trades both the trend and its counter, and leaves the user the option to trade which when. It looks to me like a landmark in EA design that promises great results. Well done!
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

Secret Bob's Basket

Post by Radar »

Hey Steve,
SteveHopwood » Sun Oct 26, 2014 11:23 pm wrote: No more about this please, folks. You already have a highly complex ea; finding ever more complex ways to use it will merely result in it breaking.

Upon your own head be it if you insist on running multiple instances in basket mode.

:xm:
Fair enough :)

You know I'm a crazy git, though, right? ;) If I want to run multiple instances, I'll just have to headbutt my way through this damn mental block that got in my way a couple of months ago ;) You've given us yet another great EA, so now I just have to get out of my own way and - as Jean-Luc Picard would say - "Make it sew" (or is that "Make it sow"? I was never sure if he was talking about a knitting machine, or a harvester).

Take care,

&

Have fun!

Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
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.

Secret Bob's Basket

Post by SteveHopwood »

Radar » Sun Oct 26, 2014 3:21 pm wrote:'ll just have to headbutt my way through this damn mental block that got in my way a couple of months ago ;)
Actually, mental block or not it is nowhere near as easy to convert an ea into a multi-pair trader as people imagine - and you were trying to do it with code that is not your own. I find other peoples' code really hard to read. I have slaved over a hot computer for hours and hours over this one. :arrrg: :arrrg: :arrrg:

:xm:
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.

Secret Bob's Basket

Post by SteveHopwood »

Check your AlwaysOn input guys. Having it set to 'true' when developing code is a real bugger so I turn it off and forgot to turn it on again when releasing the earlier versions. You need it on if trading SBB as a basket trader.

:xm:
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
patmontes
Trader
Posts: 367
Joined: Wed Apr 23, 2014 10:42 pm

Secret Bob's Basket

Post by patmontes »

All set up now on H4.. waiting for the first trade
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.

Secret Bob's Basket

Post by SteveHopwood »

I see there is a problem with the average spread calculation.

Given that SBB is not supposed to send a trade when the spread is MultiplierToDetectStopHunt times the detected average spread but just has done on my H1 demo, this suggests a problem with that filter as well. :arrrg:

Hey ho. Will look at this in the morning.

:xm:
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.

Secret Bob's Basket

Post by SteveHopwood »

First bloop has emerged.

Line 2351:
if (TimeToStartTrading > 0)

needs changing to

if (PostTradeAttemptWaitSeconds > 0)

This emerged on a new demo that I had left at jerrybuild 745 just to see what happens. It has definitely broken Matt's OR code and the bloop allowed SBB to instantly fire off 5 trades. Fix is in V1a in post 1 for the codephobics.

I fixed the spread thingy by reattaching the bot. Do the same yourselves if your average spread display is reading zero.

:xm:
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
WorldsEnd
Trader
Posts: 97
Joined: Fri Aug 29, 2014 7:36 pm

Secret Bob's Basket

Post by WorldsEnd »

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
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.

Secret Bob's Basket

Post by SteveHopwood »

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
Open of a new candle.

:xm:
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.
Post Reply

Return to “Thingy Bob EA's”