+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

Formula oscillator

A Formula Oscillator, when created using Amibroker AFL, measures the momentum of price movements. Through Amibroker data feed, traders can fine-tune the parameters of the oscillator to suit their trading strategies, assisting in identifying overbought and oversold conditions for optimal entry or exit points.

/_SECTION_BEGIN("formula2");
EnableScript("vbscript");
<%
function jMA(jH,jL,A2,A2m,k)
dim result()
redim result(UBound(jH))

for i=k to UBound(jH)
n=i+1
if A2(i)<= A2m(i) then
do until n=0
n=n-1
if A2(n)>= A2m(i) then exit do
Loop
result(i)=jH(n)
else
do until n=0
n=n-1
if A2(n)<= A2m(i) then exit do
Loop 
result(i)=jL(n)
end if
next
jMA=result
end function
%>

script=GetScriptObject();

n=60;
Graph0=script.jMA(H,L,AccDist(),EMA(AccDist(),n),n);

Graph1=C;
Graph1Style=128;
Graph2=IIf(C

Open chat
1
Hi, how can I help you?