Wapen, an EMA, PSAR, Stoch EA
- 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: Wapen, an EMA, PSAR, Stoch EA
Having just read your pm and dragged a Stoch onto a chart, I think I see what you mean. Just make yourself crystal clear and I will add the function.

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.
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.
-
winsteadglenn
- Trader
- Posts: 101
- Joined: Tue Nov 15, 2011 10:40 pm
Re: Wapen, an EMA, PSAR, Stoch EA
Thanks, Steve. Here is a picture showing entry and stoch-exit.
You do not have the required permissions to view the files attached to this post.
- 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: Wapen, an EMA, PSAR, Stoch EA
V 1a is in post 1.winsteadglenn wrote:Thanks, Steve. Here is a picture showing entry and stoch-exit.
I have coded closing a buy if Stochastic Main is < Stochastic Signal, and vice versa for sells. Turn this off by setting CloseOnStochCross to false.
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.
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.
-
winsteadglenn
- Trader
- Posts: 101
- Joined: Tue Nov 15, 2011 10:40 pm
- 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: Wapen, an EMA, PSAR, Stoch EA
I meant to add to my previous, 'so tell me if this is the wrong way around. It takes seconds to amend the code' but didn't.
So, sing out etc. You know the next bit.

So, sing out etc. You know the next bit.
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.
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.
-
winsteadglenn
- Trader
- Posts: 101
- Joined: Tue Nov 15, 2011 10:40 pm
Re: Wapen, an EMA, PSAR, Stoch EA
Singing. Might need it. I am trying to discover why it is not closing when expected. Usually it is something I am doing wrong.
- 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: Wapen, an EMA, PSAR, Stoch EA
Did you remember to enable CloseOnStochCross?

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.
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.
-
winsteadglenn
- Trader
- Posts: 101
- Joined: Tue Nov 15, 2011 10:40 pm
Re: Wapen, an EMA, PSAR, Stoch EA
Yes. That one I got done O.K. I should let it run another day to let it clear out some cobwebs, before changes, of course.
- 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: Wapen, an EMA, PSAR, Stoch EA
V 1b is in post 1. Your latest pointed me in the right direction.winsteadglenn wrote:Yes. That one I got done O.K. I should let it run another day to let it clear out some cobwebs, before changes, of course.
All my bots are coded from my shell. The shell has evolved over time, as I have encountered/been shown and fixed bloops. Older bots contain the older bloops, so a change I make can be negated by an older bloop. This is the case with this bot; the non-hard trade closure function was only called if HiddenPips > 0. Later ea's have overcome this as I fixed it in the shell.
See if the latest works ok. Go birdy again if not.
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.
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.
-
winsteadglenn
- Trader
- Posts: 101
- Joined: Tue Nov 15, 2011 10:40 pm
Re: Wapen, an EMA, PSAR, Stoch EA
Thanks, Steve. The 1b bot is rapidly opening and closing new trades. I think the opening requires that only the main stoch line be above or below horizontal level X, but closure of a trade requires that the relative position of the main and signal stoch lines be above or below each other. When both the main and signal stoch lines are in a given field, seeing that the main stoch line is consistent with opening a trade, it might trigger a trade and then realize that the relative position of the stoch main and signal lines dictates a closure. Presumably coding an opening trade might require that the relative position of the two stoch lines be in non-closure mode, even if the main stoch line is correctly above or below horizontal level X for opening a trade.. What do you think?