Skip to main content

MIDAS SYSTEM for Amibroker (AFL)

pras almost 16 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 9)
  • Tags:
    amibroker, support, resistance

THIS AFL CREATED BY MR.THOMASZ & PUBLISHED IN JULY EDITION STOCK & COMMODITY MAGAGINE.

CLICK ANY PRICE BAR, YOU WILL GET SUPPORT & RESISISTANCE BAND . iF YOU PLACE IN PREVIOUS SWING POINT THEN YOU WILL GOT EARLY INFORMATION OF PRICE REVERSAL.

ENJOY

Indicator / Formula

Copy & Paste Friendly
dn = DateTime(); 
sd = SelectedValue( dn ); 

start = dn == sd; 

mp = (H+L)/2; 

PV = mp * V; 
CV = Cum( V ); 
VSS = CV - ValueWhen( start, CV ); 

denom = IIf( VSS == 0, 1, VSS ); 
num = Cum( PV ) - ValueWhen( start, Cum( PV ) ); 

M = IIf( BarsSince( start ), num/denom, mp ); 

Q1 = Param("Percentage Upper", 1, 0, 10, 0.01 ); 
Q2 = Param("Percentage Lower", 1, 0, 10, 0.01 ); 

Plot( C, Date() + " Close", colorBlack, styleBar ); 
Plot( M, "M" + _PARAM_VALUES(), colorBlue ); 
Plot( M * ( 1 + Q1 * 0.01 ), "Upper", colorGreen ); 
Plot( M * ( 1 - Q2 * 0.01 ),"Lower", colorRed );

3 comments

Leave Comment

Please login here to leave a comment.