Demark_trend_new EA for MT4

 

I am trying to create an EA with Demark_trend_new indicator. Buy when

a High is above HL_1 trend line and sell when a Low is below LL_1 trend line.

I inserted in the EA:

double Var1 = iCustom("HL_1", 0, "Demark_trend_new", 200, 0, Current +0);

double Var2 = iCustom("LL_1", 0, "Demark_trend_new", 200, 0, Current +0);

The EA opens only Buy order. Does anyone know how to write these variables correctly?

 
adria:
I am trying to create an EA with Demark_trend_new indicator. Buy when

a High is above HL_1 trend line and sell when a Low is below LL_1 trend line.

I inserted in the EA:

double Var1 = iCustom("HL_1", 0, "Demark_trend_new", 200, 0, Current +0);

double Var2 = iCustom("LL_1", 0, "Demark_trend_new", 200, 0, Current +0);

The EA opens only Buy order. Does anyone know how to write these variables correctly?

This is not the way to use iCustom

Use like this

iCustom(Symbol(), TF, CustomIndicator, Rperiod, LSMA_Period, 5, shift);

1) Symbol name or NULL

2) Time frame or 0 for current TF

3) Custom indicator name

then ALL the indicator parameters

then the buffer number (zero base)

then the bar shift

 

Hi adria

I like Demark_trend_new indicator like you.

Did you make EA for this?

Could you post EA if completed?

Best regard

 

I tried to create that EA by means of expert advisor builder.I used that indicator as custom indicator. I liked that the EA opens the orders when the

price crosses the blue line or the red line. But it seems that expert advisor

builder can't recognize that lines.