stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Click and drag take profit and stop loss EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1736
Page 3 of 4
Author:  fxdaytrader [ Fri Sep 13, 2013 10:37 am ]
Post subject:  Re: Click and drag take profit and stop loss EA

external parameters (for the ea one posting above) which may need a short explanation (most copied out from the sourcode):

ConfirmTradeClosure
confirm before trades are closed, use this until you now everything works as desired! And use on DEMO first.
Only set to false if everything works 1500% correct!!!

PreventPermanentlyPoppingUp
remembers last price + ticketno and does not ask for confirmation again (until another trade was to confirm or you move the tp/sl-lines of that trade, otherwise you won't be asked again and the trade would be closed on the hardcoded tp/sl)!!!


DeleteObjectsOnExitOrTFchange
if true it may cause problems if you change timeframe/ea settings during it is attached to a chart!!!
if set to false and LetMeChooseIfDelete is true, you will be asked every time you change the timeframe or remove the ea if you want to delete the existing pricelines.
in this case you must have inputbox.dll installed - when it pops up, just press "return(enter)"-key or the ok-button to keep the lines, "Escape"-key or cancel-button to delete them.
if LetMeChooseIfDelete is also false, then the lines won't be deleted (of course they will be deletet if the corresponding trade is closed) ...

CloseSellAtAskPrice
close sell orders at ask price, not at bid

SuppressNonImportantErrs
suppress error 129/130 alertpopups. Not sooo important for the user, but maybe to fix somewhen ...
Author:  Pedigree [ Fri Sep 13, 2013 10:42 am ]
Post subject:  Re: Click and drag take profit and stop loss EA

A lot of fxdaytrader's time and effort went into producing this.

Credit to Steve whose was the original idea in the first place, but so much appreciation and gratitude to fxdaytrader for this so useful modification.......and he did it all with so much grace!

To the best of my knowledge it works very well, but please test it out FIRST in demo to get accustomed.

fxdaytrader, a million thanks! :D
Author:  philcs65 [ Thu Apr 10, 2014 4:00 pm ]
Post subject:  Click and drag take profit and stop loss EA

I have not been able to compile this EA under Empty4 version 625.
error message returned semicolon missing lines 33 and 34.

extern color Color.TakeProfit=Green;
extern color Color.StopLoss=Red;

any help would be appreciated.
Author:  mobthehop [ Fri Apr 11, 2014 1:11 am ]
Post subject:  Click and drag take profit and stop loss EA

Here you go - use at your own risk....

Mop
Author:  philcs65 [ Fri Apr 11, 2014 3:07 am ]
Post subject:  Click and drag take profit and stop loss EA

Thanks for the response.
Author:  Over60 [ Fri Apr 11, 2014 8:36 am ]
Post subject:  Click and drag take profit and stop loss EA

@ Steve, rthien, fxt, mob

Thanks to all for coding and sharing this trade-manager.
I use the one from “mob”, due to B6xx and recognizing pendings.

I tried it with e.g. one initial short order and 4 buy-stop pendings.

But it seems to me, that the dashboard display does not work correct, because it indicates
3 open orders, but it should display 5 open order. It doesn´t matter (cosmetics).
But it would be more comfortable to distinguish between pending and active orders.

After than I tried to place sell-stop-orders (for hedging), but the EA (still active) did not recognize these pendings and did not create the appropriate orderlines for TP and SL.
Taken into consideration that I have placed the buy-stop-orders after already attaching the EA (the initial order was already open) and it did work.
Maybe the amount of already open orders might be any influence?

Afterwards I removed the EA by attaching it once again and now the EA did recognize the buy-stop- as also the sell-stop-orders (3 sell-pendings) indicating the orderlines for TP, SL in the correct way by default.

To reduce and drag the SL/TP-distance by orderlines < default in the setup seems to be not forseen and implicated, because the orderlines jumps back into the origion position (by default). Anyway to increase the orderline-distances by draging the orderlines did work.

Might help to improve the EA.
Moving on...

Over60
Author:  fxdaytrader [ Thu Apr 17, 2014 1:48 pm ]
Post subject:  Click and drag take profit and stop loss EA

(thanks Mob for pointing me to this problem :good: )
philcs65 » Thu Apr 10, 2014 4:00 pm wrote:I have not been able to compile this EA under Empty4 version 625.
error message returned
workaround: compile the mq4 file with the old mql4-editor and copy the so generated .ex4 to the proper Empty4-directory. i have uploaded the compiler at http://www.stevehopwoodforex.com/phpBB3 ... 971#p90971
Author:  preethishrahul [ Thu May 15, 2014 7:07 am ]
Post subject:  Click and drag take profit and stop loss EA

do u have the EA with BE break even added .....
Author:  Pedigree [ Fri May 23, 2014 12:17 pm ]
Post subject:  Click and drag take profit and stop loss EA

This is an appeal to Tommaso or any other coder, when they have a little spare time, to please consider adding a ManageAllTrades option to this stealth trade manager. That would be just sooo nice and greatly appreciated!

You might prefer to work with Click'n drag TPSL EA for multiple trades.mod fxdaytraderb6xx.mq4 (the top one in this post): http://www.stevehopwoodforex.com/phpBB3 ... 507#p90507

Thanking you in advance! :good:
Author:  Akileus [ Thu Sep 25, 2014 10:08 am ]
Post subject:  Click and drag take profit and stop loss EA

I've been reading as much as possible since I joined the forum, I really want to thank you Steve for tha amazing contribution of yours, and the community here on the forum, my knowledge of forex is quiete low so I'm not contributing much since I'm more into learning things, but I have to Admit this script of yours is the very script I was looking for, as a noob manual trader, it's simple et really effective, thanx again.
All times are UTC Page 3 of 4