i need help to transfer formula from metastock to ambroker AFL

have a formula of indicator in metastock could anyone teach me how to make work in amibroker

A:=RSI(14)-Ref(RSI(14),-9)+Mov(RSI(3),3,S);
Plot1:=Mov(A,4,S);
Plot2:=Mov(A,45,E);
a;Plot1;Plot2;

You need to replace MOV( array, period, s ) with MA( array, period ) and MOV( array, period, E ) with EMA( array, period )

x = RSI(14)-Ref(RSI(14),-9)+MA(RSI(3),3);
P1=MA( x,4);
P2=EMA(x,45);
Plot( a, "a", colorRed );
Plot( p1,"p1", colorGreen );
Plot( p2,"p2", colorBlue );
1 Like

it worked thanx a lot for the help

_SECTION_BEGIN("RSI Indicator");
x = RSI(14)-Ref(RSI(14),-9)+MA(RSI(3),3);
P1=MA( x,4);
P2=EMA(x,45);
Plot( X, "X", colorRed );
Plot( p1,"p1", colorGreen );
Plot( p2,"p2", colorBlue );
_SECTION_END();

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.