EA idea to automate Gravy Trains & Weather Vanes

Place your new trading idea here to see if someone can automate it.
Post Reply
User avatar
RisklessPips
Trader
Posts: 246
Joined: Mon May 09, 2016 2:24 pm
Location: Nairobi, Kenya

EA idea to automate Gravy Trains & Weather Vanes

Post by RisklessPips »

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.
Trading is a mind game - good job I have a brain
Post Reply

Return to “Ideas for Possible Automation”