Hi , I am using eSignal 7.1 for almost a month but I am having a hard time coding the EFS myself. I would like to kindly ask if anybody can help me code the following 4 Tradestation Ela into EFS code. I am attaching GIF picture for visual look and understanding for the following 4 indicators: JNP HiLoActivator, JNP Macd, JNP Paint bar A and JNP Paint bar B .
JNP HiLoActivator
Input: Length(2);
Var: Swing(0);
Value1=Average(H,Length);
Value2=Average(L,Length);
If C<=Value2[1] And C[1]>=Value2[2] then Swing=-1;
If C>=Value1[1] And C[1]<=Value1[2] then Swing=1;
If Swing=1 Then Plot1(Value2,"Sell Act");
If Swing=-1 Then Plot2(Value1,"Buy Act");
JNP Macd
Input: FastMA(5),SlowMA(21),MacdMA(5);
Plot1((MACD(Close,FastMA,SlowMA))-(WAverage(MACD(Close,FastMA,SlowMA),MacdMA)),"MACD ");
Plot2(0,"0");
IF CheckAlert Then Begin
IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2
Then Alert;
End;
JNP Paint bar A
Input: Price(Close),Length(10);
IF Price < XAverage(Price,Length) Then Begin
Plot1(High,"PBHigh");
Plot2(Low,"PBLow");
IF CheckAlert Then Alert;
End;
JNP Paint bar B
Input: Price(Close),Length(10);
IF Price > XAverage(Price,Length) Then Begin
Plot1(High,"PBHigh");
Plot2(Low,"PBLow");
IF CheckAlert Then Alert;
End;
JNP HiLoActivator
Input: Length(2);
Var: Swing(0);
Value1=Average(H,Length);
Value2=Average(L,Length);
If C<=Value2[1] And C[1]>=Value2[2] then Swing=-1;
If C>=Value1[1] And C[1]<=Value1[2] then Swing=1;
If Swing=1 Then Plot1(Value2,"Sell Act");
If Swing=-1 Then Plot2(Value1,"Buy Act");
JNP Macd
Input: FastMA(5),SlowMA(21),MacdMA(5);
Plot1((MACD(Close,FastMA,SlowMA))-(WAverage(MACD(Close,FastMA,SlowMA),MacdMA)),"MACD ");
Plot2(0,"0");
IF CheckAlert Then Begin
IF Plot1 Crosses Above Plot2 or Plot1 Crosses Below Plot2
Then Alert;
End;
JNP Paint bar A
Input: Price(Close),Length(10);
IF Price < XAverage(Price,Length) Then Begin
Plot1(High,"PBHigh");
Plot2(Low,"PBLow");
IF CheckAlert Then Alert;
End;
JNP Paint bar B
Input: Price(Close),Length(10);
IF Price > XAverage(Price,Length) Then Begin
Plot1(High,"PBHigh");
Plot2(Low,"PBLow");
IF CheckAlert Then Alert;
End;
Comment