Steve's 10.6 EA manual trading aids

This is where Bob posts his own threads
Post Reply
kwchau
Trader
Posts: 305
Joined: Tue Jan 03, 2012 3:37 pm

Re: Steve's 10.6 EA manual trading aids

Post by kwchau »

SteveHopwood wrote:
kwchau wrote:This is something I like to avoid. In the enclosed chart, a long trade was triggered at the open of the aqua vertical line, almost immediately, price dropped like a rock because of the whipsaw of the NFP release. If we gave it 15 minutes, the trade would not be triggered. I have noted a few occasions of this situation although the fluctuations were not that profound.
I am stopping this now. This looks suspiciously like me chasing the latest whim you want me to code. That whim could be diametrically opposed to the whim you expressed 5 minutes ago. I do not play that game.

I have offered up some pretty useful stuff up here already. Use it or not as you please. I am adding nothing further unless it is to advance the cause of the ea's I have placed in the zip file.

:D
Hi Steve, I agree totally with you that the EA's you've offered are very useful in helping us to trade Bob's system. I think the request I make above is just some improvement to the Flexible Stoch ea's that might be incorporated into your other Stoch Ea's as well.

Of course, I respect your view that this request does not worth the trouble and decide not to consider it.

Thank you for your kind contribution in helping us !

kwchau
95026862

Re: Steve's 10.6 EA manual trading aids

Post by 95026862 »

these ea's are pure genius. i've incorporated them into my live trades on thursday
art
Trader
Posts: 588
Joined: Fri Mar 02, 2012 3:51 pm

Re: Steve's 10.6 EA manual trading aids

Post by art »

I think big news announcements ie nfp the obvious thing to do is just turn off the ea
95026862

Re: Steve's 10.6 EA manual trading aids

Post by 95026862 »

art wrote:I think big news announcements ie nfp the obvious thing to do is just turn off the ea
not trading the news. ever
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: Steve's 10.6 EA manual trading aids

Post by SteveHopwood »

art wrote:I think big news announcements ie nfp the obvious thing to do is just turn off the ea
FWIW, I ignore news announcements apart from NFP. It is rare these days for any of them to cause the kind of spike that used to occur, and that has led to this kind of folk-memory that trading during a news release is a bad idea. I will be one of the first to know when this changes again. :lol:

What I do not want to risk is one of the ea's sending a trade in the period before the markets slow to a crawl in the few hours before nfp, the having it caught by a spike in the wrong direction.

: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: Steve's 10.6 EA manual trading aids

Post by SteveHopwood »

kwchau wrote:Hi Steve, I agree totally with you that the EA's you've offered are very useful in helping us to trade Bob's system. I think the request I make above is just some improvement to the Flexible Stoch ea's that might be incorporated into your other Stoch Ea's as well.

Of course, I respect your view that this request does not worth the trouble and decide not to consider it.

Thank you for your kind contribution in helping us !

kwchau
Good news. I had a productive bath this morning. :lol:

I realised that I had missed the point of what you wanted and that the code amendment is quick and easy to make. The latest versions in post 1 will now compare the close of candle shift 1 with that of candle shift 2 if EveryTickMode is false. If true, it compares <now> with the close of candle shift 1.

Hope this better meets your needs.

: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: Steve's 10.6 EA manual trading aids

Post by SteveHopwood »

Latest version of the helper EA's zip is in post 1.

I found a dangerous bug in the four Stochastic EA's that will close sells following a reload of the Sell ea's and you are using either of the moving average recross features - guess how I discovered there is this bug. :lol: Cost me 70 live pips on a trade that would have recovered and come out with a handsome profit. :cry:

Coders, save yourselves a download and unzip exercise. All that is needed is a tiny reordering of a function call in int init():
  • go to line 559 wich should be ReadIndicatorValues(); Delete this line of code.
  • scroll up to line 466 which should be CountOpenTrades();
  • replace the ReadIndicatorValues(); above CountOpenTrades();
then recompile.

The code snippet should look like this:

Code: Select all

TicketNo = -1;
   ReadIndicatorValues();
   CountOpenTrades();
   OldOpenTrades = OpenTrades;
   
For fledgling coders trying to delve under the bonnet:
  • CountOpenTrades() iterates through the open orders list and fills the variables that the my ea' what trades are open, their condition, how many etc. It also calls the individual trade management featurs, including the call to LookForTradeClosure() - this examines the indi values and closes the trade if the closure criteria are met.
  • ReadIndicatorValues() holds the calls to any indicators used by the EA - in this case Stochastic and Moving Averages. Clearly this function should be called before CountOpenTrades() or some vital variables migh be = 0, which is why the sell trades were closing on a restart.
: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.
kwchau
Trader
Posts: 305
Joined: Tue Jan 03, 2012 3:37 pm

Re: Steve's 10.6 EA manual trading aids

Post by kwchau »

SteveHopwood wrote:
kwchau wrote:Hi Steve, I agree totally with you that the EA's you've offered are very useful in helping us to trade Bob's system. I think the request I make above is just some improvement to the Flexible Stoch ea's that might be incorporated into your other Stoch Ea's as well.

Of course, I respect your view that this request does not worth the trouble and decide not to consider it.

Thank you for your kind contribution in helping us !

kwchau
Good news. I had a productive bath this morning. :lol:

I realised that I had missed the point of what you wanted and that the code amendment is quick and easy to make. The latest versions in post 1 will now compare the close of candle shift 1 with that of candle shift 2 if EveryTickMode is false. If true, it compares <now> with the close of candle shift 1.

Hope this better meets your needs.

:D
Thank you Steve! Will test them out.
95026862

Re: Steve's 10.6 EA manual trading aids

Post by 95026862 »

hey steve, did you add the feature to only open the trade at the close of the next candle along with STO7 20/80 cross ?
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: Steve's 10.6 EA manual trading aids

Post by SteveHopwood »

95026862 wrote:hey steve, did you add the feature to only open the trade at the close of the next candle along with STO7 20/80 cross ?
One thing that you need to learn about me is that I cannot stand reading questions about stuff I have addressed in earlier posts. This implies that you cannot be arsed to read the posts of the Forum Owner. In case you have not noticed, that is me. Well, nominally at least. Given the financial contributions here lately, maybe nominally is the best I can do. Ah well, moving on in titular ownership at least.

So, read my bloody posts and answer your bloody silly question for yourself or you will lose the ability to ask your bloody silly questions at all.
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.
Post Reply

Return to “Bob's individual forum”