Wapen, an EMA, PSAR, Stoch EA

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: Wapen, an EMA, PSAR, Stoch EA

Post by SteveHopwood »

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.

: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.
winsteadglenn
Trader
Posts: 101
Joined: Tue Nov 15, 2011 10:40 pm

Re: Wapen, an EMA, PSAR, Stoch EA

Post by winsteadglenn »

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.
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: Wapen, an EMA, PSAR, Stoch EA

Post by SteveHopwood »

winsteadglenn wrote:Thanks, Steve. Here is a picture showing entry and stoch-exit.
V 1a is in post 1.

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.

: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.
winsteadglenn
Trader
Posts: 101
Joined: Tue Nov 15, 2011 10:40 pm

Re: Wapen, an EMA, PSAR, Stoch EA

Post by winsteadglenn »

:mrgreen: :D :mrgreen: :D :mrgreen: :D
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: Wapen, an EMA, PSAR, Stoch EA

Post by SteveHopwood »

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.

: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.
winsteadglenn
Trader
Posts: 101
Joined: Tue Nov 15, 2011 10:40 pm

Re: Wapen, an EMA, PSAR, Stoch EA

Post by winsteadglenn »

Singing. Might need it. I am trying to discover why it is not closing when expected. Usually it is something I am doing wrong.
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: Wapen, an EMA, PSAR, Stoch EA

Post by SteveHopwood »

Did you remember to enable CloseOnStochCross?

: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.
winsteadglenn
Trader
Posts: 101
Joined: Tue Nov 15, 2011 10:40 pm

Re: Wapen, an EMA, PSAR, Stoch EA

Post by winsteadglenn »

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.
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: Wapen, an EMA, PSAR, Stoch EA

Post by SteveHopwood »

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.
V 1b is in post 1. Your latest pointed me in the right direction.

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.

: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.
winsteadglenn
Trader
Posts: 101
Joined: Tue Nov 15, 2011 10:40 pm

Re: Wapen, an EMA, PSAR, Stoch EA

Post by winsteadglenn »

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?
Locked

Return to “Automated trading systems”