Convert an Indicator into an EA with some modifications

 

Hello

I have the attached indicator which sends alerts in case the candle closed above/below a certain price.

As a first step, i would like to create an EA that opens a position based on that alert.

What i want to achieve is to make the EA that finds the high and low during the Asian session and apply the same strategy to open orders.

Including other parameters like SL, TP points ,risk% would also help.

Your help is appreciated !

Files:
EA2020228.mq4  3 kb
 

This is an old MT4 indicator and it might probably not work anymore.

Apart from this it has a very simple logic, so that it would be easy to embed it inside an EA.

You could ask in the Freelance section to get this converted.

 
Adelazz: As a first step, i would like to create an EA that opens a position based on that alert.
  1. Can't be done. EAs have no eyes, they can't see alerts. Your indicator has no buffers, EA can't read it.
  2. All your indicator does is alert above/below an input price. Add an input price and corresponding code to your EA and drop the indicator.
  3. Since all you want is to open on a fixed price, just open a buy stop or sell stop at that price. No EA required.
Reason: