stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Wapen, an EMA, PSAR, Stoch EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=409
Page 4 of 5
Author:  SteveHopwood [ Fri Aug 24, 2012 10:48 am ]
Post subject:  Re: Wapen, an EMA, PSAR, Stoch EA

winsteadglenn wrote: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?
V 1c is in post 1. I have added a filter that aborts the trade if CloseOnStochCross is enabled and the main is the wrong side of the signal. See if this helps.

:D
Author:  winsteadglenn [ Fri Aug 24, 2012 12:39 pm ]
Post subject:  Re: Wapen, an EMA, PSAR, Stoch EA

:D :mrgreen: :mrgreen: :D :D :mrgreen:
Author:  SteveHopwood [ Fri Aug 24, 2012 4:34 pm ]
Post subject:  Re: Wapen, an EMA, PSAR, Stoch EA

Version 1d is in post 1. As some of you guys are still playing with this one, I have added Slope.

:D
Author:  winsteadglenn [ Fri Aug 24, 2012 5:11 pm ]
Post subject:  Re: Wapen, an EMA, PSAR, Stoch EA

Thanks, Steve. 1c drained my demo 10K to $56 in four hours. Still opening and closing trades.
Thanks for slope.
Author:  SteveHopwood [ Fri Aug 24, 2012 5:20 pm ]
Post subject:  Re: Wapen, an EMA, PSAR, Stoch EA

winsteadglenn wrote:Thanks, Steve. 1c drained my demo 10K to $56 in four hours. Still opening and closing trades.
Thanks for slope.
The only thing to do is close down the CloseOnStochCross thingy. This is allowing LUC to throw a party and I only have limited patience with this here. With Slope involved, it should be unnecessary anyhow.

:D
Author:  winsteadglenn [ Fri Aug 24, 2012 5:23 pm ]
Post subject:  Re: Wapen, an EMA, PSAR, Stoch EA

Roger that. Thanks. Best Regards, Glenn :D :mrgreen:
Author:  SteveHopwood [ Sat Aug 25, 2012 9:37 am ]
Post subject:  Re: Wapen, an EMA, PSAR, Stoch EA

V 1e is in post 1.

I decided to have a look and try to work out what was causing the instant closing of trades. Usual thingy - copy-paste bloop that was allowing short trades when main was on the wrong side of signal.

Running through a visual backtest, I noticed that the main line snakes around a lot. Signal is often triggering a trade just as main is about to cross back over signal. Have a play with the revised version and see if you can come up with a plan for dealing with this.

:D
Author:  winsteadglenn [ Sat Aug 25, 2012 4:41 pm ]
Post subject:  Re: Wapen, an EMA, PSAR, Stoch EA

:D :D :mrgreen: :mrgreen: :D :D
You are very tenacious, my friend.
Will do.
Wapen suggested a 50% level, rather than the 70/30. Looks better to me, also.
Author:  winsteadglenn [ Mon Aug 27, 2012 1:52 am ]
Post subject:  Re: Wapen, an EMA, PSAR, Stoch EA

:D :mrgreen: :D :mrgreen: It is playing the open and then close game again, so I turned off the close on stoch cross feature. Seemingly, it is making decisions based on the the signal stoch line, rather than the main stoch line. Perhaps that is not correct. Slope should work its magic here also. Thanks, Steve. G. :mrgreen: :D :mrgreen: :D
Author:  SteveHopwood [ Mon Aug 27, 2012 7:35 am ]
Post subject:  Re: Wapen, an EMA, PSAR, Stoch EA

winsteadglenn wrote::D :mrgreen: :D :mrgreen: It is playing the open and then close game again, so I turned off the close on stoch cross feature. Seemingly, it is making decisions based on the the signal stoch line, rather than the main stoch line. Perhaps that is not correct. Slope should work its magic here also. Thanks, Steve. G. :mrgreen: :D :mrgreen: :D
From Wapen's pm:
"The original system work as follow:
For a Buy opportunity the following conditions must be in place. Price must be above the EMA, pSAR must be below the price and Stochastic signal line must be above 70. The example above are at the EMA cross, but that’s not always the case as sum-times the pSAR and stochastic do not meet the criteria and it will wait for all to meet the criteria."

:D
All times are UTC Page 4 of 5