convert custom indicator to EA (expert advisor)

In Progress Posted Nov 30, 2015 Paid on delivery
In Progress Paid on delivery

Hi ..

I have a custom indicator called TVI2color that gives sell and buy alerts.

I want to convert it to EA that convert these alerts into orders as follows "

When the indicator turns green, it closes the sell order and opens a buy order.

@@ when the indicator turns red , it closes the buy order and open a sell order.

want the the buys and sells to happen on the exact bar that the color change takes place not the bar after.

I also want to be able to set a stop loss and a take profit and maintain the ability to change the inputs.

Please make sure I am able to backtest the EA.

depending on these two rules above :

@@ the the maximum opened orders at the same time is always only one trade.

@@ there is always a trade opened.

@@ I have to be able to set a default lot size to the orders.

note : when the ea is launched it must check if there is order opened or not, to make sure not to open more the one order at the same direction.

## what I need is to convert the code itself from an indicator code to EA code ( the use of icustom function is not allowed ) ##

@@ there are two versions of the indicator. one for the 4-digit metatrader, and the other for the 5-digit. so I'm expecting the same thing for the EA.

you can contact me if any further information is needed .

C Programming Metatrader

Project ID: #9011061

About the project

Remote project Active Dec 1, 2015