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 53 of 87
Author:  Haggadah [ Thu May 31, 2012 7:13 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

SteveHopwood wrote:Cowboy IBFX just leaped into life and I can see the code needs moving around. Don't bother downloading the latest for now.

:D
One suggestion, a filter on the lower tf (h1 or m15), say if the reading on D1 is sell, but on lower time frame 2 or 3 bars are moving upward, no trades. We can do this by finding the diffrence of the current bar close against the previous bar, then set a constant number in pips say 3 as your reference point so that if it difference goes beyond 3, no trades yet until the trend goes back in line with the D1.

Haggadah
Author:  SteveHopwood [ Thu May 31, 2012 7:36 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

Baluda wrote:Steve,

You could consider to change the GetTmaTrue() function in Shelley to this:

Code: Select all

void GetTmaTrue(string symbol, int shift)
{
   double IB_TMA = iMA( symbol, 0, xi_Period, 0, MODE_LWMA, PRICE_CLOSE, shift );
   double ld_Range = iATR( symbol, 0, xi_ATR.Period, shift + 10 );

   TmaUpper = IB_TMA + (ld_Range * xd_ATR.Mult);
   TmaLower = IB_TMA - (ld_Range * xd_ATR.Mult);
}//void GetTmaTrue(string symbol, int shift)
to get rid of the 'iCustom' call. It brings the TMA True calculation into Shelley.

Side note: I would like to get rid of those ugly, seldom to never changed variables like 'xi_Period' and 'xd_ATR.Mult'. I would like them to be internal instead of 'extern'.

Paul
Done Paul. Many thanks again.

V 1r is in post 1; it means we can ditch the 10.2 Tma True indi.

:D
Author:  SteveHopwood [ Thu May 31, 2012 7:37 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

Haggadah wrote:
SteveHopwood wrote:Cowboy IBFX just leaped into life and I can see the code needs moving around. Don't bother downloading the latest for now.

:D
One suggestion, a filter on the lower tf (h1 or m15), say if the reading on D1 is sell, but on lower time frame 2 or 3 bars are moving upward, no trades. We can do this by finding the diffrence of the current bar close against the previous bar, then set a constant number in pips say 3 as your reference point so that if it difference goes beyond 3, no trades yet until the trend goes back in line with the D1.

Haggadah
Simple to code, but there are two ltf filters already. Let's see how they do; we can always add this one.

:D
Author:  forexripper [ Thu May 31, 2012 7:41 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

Guys do you see reversal of trend for now or retracement time as we call it. I will be careful shorting.
What do you guys think?
Author:  Haggadah [ Thu May 31, 2012 8:13 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

SteveHopwood wrote:
Haggadah wrote:
SteveHopwood wrote:Cowboy IBFX just leaped into life and I can see the code needs moving around. Don't bother downloading the latest for now.

:D
One suggestion, a filter on the lower tf (h1 or m15), say if the reading on D1 is sell, but on lower time frame 2 or 3 bars are moving upward, no trades. We can do this by finding the diffrence of the current bar close against the previous bar, then set a constant number in pips say 3 as your reference point so that if it difference goes beyond 3, no trades yet until the trend goes back in line with the D1.

Haggadah
Simple to code, but there are two ltf filters already. Let's see how they do; we can always add this one.

:D
Thanks Steve

Haggadah
Author:  spotdespot [ Thu May 31, 2012 8:19 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

forexripper wrote:Guys do you see reversal of trend for now or retracement time as we call it. I will be careful shorting.
What do you guys think?
It's a retracement until it becomes a reversal..... :lol: The answer is who knows to be honest. I would be wary of shorting JPY pairs at the moment because of potential BOJ intervention AND some of the JPY pairs are at long term (like 10 year+) demand lines.

I struggle to see how the Euro can gain significant support though so it may be some pairs are reversing some not. We will see.

I am holding back on the 10.2 EA and Shelley until I know is the short answer I guess. If it is a retracement I lose nothing as I can switch back on when that becomes clear & if it is a longer term reversal then I save lots of pips.
Author:  spotdespot [ Thu May 31, 2012 8:21 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

"Chaos theory coder."

Steve - does this mean we are supposed to trust you and you are no longer an idiot???

:lol: :o :lol: :shock: :lol:

EDIT: Had to chuckle when I realised those new here wouldn't have a clue what I was on about. :lol:
Author:  SWG123 [ Thu May 31, 2012 8:41 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

SteveHopwood wrote:Should I remove the ShelleyGary stuff? :D
Please don't yet. I'm firmly with Gary on this one.
Author:  alex_forex [ Thu May 31, 2012 8:48 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

All 3 sessions are ready to go with Shelley v1R ..... results tomorrow :D
Author:  SteveHopwood [ Thu May 31, 2012 8:51 pm ]
Post subject:  Re: Shelley's multi-pair basket trader

spotdespot wrote:"Chaos theory coder."

Steve - does this mean we are supposed to trust you and you are no longer an idiot???

:lol: :o :lol: :shock: :lol:
Nope. Nothing ever changes.
EDIT: Had to chuckle when I realised those new here wouldn't have a clue what I was on about. :lol:
They will now. :lol:
All times are UTC Page 53 of 87