Auto trader based on user defined level and trailing 5 minute price

To add comments, please log in or register
James Fechtner
31
James Fechtner  

Hi Everyone

Sorry for posting but I couldn't find what I am looking for so was hoping someone could help.

I am after an EA and Autotrader that will do the following:

  • Based on a user defined price, which would be set once a day
  • If the current price moves above or below the user defined level after a five minute interval 
  • Then place a buy or sell trade, depending in which direction the price moved (above the user defined level then buy, or sell if below the user defined level)
  • If trade placed then set a trailing stop loss if 20 pips reached
  • If trade placed and no trailing loss placed then buy/sell will be cancelled if the price moves back through the user defined level after a five minute interval and the next trade in the opposite direction would be placed

Working example:

  • User defined price (UDP) = 11136.2
  • Current market price (CMP) = 11136.9 @11:30am
  • At the first 5 minute interval after the CMP breaks the UDP the market moves through the UDP to 11135.6 as at 11:45am and a sell trade is therefore placed
  • A trailing stop of 20 pips is then added at 13:15 when the price moves to 11133.6
  • The price then moves down further to 11131.6 at 14:15 and the trailing loss is therefore 11133.6
  • The close (buy) position is then triggered when the price moves back up through the trailing stop at 15:15 to 11133.7 at the first 5 minute interval after the opening position was broken
  • Had a trailing stop not been set then the position would have been closed (buy) when the price moved above the user defined level after the first five minute interval

Regards

James

William Roeder
18873
William Roeder  
James Fechtner: s hoping someone could help.
Help you with what? You haven't stated a problem, you stated a want.
You have only four choices:
  1. Search for it,
  2. Beg at
  3. learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
  4. or pay (Freelance) someone to code it.
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help
          urgent help.
To add comments, please log in or register