Hi friends,experts,

years ago,a gentleman gave following afl code for clone of or equivalent of jma.

Can anyone help use similar logic to create JADX OR  JMACD?


//Someone posted this about 3 OR 4 years ago, here. I believe the 
//original post may have been deleted. I have never used the real JMA, 
//so I have nothing to compare it to, but it does work AND is a bit 
//tighter than Tillson's T3. So here it is again --

==========================================

function JMA( array, per )
 { 
 TN1=MA(array,per); 
 s1=0;
 for( i = 0; i < per; i=i+1 ) 
 {
 s1=s1+((per-(2*i)-1)/2)*Ref(array,-i); 
 } 
 return TN1+(((per/2)+1)*S1)/((per+1)*per);
 } 
 k=Param("Period",15,1,100,1);
 J=JMA(C,k);
Plot( J, "JMA", ParamColor("Color", colorBlack ), styleNoTitle | 
ParamStyle("Style") | GetPriceStyle() ); 

======================================

Elsewhere I saw clone for jma but cant recall.
If anyone can help, please share your experience and reference links.

An old friend of mine,prefers nolag indicators to these j series ones.He uses 
NOLAGMACD,NOLAGADX, etc.
regards and thanks in advance,
ford

Reply via email to