Here is a second Tradestation Script that I have not been able to convert to Esignal efs script. I would appreciate any help available.
Thanks,
DaTr8dr
****************************
INPUTS : PRICE (CLOSE), LEN(9),CONSTNT(4),BEGINBAR(20),sell_color(magenta) ,buy_color(magenta);
VARS : CENTER (0),UPPER (0),LOWER (0), AVERNGE (0) ;
VALUE3= (CENTER + UPPER)/2; {SELLLINE}
VALUE4= (CENTER + LOWER)/2; {BUYLINE}
CENTER = (CENTER * (LEN - 1) + PRICE) / LEN;
AVERNGE = (AVERNGE * (LEN - 1) + HIGH-LOW) / LEN;
UPPER = CENTER + AVERNGE * CONSTNT ;
LOWER = CENTER - AVERNGE * CONSTNT ;
CONDITION1= RSI(C,21) < 51;
IF CURRENTBAR > BEGINBAR THEN BEGIN
IF CONDITION1 THEN
PLOT1(VALUE3,"SELLLINE",sell_color);
CONDITION11= RSI(C,21) > 49;
IF CONDITION11 THEN
PLOT2(VALUE4,"BUYLINE",buy_color);
Thanks,
DaTr8dr
****************************
INPUTS : PRICE (CLOSE), LEN(9),CONSTNT(4),BEGINBAR(20),sell_color(magenta) ,buy_color(magenta);
VARS : CENTER (0),UPPER (0),LOWER (0), AVERNGE (0) ;
VALUE3= (CENTER + UPPER)/2; {SELLLINE}
VALUE4= (CENTER + LOWER)/2; {BUYLINE}
CENTER = (CENTER * (LEN - 1) + PRICE) / LEN;
AVERNGE = (AVERNGE * (LEN - 1) + HIGH-LOW) / LEN;
UPPER = CENTER + AVERNGE * CONSTNT ;
LOWER = CENTER - AVERNGE * CONSTNT ;
CONDITION1= RSI(C,21) < 51;
IF CURRENTBAR > BEGINBAR THEN BEGIN
IF CONDITION1 THEN
PLOT1(VALUE3,"SELLLINE",sell_color);
CONDITION11= RSI(C,21) > 49;
IF CONDITION11 THEN
PLOT2(VALUE4,"BUYLINE",buy_color);