0% found this document useful (0 votes)
194 views1 page

Absolute Strength Index (1) .Afl

This document defines a technical indicator called the Average Strength Index (ASI) that is calculated over a period of 10 days and plotted as a line on a chart. The ASI compares the closing prices of the current day and previous day to calculate values for average gains (A), number of days with no change (M), and average losses (D) over the period. These values are used in a formula to generate the final ASI value between 0-100, with higher numbers indicating stronger upward price movement.

Uploaded by

rohit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
194 views1 page

Absolute Strength Index (1) .Afl

This document defines a technical indicator called the Average Strength Index (ASI) that is calculated over a period of 10 days and plotted as a line on a chart. The ASI compares the closing prices of the current day and previous day to calculate values for average gains (A), number of days with no change (M), and average losses (D) over the period. These values are used in a formula to generate the final ASI value between 0-100, with higher numbers indicating stronger upward price movement.

Uploaded by

rohit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

/*Developed by Tudor Marcelin - Art Invest*/

n=10; /*period*/

A=0;
M=0;
D=0;

for( i = 0; i < 10; i=i+1 )


{

A=IIf(Ref(Close, - i)>Ref(Close, - i-1), A+(Ref(Close, - i)/Ref(Close, - i-1))-


1,A);

M=IIf(Ref(Close, - i)==Ref(Close, - i-1), M+1/n,M);

D=IIf(Ref(Close, - i)<Ref(Close, - i-1), D+(Ref(Close, - i-1)/Ref(Close, - i))-


1,D);

}
ASI=IIf (D+M/2==0, 100, 100-100/(1+(A+M/2)/(D+M/2)));

Plot(ASI,"ASI10",colorDarkBlue);

Plot(50,"",colorBlack,styleLine);
PlotGrid(70,colorGreen);
PlotGrid(30,colorRed);

GraphXSpace = 3;

You might also like