Bob and Shelley Again

Locked
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: Bob and Shelley Again

Post by fxozgirl »

Here's my current open trades:
basa_currentopentrades_130806.png
You do not have the required permissions to view the files attached to this post.
User avatar
lucklogic
Trader
Posts: 85
Joined: Mon Jan 23, 2012 6:26 pm
Location: On The Hoe in Plymouth, UK

Re: Bob and Shelley Again

Post by lucklogic »

fxozgirl wrote:And here's a correct Re-entry trade taken just now

EURAUD
euraud.gh4_correctreentry_130806.png
and AUDUSD
audusd.gh4_correctreentrytrade.png


So the reentry trades should be, mainly driven off the Sto 5, irrespective of when the candles intersected with the moving averages EG
Re-entry:
1. Candle (shift 2) must have closed HIGH (i.e. rising)
2. Candle (shift 1) must close LOW (i.e. falling)
3. Sto 5 indicator must be above 80 (shift 2)
4. BE 30 +2, SL 100, JS 50

It's your system, but FWIW interaction with the last say nine candles only after an intersection may be an improvement :ugeek:
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: Bob and Shelley Again

Post by fxozgirl »

lucklogic wrote:
So the reentry trades should be, mainly driven off the Sto 5, irrespective of when the candles intersected with the moving averages EG
Re-entry:
1. Candle (shift 2) must have closed HIGH (i.e. rising)
2. Candle (shift 1) must close LOW (i.e. falling)
3. Sto 5 indicator must be above 80 (shift 2)
4. BE 30 +2, SL 100, JS 50

It's your system, but FWIW interaction with the last say nine candles only after an intersection may be an improvement :ugeek:
With the re-entry trades I am trying to get back in on a pullback of an established trend, so price still needs to be on the 'right' side of the moving average & in accordance with the Sto 5 before a trade is taken.

Not exactly sure what you mean by your last sentence, but feel free to share more & include some examples & results.
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.

Re: Bob and Shelley Again

Post by SteveHopwood »

fxozgirl wrote:Here's another one...looks like BASA is taking the re-entry once price crosses above the MA (not necessarily a close)
We need an extra filter to ensure that Close[1] was on the correct side of the fast MA.

Added to V 1f in post 1.
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
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: Bob and Shelley Again

Post by fxozgirl »

SteveHopwood wrote:
fxozgirl wrote:Here's another one...looks like BASA is taking the re-entry once price crosses above the MA (not necessarily a close)
We need an extra filter to ensure that Close[1] was on the correct side of the fast MA.

Added to V 1f in post 1.
Awesome, thanks Steve...lightning quick as usual :D
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: Bob and Shelley Again

Post by fxozgirl »

lucklogic wrote:
It's your system, but FWIW interaction with the last say nine candles only after an intersection may be an improvement :ugeek:

Guys, just wanted to go a little further in response to lucklogic's post...

Before you throw out a one liner 'improvement' can you please take the time to actually trade the EA first and provide some testing results for your improvement.

I'm happy to discuss improvements & modifications to the strategy, as long as you can back up your suggestions with some testing and comparison to the original strategy. Also, given the EA was first coded 10 days ago, I think a comment like lucklogic's is a little premature at this stage (not that I really understand what he means). But who know's...he might be right, but provide some testing data so we can see.

It's easy to throw out random suggestions for improvement, it's a lot harder to get them to work!


Steve...I know this is your thread, so sorry if I'm stepping on toes ;)
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.

Re: Bob and Shelley Again

Post by SteveHopwood »

fxozgirl wrote: Steve...I know this is your thread, so sorry if I'm stepping on toes ;)
Go ahead Shelley. You are less likely to be rude than I am. :lol:

I have a cracking update coming soon - just crap-testing it to make sure the code is tight.

:D
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.
MrLong

Re: Bob and Shelley Again

Post by MrLong »

SteveHopwood wrote:
fxozgirl wrote: Steve...I know this is your thread, so sorry if I'm stepping on toes ;)
Go ahead Shelley. You are less likely to be rude than I am. :lol:

I have a cracking update coming soon - just crap-testing it to make sure the code is tight.

:D

This EA's strategy is similar to my Direct Trader EA, I have found the results are far better making sure the Ma's are higher/ lower than the last bar before entry.

Code: Select all

