Need help coding EA

 

Looking for someone to code an EA of the following. Or if someone can point me in the right direction to learn to code it myself. Thanks!

Only 1 trade per day

Currency pair = X

Chart time frame = 30M

If Candlestick at time X open<close then set order buy (bullish/green candle)

buy at high of candle at time X - X pips. buyOrder= candleHigh- x pips

Target price = buyOrder + X

set sellStop for target price

If Candlestick at time X open>close then set order buy (bearish/red candle)

sell at low of candle at time X + X pips. sellOrder= candleHigh- x pips

Target price = sellOrder - X

set sellStop for target price

Example:

30 minute chart EURUSD

at 8:00 there is a green candle open=1.30000 close =1.3025

I want to set buy order at - 5 pips of the high of the candle at 8:30 as soon as the candle closes.

so buy order will be 1.3020

I set target price at 50 pips so a sell stop at target profit = 1.3070

the next day at 8:00 there is a red candle open=1.30000 close=1.29000

sellorder is set at candle low + 5 pips of candle low

so sell order = 1.2905

target price is 50 pips so buystop oreder set at 1.2855

I would like to be able to adjust the numbet of pips of enter price and target price and usable with any currency pair. Also adjust the numbetr of lots traded

 

Have you manually traded this system? Whats the win:loss ratio?

Reason: