Gday: a D1 Stochastic OB/OS trading robot

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

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by fxozgirl »

Back on topic...

Steve, the fully auto version of the ea took a buy trade on gbpjpy this morning. Even though I was watching it on my semi auto version, I didn't take the trade as it was 'too line ball' for me.

I've attached a screenshot of the chart and stoch's and you will see that the signal line was just touching the 20 level and in my opinion not a clear indication to trade.

Is it possible to build in a buffer to allow the signal more of a 'clear' cross of the 80/20 levels before a trade is triggered?
I think this will reduce the number of trades taken that don't really have enough momentum to cross clearly out of ob/os and end up in a loss.
gbpjpy_120105.gif
You do not have the required permissions to view the files attached to this post.
User avatar
jjgengis
Trader
Posts: 39
Joined: Thu Nov 24, 2011 8:45 pm
Location: Bologna - Italy

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by jjgengis »

fxozgirl wrote:Back on topic...

Steve, the fully auto version of the ea took a buy trade on gbpjpy this morning. Even though I was watching it on my semi auto version, I didn't take the trade as it was 'too line ball' for me.

I've attached a screenshot of the chart and stoch's and you will see that the signal line was just touching the 20 level and in my opinion not a clear indication to trade.

Is it possible to build in a buffer to allow the signal more of a 'clear' cross of the 80/20 levels before a trade is triggered?
I think this will reduce the number of trades taken that don't really have enough momentum to cross clearly out of ob/os and end up in a loss.
gbpjpy_120105.gif
Hi to all,,
A simple method to resolve this problem could be to put the signal line to 75/25 instead 80/20.

JJ
User avatar
alex_forex
Trader
Posts: 438
Joined: Tue Nov 15, 2011 5:46 pm
Location: F R A N C E

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by alex_forex »

Hi all,

The trades open tonight by GDay :

01.06.2012 00:04 GBPCAD Buy 0.03 1.58016 1.59256 1.56776 -1.0 -3.4 0.0

01.06.2012 00:04 GBPJPY Buy 0.03 119.517 120.442 118.622 2.99 7.7 0.0

01.06.2012 00:04 NZDUSD Sell 0.03 0.78075 0.77125 0.79025 4.08 13.6 0.0

Regards
Alex
User avatar
alex_forex
Trader
Posts: 438
Joined: Tue Nov 15, 2011 5:46 pm
Location: F R A N C E

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by alex_forex »

One trade closed :

01.06.2012 00:04 01.06.2012 16:10 GBPJPY Buy 0.03 118.62200 120.44200 119.51700 118.71700 -80.0 -31.13 16h 6m -0.31%

Regards
Alex
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: Gday: a D1 Stochastic OB/OS trading robot

Post by SteveHopwood »

SWG123 wrote:
Aussie Phil wrote:
fxozgirl wrote:Given there is a distinct Aussie theme in this thread, thought I would just jump in and congratulate Michael Clarke on his triple century at the SCG today :D

Looking forward to the next Ashes tour :lol:
michael_clarke___300_not_out.png
Read about it here:
http://www.theaustralian.com.au/news/sp ... 6237327084
Its a pity we are not playing the poms..........
Hey - no pom-bashing in this forum please!

You can gloat when (if) you get the ashes back ... :lol:
Let the upside-downers carry on bashing us poms. After all, it will be a while before they can beat us at cricket. :lol:

: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
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: Gday: a D1 Stochastic OB/OS trading robot

Post by SteveHopwood »

fxozgirl wrote:Back on topic...

Steve, the fully auto version of the ea took a buy trade on gbpjpy this morning. Even though I was watching it on my semi auto version, I didn't take the trade as it was 'too line ball' for me.

I've attached a screenshot of the chart and stoch's and you will see that the signal line was just touching the 20 level and in my opinion not a clear indication to trade.

Is it possible to build in a buffer to allow the signal more of a 'clear' cross of the 80/20 levels before a trade is triggered?
I think this will reduce the number of trades taken that don't really have enough momentum to cross clearly out of ob/os and end up in a loss.
gbpjpy_120105.gif
It all depends how your mind works, Shelley. jjgengis' suggestion will clearly work as well as keeping the current settings and including an extra 'buffer' input, and cut out an extra input.

You can have whatever you want. If you can keep the position clearer in your head by keeping ob/os at 80/20 and having a buffer, then I can add this in seconds. Just say what you want.

: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.
SteveM
Trader
Posts: 20
Joined: Wed Dec 21, 2011 11:52 am

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by SteveM »

I have had a few trades fail with this error
"2012.01.09 09:04:40 Gday AUDUSD,Daily: AUDUSD Gday OP_SELL order send failed with error(132): market is closed"
I am with AxisTrader and it seems they close for a short time at the start of the day.
Is it possible to put in an option for a delay after the new bar is started or retry the trade after a minute?
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: Gday: a D1 Stochastic OB/OS trading robot

Post by SteveHopwood »

SteveM wrote:I have had a few trades fail with this error
"2012.01.09 09:04:40 Gday AUDUSD,Daily: AUDUSD Gday OP_SELL order send failed with error(132): market is closed"
I am with AxisTrader and it seems they close for a short time at the start of the day.
Is it possible to put in an option for a delay after the new bar is started or retry the trade after a minute?
The code should force the ea to keep trying to send the trade. Anyone spotting a flaw here, please sing out.

As to AxisTrader, stopping trading at the start of a new D1 candle, however briefly, is a blatant move to disarm EA's that enter trades at the start of a new D1 candle.

I suggest you tell them to fuck off and move your funds elsewhere. It is the only language these cretins understand.

Cheers
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: Gday: a D1 Stochastic OB/OS trading robot

Post by fxozgirl »

SteveHopwood wrote:
fxozgirl wrote:Back on topic...

Steve, the fully auto version of the ea took a buy trade on gbpjpy this morning. Even though I was watching it on my semi auto version, I didn't take the trade as it was 'too line ball' for me.

I've attached a screenshot of the chart and stoch's and you will see that the signal line was just touching the 20 level and in my opinion not a clear indication to trade.

Is it possible to build in a buffer to allow the signal more of a 'clear' cross of the 80/20 levels before a trade is triggered?
I think this will reduce the number of trades taken that don't really have enough momentum to cross clearly out of ob/os and end up in a loss.
gbpjpy_120105.gif
It all depends how your mind works, Shelley. jjgengis' suggestion will clearly work as well as keeping the current settings and including an extra 'buffer' input, and cut out an extra input.

You can have whatever you want. If you can keep the position clearer in your head by keeping ob/os at 80/20 and having a buffer, then I can add this in seconds. Just say what you want.

:D
Hi Steve, thanks for your response and willingness to keep working on the ea...

For me personally using the Semi Auto version allows me to visually check the charts and make a final decision on whether to trade or not which is my personal preference brought about by exactly this type of scenario where the signal is virtually line ball.

Notwithstanding, I understand (for a variety of reasons) people may well prefer to use the full auto version and I think on this basis we should at least try changing the entry criteria based on jjgengis' suggestion...only thing is, I'm not sure if 75/25 is necessary, as I think (and through experience) as long as there is some 'air' between the signal line crossing that is enough, so perhaps 78/22 would be sufficient. It's really only to stop the trades where the signal line is sitting at 20.25 or 79.8, but will just allow one more day for the signal to clearly confirm or not.

Hope this makes sense ;)

thanks again
SteveM
Trader
Posts: 20
Joined: Wed Dec 21, 2011 11:52 am

Re: Gday: a D1 Stochastic OB/OS trading robot

Post by SteveM »

SteveHopwood wrote: The code should force the ea to keep trying to send the trade. Anyone spotting a flaw here, please sing out.
I'm new to Empty4 and a long time since I coded so I could very easily be way off

This is in the send single trade function, inside a for(;;) loop

Code: Select all

         Print(Symbol(), " ", WindowExpertName(), " ", stype," order send failed with error(",err,"): ",ErrorDescription(err));
         return(false);
Won't the "return (false)" part exit the function completely rather than go through the loop again?
Locked

Return to “Automated trading systems”