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!

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.

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.