This one is for manual traders. It will:
- pick up on your stop losses and take profits.
- draw a dotted line of a colour of your own choice that marks the sl/tp on your screen.
- adjust the sl/tp as you select and drag the line to a different price.
- invoke Stealth, so that your market maker will see a far distant sl/tp that is nowhere near your 'real' stops.
- close the trade when your sl/tp lines are crossed.
Do not send a sl/tp with your manual trade. Instead, allow the ea to insert it for you.
Note: enter pips inputs as as proper pips and forget the x digit crap. The ea does all the necessary conversion, thanks to Lifesys.
The inputs:
- InstantTpPips: your actual take profit in pips. Stealth takes care of the tp hidden from your market maker. The ea draws the tp line at this level. If the market crosses this line in the correct direction, it will close the trade.
- InstantSlPips: your actual stop loss in pips. Stealth takes care of the sl hidden from your market maker. The ea draws the sl line at this level. If the market crosses this line in the correct direction, it will close the trade.
- PipsHiddenFromCriminal: the ea adds this to your stop loss and take profit and sends them as 'hard' stops that your market maker sees. It is there for dire emergencies when your computer has lost contact with your mm's server. If you have been reading CJ's thread at http://www.stevehopwoodforex.com/phpBB3 ... =59&t=1572 you will know why the default for this input is so big - and if you have not despite all my encouragement to do so, then you are an idiot who deserves to lose your deposit.
- Color.TakeProfit and its stop loss counterpart give you the choice of line colours.
- MagicNumber: this allows you to use the ea to manage the stops of trades entered using different trading systems. So, for example, if you want to manage CJ trades but not 10.4 trades on the same platform, then you need a script that will enter CJ trades that allows you to use a magic number. Set the ea MagicNumber to the same as that of the script, and it will ignore everything else.
If you leave the ea running on a chart, it will seamlessly pick up on a new trade as soon as you take it.
There is a small hitch with the stop loss function that causes the ea to: enter the missing sl; delete it; replace it at the next tick. I cannot work out what causes this but it does no harm. If any coder can see what I have done wrong, please sing out.
Use this on demo whilst the markets are quiet, so we can make sure there are no bugs lurking in the woodwork.
rthien's upgrade
rthien has adapted the EA so it works with pending trades as well as market trades. Find this at http://www.stevehopwoodforex.com/phpBB3 ... 687#p58687