| 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 1 of 4 |
| Author: | SteveHopwood [ Sun Mar 31, 2013 11:27 pm ] |
| Post subject: | Click and drag take profit and stop loss EA |
YOU MUST UNDERSTAND HOW TO USE EA'S IN ORDER TO USE THIS EA. DO NOT USE IT UNTIL YOU KNOW HOW TO USE Empty4 EXPERT ADVISORS. DO NOT BLAME ME IF YOU MUCK UP. This one is for manual traders. It will:
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:
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 |
|
| Author: | mobthehop [ Mon Apr 01, 2013 12:49 am ] |
| Post subject: | Re: Click and drag take profit and stop loss EA |
Steve, fantastic - was looking a long time for this........ goes onto my charts immediately... Cheers |
|
| Author: | KevinT [ Mon Apr 01, 2013 12:50 am ] |
| Post subject: | Re: Click and drag take profit and stop loss EA |
Wonderful Steve a scale in tool for advanced 10.4 trading! Will make a kill on trending markets |
|
| Author: | madpipa [ Mon Apr 01, 2013 3:07 am ] |
| Post subject: | Re: Click and drag take profit and stop loss EA |
Hi Steve, Thanks for the indicator - very handy. I'm not a programmer, but... I swapped the line with SetTp & placed it above the SetStop in the start routine. It then repeated the problem, but this time with the tp being set, then zeroed, then reset. So I set it back to the original order. I had a look through the code & am thinking that when SetTp() is called from within start() that OrderStopLoss() has not yet been populated, so the OrderModify receives a "0" for the SL value. Then the next time around it reads the trade again after using OrderSelect() which now populates the SL. I tried using RefreshRates() but I really have no idea just where it should be placed. Hope this might help you. If not, sorry for the babble. Have a nice break Steve. Cheers, Mick |
|
| Author: | SteveHopwood [ Mon Apr 01, 2013 8:15 am ] |
| Post subject: | Re: Click and drag take profit and stop loss EA |
Thanks for looking madpipa. |
|
| Author: | Fable [ Mon Apr 01, 2013 2:02 pm ] |
| Post subject: | Re: Click and drag take profit and stop loss EA |
Great ! Thanks Steve, will try it ! Love the idea to hide things from my broker |
|
| Author: | rthien [ Tue Apr 02, 2013 7:45 am ] |
| Post subject: | Re: Click and drag take profit and stop loss EA |
Steve, I've tried the EA and works as stated. I noticed that you have not applied the "Color.TakeProfit" and "Color.StopLoss" options into the code, so the color of those lines are hard-coded at present. See lines 166 and 191. _Roger |
|
| Author: | SteveHopwood [ Tue Apr 02, 2013 8:22 am ] |
| Post subject: | Re: Click and drag take profit and stop loss EA |
Cheers. Forgot that. Will correct this later. |
|
| Author: | SteveHopwood [ Tue Apr 02, 2013 10:44 pm ] |
| Post subject: | Re: Click and drag take profit and stop loss EA |
Done the correction for the colour thingy. You do not need the update if you are happy with the defaults. Update is post 1. |
|
| Author: | SteveHopwood [ Tue Apr 02, 2013 10:54 pm ] |
| Post subject: | Re: Click and drag take profit and stop loss EA |
Tiny bloop in the update, so sorry, but the one individual to have downloaded between reading my previous and this needs to re-download. Oops. |
|
| All times are UTC | Page 1 of 4 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|