hello
i got this afl from www.tradewithme.me
i need help to plot buy/sell arrow when both line crossing ( red n yellow)
thx
color = ParamColor( "Color", colorRed);
style = ParamStyle( "Style", styleThick);
label = ParamStr( "label text", "Hull_JMA" );
Price = ParamField("Price");
Period = Param("Period", 10,1,100,1);
function HMA1(Price, Period)
{
return WMA(2*WMA(Price, Period/2)-WMA(Price, Period), sqrt(Period));
}
function JMA1( 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);
}
a=Param("Hull_JMA",25,1,100,1);
k=Param("Period",10,1,100,1);
L = HMA1(C,k);
M=JMA1(C,k);
N=((L*a)+(M*(100-a)))/100;
Plot( N, label, color, style);
Plot (MA(C,50),"",colorYellow,styleLine);
Plot (C,"Close",colorWhite,styleCandle);
i got this afl from www.tradewithme.me
i need help to plot buy/sell arrow when both line crossing ( red n yellow)
thx
color = ParamColor( "Color", colorRed);
style = ParamStyle( "Style", styleThick);
label = ParamStr( "label text", "Hull_JMA" );
Price = ParamField("Price");
Period = Param("Period", 10,1,100,1);
function HMA1(Price, Period)
{
return WMA(2*WMA(Price, Period/2)-WMA(Price, Period), sqrt(Period));
}
function JMA1( 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);
}
a=Param("Hull_JMA",25,1,100,1);
k=Param("Period",10,1,100,1);
L = HMA1(C,k);
M=JMA1(C,k);
N=((L*a)+(M*(100-a)))/100;
Plot( N, label, color, style);
Plot (MA(C,50),"",colorYellow,styleLine);
Plot (C,"Close",colorWhite,styleCandle);