Skip to main content

Modified ichimoku indicator for Amibroker (AFL)

chatpurpose about 13 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 2)
  • Tags:
    amibroker

i have modified this ichimoku indicator slightly for better results.

Indicator / Formula

Copy & Paste Friendly
/*Sun & Cloud*/
/* Modified from Ichimoku chart by CC Chen*/
 
Long2 = EMA(Close,7);
Long1 = EMA(Close,6);
Long3 = OBV();
Long4 = Ref(OBV(),-2);
K=(H+2*C+L)/4;
Z=  ( HHV( H, 3 ) + LLV( L, 3) )/2 ;
SP=IIf(K>=Z*1.05,1.10*Z,IIf(K<Z*1.05 AND K>=Z,1.0*Z,IIf(K<Z,0.9*Z,0.9*Z)));
M=IIf(Long1>long2,Long2,Long1);
 
MaxGraph = 5;
Graph0=M;
Graph1 = SP;
Graph2=Z;
Graph3=Long2;
Graph4=Long1;
 
Graph0Style=6;
Graph1Style =8;
Graph2Style=4;
Graph3Style=6;
Graph4Style=6;
 
Graph0Color=20;
Graph1Color=3;
Graph2Color=5;
Graph3Color=2;
Graph4Color=8;
 
Title=Name() + "{Sun&Cloud} : "+WriteIf(Long1>long2 AND Long3>Long4,"AGNI","COMET");
 

1 comments

Leave Comment

Please login here to leave a comment.