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 2 of 4
Author:  Viv [ Mon Apr 15, 2013 11:20 pm ]
Post subject:  Re: Click and drag take profit and stop loss EA

Kiora from New Zealand Steve

Thank you so much for the indicator - really enjoying using it. :)

On most of my charts the EA works as stated but I've noticed on some - the SL &TP jump around all the time - alternating between two points - not sure why this is - when on other charts they are static.

Is anyone else experiencing this?

Many thanks

Cheers

Viv
Author:  rthien [ Tue May 07, 2013 7:07 am ]
Post subject:  Re: Click and drag take profit and stop loss EA

Steve et al,

I've been using this EA to trade Entropy Signals to hide my SL/TP. In doing so, I tend to place pending buy/sell trades that trigger at the entry price determined by Entropy.

I noticed that this EA does not work with pending trades on the chart, so I have modified it such that it does. I'm including it here so that others may find it useful.

With this modification, it's possible for me to save this EA as part of the "default" template, such that when charts are opened, I have it running by default. It then waits for a buy or sell trade to take place manually or via pending trades, and apply the respective TP or SL. Yes, I can be forgetful in placing (hidden) SLs, so the idea for this EA helps me tremendously in this respect.

Cheers,

Roger
Author:  jboy [ Thu May 30, 2013 6:55 am ]
Post subject:  Re: Click and drag take profit and stop loss EA

I have to say this is so awesome. I've been looking for something like this to help me in hiding my SL and TP from the brokers. Trading manually has just gotten easier. Thanks Steve and rthien for sharing this wonderful tool.
Author:  SteveHopwood [ Thu May 30, 2013 9:37 am ]
Post subject:  Re: Click and drag take profit and stop loss EA

rthien wrote:Steve et al,

I've been using this EA to trade Entropy Signals to hide my SL/TP. In doing so, I tend to place pending buy/sell trades that trigger at the entry price determined by Entropy.

I noticed that this EA does not work with pending trades on the chart, so I have modified it such that it does. I'm including it here so that others may find it useful.

With this modification, it's possible for me to save this EA as part of the "default" template, such that when charts are opened, I have it running by default. It then waits for a buy or sell trade to take place manually or via pending trades, and apply the respective TP or SL. Yes, I can be forgetful in placing (hidden) SLs, so the idea for this EA helps me tremendously in this respect.

Cheers,

Roger
Fantastic Roger. I have linked this in post 1.

:D
Author:  fire580 [ Thu May 30, 2013 8:48 pm ]
Post subject:  Re: Click and drag take profit and stop loss EA

With this type of EA if you lose power and your computer and platform go down - will stops and take profits still be honored?

Thank You
Author:  SteveHopwood [ Thu May 30, 2013 9:34 pm ]
Post subject:  Re: Click and drag take profit and stop loss EA

fire580 wrote:With this type of EA if you lose power and your computer and platform go down - will stops and take profits still be honored?

Thank You
Read post 1.

Then read it again properly.

Then think twice before asking any more stupid questions that demand my attention to idiotic questions that have already been answered in post one.

Then think 8 more times before asking any more imbecilic questions and remember whom the OP is here.

Capiche?
Author:  Pippopotamus [ Thu Jul 25, 2013 6:22 pm ]
Post subject:  Re: Click and drag take profit and stop loss EA

Sorry, Pippo nonsense deleted... See post below... ....... Pippo
Author:  Pippopotamus [ Tue Aug 27, 2013 9:20 am ]
Post subject:  Re: Click and drag take profit and stop loss EA

Sorry, Just a bit more of Pippo's nonsense deleted... Pedigree's observations far more perceptive, and helpful...
Author:  Pippopotamus [ Wed Aug 28, 2013 12:13 pm ]
Post subject:  Re: Click and drag take profit and stop loss EA

Pippo nonsense deleted.....Thanks Pedigree, and fxdaytrader....Pippo
Author:  fxdaytrader [ Fri Sep 13, 2013 9:48 am ]
Post subject:  Re: Click and drag take profit and stop loss EA

New version attached, seems to work, please test.
This version is based on the "rthien-version" some posts above. I have to admit that I did not have a look to the original version by Steve in post 1, so I do not know what is the difference between the both ... :!:

Two days ago one PM of Pedigree reached me, I am allowed to quote:
Pedigree wrote: (...) Could you possibly have some time to take a look at this for me so soon after the issues of the past few days (remark: we were on some other stuff also, works fine now, fxdaytrader)?

The attached Hidden TP & SL EA (I changed only its name) was originally Click-and-drag take profit and stop loss EA for multiple trades-rthien.mq4 from

(remark: post with rthien-version above, fxdaytrader)

I use it every day for practically every trade I take and it does a great job with TPs and SLs. It however has some quirks that I’m hoping you’ll have the time to help resolve. In order of importance, they are as follows:

1. Its operation goes haywire whenever there is more than one trade on the chart and time frames are changed or the platform is closed and re-opened. It simply lumps all TPs and SLs together into one SL and one TP! Otherwise, it works great for multiple trades as long as the Time Frame is not changed and the platform is not closed.

2. As it is, you must set a SL value to use the EA. If the SL value is set to 0, it just closes the trades within seconds! Also, it uses the same set distance of hidden pips for both SL and TP.

3. It has problems with pending trades still! If a pending trade is present on the chart, it lets of an endless stream of the same error message saying: “Click and drag 310468667 CheckForSLineDrag() stop loss modification failed with error 1: no error”. Rthien was supposed to have, in this version, modified Steve’s original version to sort this issue, but his modification was to no avail – at least that is my finding with my broker (Alpari UK).

4. It only manages trades with ONE magic number on the chart it is on. So if there are say, 3 GBPUSD trades with 3 different magic numbers, you need to have 3 charts of the pair open and to attach the EA to each, specifying each different magic number in each. This is quite cumbersome.

Marc, I know these issues may take a while to look at and I am also aware that you must have other pressures on your time, so I am not expecting them to be resolved today/tomorrow (...), but I will be deliriously grateful if there is ANY of them you can help correct in time. I am hoping you can:

1. Get the EA to reorganize itself according to its settings when chart time frame is changed or the platform is closed and re-opened. It will be great to use the safety on/off feature used by Steve in the MA Entry EAs in which a small dialog box comes up (when the TF is changed or the platform is closed and re-opened) and asks if the user wants to continue the use of the EA, whereupon, if Yes is clicked, the EA is reapplied to the chart with the previous settings.
(...)
2. Give it a new ManageTP option that will manage TP values only if set to true. This will allow a SL to be set without having to set a TP.

Give it a new ManageSL option that will manage SL values only if set to true. This will allow a TP to be set without having to set a SL.

Give it a new TPPipsHiddenFromCriminal option that will allow a hidden pips value that will apply only to TP.
Give it a new SLPipsHiddenFromCriminal option that will allow a hidden pips value that will apply only to SL.
So TPPipsHiddenFromCriminal and SLPipsHiddenFromCriminal will replace PipsHiddenFromCriminal.

3. Get the EA to accommodate existing and added pending trades which when tripped will be automatically influenced according to EA set options.

4. A new ManageByMagicNumber option that will allow multiple comma-delimited magic numbers to be specified for the EA

By the time these issues are resolved, we would have a completely different trade management EA.
(...)
I hope your trip is proving to be fruitful.

Take care and thank you very much Marc.

With best regards,
Lheon
Ok, got that so far.
Sooner that day I received the following:
Pedigree wrote: To quickly summarize, these are what you have been able to put together here:

The EA:
1. Now accomodates pending trades
2. Now handles multiple magic numbers
3. Now manages TPs independently of SLs
4. Now manages TF changes and Platform Closures
5. Now gives an option to NOT close trades when errors are generated

and these are pretty much what we set out to achieve.

There may be a few things to tidy up concerning:
(...)

2. Deciding what the PreventPermanentlyPoppingUp option does and if we need to keep it.

3. Extensive running of the EA in demo for a few more days
As Pedigree stated, the EA now seems to work fine, but, however, you have to test it. There is no guarantee and liability for damage or misfunction!!!!

Attached you will find the EA (belongs to Empty4\experts\ folder) and the inputbox.dll (belongs to Empty4\experts\libraries\ folder).

I think the settings are self explanatory, but in the next post you will find a short manual ...

Test on demo first! 8-)
All times are UTC Page 2 of 4