convert custom indicator to EA (expert advisor)

Job ID: 31899038

Budget: $25 – $40 USD

Hi,
I have a custom indicator that gives sell and buys alerts.
I want to convert it to EA that converts these alerts into orders as follows"

@ When a BUY signal appears, it closes all opened BUY orders and opens a SELL order.

@ When a SELL signal appears, it closes all opened SELL orders and opens a BUY order.

Depending on these two rules above:
@ Provision should be made for SL and TP for manual setting.
@ The maximum opened orders is once per signal.
@ I have to be able to set a default lot size to the orders.
@ The EXTDEPTH value of the INDICATOR should be set Manualy.

What I need is to convert the code itself from an indicator code to EA code ( the use of icustom function is not allowed )
You can contact me if any further information is needed.




? The EXTDEPTH values should be adjustable.

? SL and TP should be set manually.

? Lot size should also be set manually
Related categories: Metatrader C++ Programming Trading MQL4