New EA / Automated Trading required for MT4

Hello there,

I want a EA to be created. I want to test market, if we can take small profit in each trades but multiple trades.

wanted an EA with following features.

inputs

  1. min lot default 0.01 changeable by user
  2. Take profit (TP) default 10 pips changeable by user
  3. spread include in take profit : true or false. if True, take profit (TP) will be as in point 2. if false, take profit (TP) will be point 2 + spread.
  4. stop loss (SL) will be default not set, but settable by user.

at the start of each bar, EA will check if there if

a. open long order for the script
b. open short order for the script

there will be 4 possible outcome.

cond 1. only long order exist.
cond 2. only short order exist.
cond 3. both long and short order exist.
cond 4. no order exist.

if cond 1.: the EA will place short order with TP & SL.
if cond 2.: the EA will place long order with TP & SL.
if cond 3.: the EA will place no order.
if cond 4.: the EA will place both long and short orders with TP & SL for each.

no force close of any order.

in short, EA will open both short and long orders at the start of the new bar / candle, with condition that no previous order exist on the same script. if any then the order type must be as defined.

thanks in advance.

Automated trading is one of the strongest features of MetaTrader 4 allowing you to develop, test and apply Expert Advisors and technical indicators. It eliminates any obstacles in analytical and trading activity.