Bob and Shelley Again

Locked
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: Bob and Shelley Again

Post by SteveHopwood »

fxozgirl wrote:So with that in mind, is Dave's suggestion able to be incorporated into the EA for both main & re-entry trades as some extra protection without affecting the existing money management features?
Done. V 1y in post 1.

BASA runs the check at the open of the second candle after the trade candle, and only if the trade is not in profit.

: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.
spotdespot
Trader
Posts: 768
Joined: Sun Jan 22, 2012 11:38 pm

Re: Bob and Shelley Again

Post by spotdespot »

Excellent - updated thanks.
Cheers,
Dave.
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: Bob and Shelley Again

Post by fxozgirl »

SteveHopwood wrote:
fxozgirl wrote:So with that in mind, is Dave's suggestion able to be incorporated into the EA for both main & re-entry trades as some extra protection without affecting the existing money management features?
Done. V 1y in post 1.

BASA runs the check at the open of the second candle after the trade candle, and only if the trade is not in profit.

:D
Thanks again Steve, this should help us cut our (almost) certain losers quickly saving significant pips and will then allow us to recover much quicker. I will update my platforms today!

Thanks Dave for your contributions

:D
fchaman
Trader
Posts: 119
Joined: Sat Nov 19, 2011 1:13 pm
Location: End of the world

Re: Bob and Shelley Again

Post by fchaman »

Thanks for the update.

Is it advisable to close all open positions for the weekends? These large gap opennings can sometimes be very brutal on your open positions...
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: Bob and Shelley Again

Post by fxdaytrader »

fchaman wrote: Is it advisable to close all open positions for the weekends?
Try it out, see attached. It is the version 1y (the current version) with the following modifications (just a few, search for "fxdaytrader" to find them in the code):

extern bool StopOpenPositionsFridayEvening, extern bool CloseAllOpenTradesAlso added. This allows to user to let the EA stop opening positions and/or close all open positions on friday at the specified LOCAL (!) hour.

It should be obvious that "CloseAllOpenTradesAlso" only makes sense if StopOpenPositionsFridayEvening" is TRUE ...

Further I have implemented the NormalizeLots-function (see also http://forum.mql4.com/45425#564188) and an retry if OrderClose() by OrderClosePrice() fails (it will then try to close BUYS at BID and SELLS at ASK price, and if this fails return false). The Ordercloseprice-failure maybe very rare, but it can happen and happened. The bid/ask-alternative may be redundant, but why not, in the rare cases the error occurs it will help closing the position faster ...

Try on demo first!
8-)
You do not have the required permissions to view the files attached to this post.
Last edited by fxdaytrader on Fri Sep 27, 2013 1:24 pm, edited 2 times in total.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: Bob and Shelley Again

Post by milanese »

Thank you :)

Cheers

Tommaso
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: Bob and Shelley Again

Post by SteveHopwood »

fxdaytrader wrote:
fchaman wrote: Is it advisable to close all open positions for the weekends?
Try it out, see attached. It is the version 1y (the current version) with the following modifications (just a few, search for "fxdaytrader" to find them in the code):

extern bool StopOpenPositionsFridayEvening, extern bool CloseAllOpenTradesAlso added. This allows to user to let the EA stop opening positions and/or close all open positions on friday at the specified LOCAL (!) hour.

It should be obvious that "CloseAllOpenTradesAlso" only makes sense if StopOpenPositionsFridayEvening" is TRUE ...

Further I have implemented the NormalizeLots-function (see also http://forum.mql4.com/45425#564188) and an retry if OrderClose() by OrderClosePrice() fails (it will then try to close BUYS at BID and SELLS at ASK price, and if this fails return false).

Try on demo first!
8-)
I have a busy teaching day on Friday, so I have done my last coding for this week. Please:
  • ensure your coding is accurate.
  • have added relevant appreciations of your work (you have read my code and understand how grateful I am for the input of so many other coders)
then I can make your latest into whatever version is the latest. Actually, could you do that for me, please?

And the final killer. The real bugger with this kind of thread is maintaining the User Guide. The odt file for this is housed on my coding machine, which I turned off because it is my bedtime, and so I cannot attach the UG here. I have turned said machine back on and am about to send the UG to you via pm. Could you update it in light of your recent developments, please, so I can update the pdf in post 1?

Sorry. I know I am asking a lot but you know what you have done here and so are best positioned to add to the UG.

Does it help if I make you my Best Friend Ever?

We are all really grateful for your efforts here. You are a star.

: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.
fchaman
Trader
Posts: 119
Joined: Sat Nov 19, 2011 1:13 pm
Location: End of the world

Re: Bob and Shelley Again

Post by fchaman »

Many thanks fxdaytrader...will try it out!
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: Bob and Shelley Again

Post by fxdaytrader »

SteveHopwood wrote: Please:
  • ensure your coding is accurate.
  • have added relevant appreciations of your work (you have read my code and understand how grateful I am for the input of so many other coders)
(...)
Actually, could you do that for me, please?

(...) I have turned said machine back on and am about to send the UG to you via pm. Could you update it in light of your recent developments, please, so I can update the pdf in post 1?
Of course, I will do that. 8-)
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: Bob and Shelley Again

Post by SteveHopwood »

fxdaytrader wrote:
SteveHopwood wrote: Please:
  • ensure your coding is accurate.
  • have added relevant appreciations of your work (you have read my code and understand how grateful I am for the input of so many other coders)
(...)
Actually, could you do that for me, please?

(...) I have turned said machine back on and am about to send the UG to you via pm. Could you update it in light of your recent developments, please, so I can update the pdf in post 1?
Of course, I will do that. 8-)
Thank you my friend. I have sent you the UG. I am going to bed now and am busy tomorrow, so please do not be offended if I do not respond immediately to your posts.

: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.
Locked

Return to “Automated trading systems”