Hi,
The following script (tradestation format) plots dots above and below a price bar dependant upon direction. I have attempted to write an efs for it, but am still learning. If this text looks familiar to anyone and they can assist is writing the efs, I would appreciate it.
******************
{This text plots dots above and below the price bar dependant on market direction}
INPUTS : PRICE (CLOSE), LEN(9),CONSTNT (4),BEGINBAR(20),ENTRYPT(3),sell_color(magenta),bu y_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
The following script (tradestation format) plots dots above and below a price bar dependant upon direction. I have attempted to write an efs for it, but am still learning. If this text looks familiar to anyone and they can assist is writing the efs, I would appreciate it.
******************
{This text plots dots above and below the price bar dependant on market direction}
INPUTS : PRICE (CLOSE), LEN(9),CONSTNT (4),BEGINBAR(20),ENTRYPT(3),sell_color(magenta),bu y_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
Comment