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

Shelley's multi-pair basket trader
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=583
Page 74 of 87
Author:  fxozgirl [ Mon Jun 04, 2012 9:34 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

SteveHopwood wrote:
fxozgirl wrote:
mackaozy wrote:
Sorry for this but..

:D :D Why would you begin at 8am GMT today??

1. It's bank holiday today and tomorrow here in the UK (So there is NO London open today) everyone is at home..
2. The London open is at GMT +1 as it's BST here.

No wonder... :D :D

I think this is a valid point...we're looking to trigger & capture the initial upsurge in trading at the open of the session, so when there is a public holiday clearly there is no open, so we shouldn't be trading this session.

Too bad I forgot about the PH until after I had turned the EA loose :oops:
It does no harm to see what happens if we run the bot at times when the markets should be quiet.

:D
Yes you are right and it just adds to our knowledge of how the EA/system works under different trading conditions.
Author:  SteveHopwood [ Mon Jun 04, 2012 9:38 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

Yep. Change-back done. The 5 of you who downloaded before reading this need to re-download. You will know if you have the wrong version because the Woh will be wrong.

:D
Author:  SteveHopwood [ Mon Jun 04, 2012 9:40 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

Hehe. The whole point of the update was the historical max dd thingy and the damn thing isn't working. Ignore the update for now.

:D
Author:  SteveHopwood [ Mon Jun 04, 2012 9:45 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

It's working now.

:D
Author:  SteveHopwood [ Mon Jun 04, 2012 10:09 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

I lnly just noticed how much interest there is in Simple Shelley, so I have added the fix and the mas pips upl thingy to her. V 1a in post 1.

:D
Author:  garyfritz [ Mon Jun 04, 2012 10:19 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

And 1a still has the mystery bug that forces all WOH flags to "all Buy" or "all Sell." :(
Author:  SteveHopwood [ Mon Jun 04, 2012 10:41 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

garyfritz wrote:And 1a still has the mystery bug that forces all WOH flags to "all Buy" or "all Sell." :(
Yep. Just loaded it onto a demo for the first time. Same thing here. UCad and UChf should be buys, but Woh has them as sells.

:D
Author:  garyfritz [ Mon Jun 04, 2012 10:46 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

It's weird. For anybody else who feels inspired to figure this out, here's the code from ReadTable():

Code: Select all

   for (cc = 0; cc < NoOfPairs; cc++)
   {
      symbol = TradePair[cc][0];
      Comment(Gap, "Reading the indicators: " + symbol);
      //Trading time frame S;ope
      double Slope = GetSlope(symbol, PERIOD_D1, 0);
      TradePair[cc][1] = nottradable;
      if (Slope >= 0.8) TradePair[cc][1] = buyhold;
      if (Slope <= -0.8) TradePair[cc][1] = sellhold;

      //Woh market direction since week open
      double wo = iMA(symbol,PERIOD_W1,2,1,MODE_LWMA,PRICE_OPEN,0);
      double ma = iMA(symbol,0,1,0,MODE_SMA,PRICE_MEDIAN,0);
      TradePair[cc][2] = none;
      if (ma > wo) TradePair[cc][2] = buy;
      if (ma < wo) TradePair[cc][2] = sell;
DebugPrint("ReadTable, cc = ",cc,TradePair[cc][1],TradePair[cc][2],ma,wo);

   }//for (cc = 0 ; cc < ArraySize(TradePair); cc++)
 
for (cc = 0; cc < NoOfPairs; cc++)
    DebugPrint("cc = ",cc,TradePair[cc][1],TradePair[cc][2]);
The first DebugPrint prints the correct values. The second DebugPrint (immediately after the first loop sets the values) prints the WRONG values. Sometimes all Buy, sometimes all Sell, but all the same.

I can't see what's wrong. Does anybody??
Author:  Zool [ Mon Jun 04, 2012 10:47 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

Hi!

This will be my first post here, but I'm lurking the forums long time :) I've manually trading10.2 since the introduction, and I can say it's a really good system. I've seen this basket trading idea the end of last week, so I only started to test this since the afternoon. I'm in the process of reading through the forum I'm on the 40th page so there are some more comments to read, so maybe the thing I have in my mind have been answered/work in progress. English is not my mother language so I'll try to be as clear as I can :)

So I see that the DD is a problem when the EA open the trades during a retracement. I've been made attempts to trade correlations earlier and made some research on it. There was a forum at FF about this strategy, where Squalou posted an indicator named "Basket Profit 2 pairs". Squalou made this because no backtest could be done in Empty4 on multiple pairs. So with this indi you can set the time with a vertical line when you would take the trade and it shows the profit as a line diagram. I'm not a coder myself (I know a little about it), but I think it could be modified to use with this basket strategy too.

Here's my idea about the usage: when the EA would open the trades at the set time, it doesn't really open them, but instead it starting to monitor the price of the pairs in the basket and checks the overall performance. If the profit going into the negative then it waits till it's starting to rise again, and when it reaches zero (or there is a sign based on some mathematical formula I don't know, but shows that the profit is going up instead of down) then it sends the actual trade orders. Does it makes sense?
Author:  Bunker [ Mon Jun 04, 2012 10:48 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

My OOTB setup seems fine..
U/CH and U/CA all Buy
All times are UTC Page 74 of 87