|
樓主 |
發表於 11-8-26 11:20
|
顯示全部樓層
_SECTION_BEGIN("%ZYNT");
SetChartOptions(0,0,chartGrid20|chartGrid80);
#include "D:\Program Files\AmiBroker\Formulas\Custom\SMA.afl"
N = Param("Range", 9, 2, 20, 1);
M1= Param("%K Period", 3, 1, 20, 1);
M2= Param("%D Period", 3, 1, 20, 1);
RSV= (Close - LLV(Low, N))/(HHV(High, N)- LLV(Low, N)) * 100;
K= EMA(RSV, M1);
D= EMA(K, M2);
J= 3 * K-2 * D;
var2=Ref(Low,-1);
var3=abs(Low-var2);
var4=Max((Low-var2),0);
var5=SMA(var3,3,1)/SMA(var4,3,1)*100;
var6=IIf(Close*1.2>0,var5,var5/10);
var7=EMA(var6,3);
var8=LLV(Low,38);
var9=HHV(var7,38);
var10=IIf(LLV(Low,90),1,0);
var11=IIf(Low<=var8,(var7+var9*2)/2,0)/618*var10;
var12=(Close-MA(Close,40))/MA(Close,40)*100;
Plot(var11 AND CCI(14)<-100 AND j<0, "ZYNT Histogram", ParamColor("Histogram color", colorBlack ), styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel, maskHistogram ) );
Plot(var12,"TREND",colorRed);
Plot(-20,"JIANDI",colorRed);
Plot(-25,"JIHUI",colorBlue);
Plot(-30,"QIANGA",colorBlue);
_SECTION_END(); |
|