Quote:
|
Originally Posted by 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