| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| EA idea to automate Gravy Trains & Weather Vanes https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5244 |
Page 1 of 1 |
| Author: | RisklessPips [ Sat Aug 12, 2017 2:02 pm ] |
| Post subject: | EA idea to automate Gravy Trains & Weather Vanes |
Hi SHF coders I have recently started a new thread called Gravy Trains and Weather Vanes. This is currently a manual method with use of MPTM to manage trades once they are live. I am wondering if anyone would be interested in building an EA to automate the input of trades and remove the need for manual scripts ? The spec is as follows The EA would take as user input variables : (1) Number of pips for determining if a trade has broken even (This would be the same number as pips BE in MPTM) (2)Trade management by comment and / or number (3)Lot size for additional trades Processing - With great apology for my pseudo code The EA would poll managed trades (2) above and For all open sell trades ..If Entry Price > Ask - BE Pips (i.e sell trade has broken even) ....If no sell trade exists at a lower bid price ......add a new sell trade at market price with lots (3) above ....else ......do nothing ..else ....do nothing end for loop For all open buy trades ..If Entry Price < Bid + BE Pips (i.e buy trade has broken even) ....If no buy trade exists at a higher ask price ......add a new buy trade at market price with lots (3) above ....else ......do nothing ..else ....do nothing end for loop In both cases the trades would be added with the management comment so that once live MPTM can manage them for BE, SL and TP. I hope I have captured the requirement which essentially is to have one new open buy or sell trade as each previous buy or sell achieves break even. Edit 1) - This EA can add a lot of trades so a switch to turn it on and off would be required. |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|