First a few standard warnings:
Not for production! Educational ONLY!
Not for production! Educational ONLY!
Use on DEMO Accounts Only!
All code is supplied FREE of charge.
It may NOT be sold or distributed commercially.
Unless otherwise shown, no source code is available.
Software is offered on an 'as is' basis.
I'm not offering a programming or troubleshooting service.
There is no guarantee that the software is fit for purpose, or free of errors.
Download and use the code at your own risk and peril;
I accept no liability for computer damage or financial losses.
DO NOT POST ON PUBLIC SITES WITHOUT MY PERMISSION - Thanks
ok, that should be enough blah, blah blah...
I don't intend to do much more on this code, as I have moved on to new bright shiny objects, unless someone has a brilliant thought to pursue, or there are completely glaring flaws (which likely there are). Please respond to this post with bug reports, but I will get to them as I have time.
The main features of this code are:
It is coded to accomodate EURUSD only.
Automatically instantiates buy stop and sell stop orders (a total of eight) at Monthly, Weekly, Daily, and 4H breakout levels.
Upon deinitialization of the EA, an effort is made to kill every pending order.
Sometimes pending orders are quite stubborn, so I call the pending order deleter function 3 times. That said, check your trade terminal and VERIFY for yourself, that trades are 100% removed.
The code tries to kills all pending orders if the spread widens above the threshold in the variable "TolerableSpread", and will re-instantiate orders after the spread has returned to more normal levels.
The code has the JimDandy1958 VPS Heartbeat monitor, which is set to flash the ASK line.
I will include a Pending Order Deleter script in case the EA fails to remove an order...which it occasionally does. Or simply remove any dangling pending orders in your terminal.