//+------------------------------------------------------------------+
//| expert Detect MA Stacking            |
//+------------------------------------------------------------------+
bool detectMaStack(string symbol, int timeframe, int period, int period1, int mashift, int method, int applied, int type, int shift)
{
    if (type == OP_BUY)
    {
        if (iMA(symbol, timeframe, period, mashift, method, applied, shift) > iMA(symbol, timeframe, period1, mashift, method, applied, shift) && 
        iMA(symbol, timeframe, period, mashift, method, applied, shift) > iMA(symbol, timeframe, period, mashift, method, applied, 1) &&
         iMA(symbol, timeframe, period1, mashift, method, applied, shift) > iMA(symbol, timeframe, period1, mashift, method, applied, 1))
            return(true);
    }

    if (type == OP_SELL)
    {
        if (iMA(symbol, timeframe, period, mashift, method, applied, shift) < iMA(symbol, timeframe, period1, mashift, method, applied, shift) && 
        iMA(symbol, timeframe, period, mashift, method, applied, shift) < iMA(symbol, timeframe, period, mashift, method, applied, 1) &&
        iMA(symbol, timeframe, period1, mashift, method, applied, shift) < iMA(symbol, timeframe, period1, mashift, method, applied, 1))
            return(true);
    }
}
And call like this:

Code: Select all

if (useMaStack && (!detectMaStack(Symbol(), PERIOD_H4, 60, 240, 0, MODE_LWMA, PRICE_OPEN, OP_BUY, 0)))
            continue;
Hope this helps

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

Re: Bob and Shelley Again

Post by SteveHopwood »

MrLong wrote:
SteveHopwood wrote:
fxozgirl wrote: Steve...I know this is your thread, so sorry if I'm stepping on toes ;)
Go ahead Shelley. You are less likely to be rude than I am. :lol:

I have a cracking update coming soon - just crap-testing it to make sure the code is tight.

:D

This EA's strategy is similar to my Direct Trader EA, I have found the results are far better making sure the Ma's are higher/ lower than the last bar before entry.

Code: Select all

//+------------------------------------------------------------------+
//| expert Detect MA Stacking            |
//+------------------------------------------------------------------+
bool detectMaStack(string symbol, int timeframe, int period, int period1, int mashift, int method, int applied, int type, int shift)
{
    if (type == OP_BUY)
    {
        if (iMA(symbol, timeframe, period, mashift, method, applied, shift) > iMA(symbol, timeframe, period1, mashift, method, applied, shift) && 
        iMA(symbol, timeframe, period, mashift, method, applied, shift) > iMA(symbol, timeframe, period, mashift, method, applied, 1) &&
         iMA(symbol, timeframe, period1, mashift, method, applied, shift) > iMA(symbol, timeframe, period1, mashift, method, applied, 1))
            return(true);
    }

    if (type == OP_SELL)
    {
        if (iMA(symbol, timeframe, period, mashift, method, applied, shift) < iMA(symbol, timeframe, period1, mashift, method, applied, shift) && 
        iMA(symbol, timeframe, period, mashift, method, applied, shift) < iMA(symbol, timeframe, period, mashift, method, applied, 1) &&
        iMA(symbol, timeframe, period1, mashift, method, applied, shift) < iMA(symbol, timeframe, period1, mashift, method, applied, 1))
            return(true);
    }
}
And call like this:

Code: Select all

if (useMaStack && (!detectMaStack(Symbol(), PERIOD_H4, 60, 240, 0, MODE_LWMA, PRICE_OPEN, OP_BUY, 0)))
            continue;
Hope this helps

Andy
Nice one Andy. Thanks. I will add it as an option.

:D
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
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: Bob and Shelley Again

Post by fxozgirl »

SteveHopwood wrote:
fxozgirl wrote:Here's another one...looks like BASA is taking the re-entry once price crosses above the MA (not necessarily a close)
We need an extra filter to ensure that Close[1] was on the correct side of the fast MA.

Added to V 1f in post 1.

Steve v1f produced 2 trades in the one candle overnight for me.
EURNZD - both re-entry trades, 1st trade taken BUY 1.68751 at 12:00 closed for BE+2, 2nd trade BUY 1.68738 taken at 14:56 still open

1st trade is correct, but not the 2nd trade
eurnzd.gh4_reentry trades_130806.png
You do not have the required permissions to view the files attached to this post.
Locked

Return to “Automated trading systems”