COCO研究院

 找回密碼
 註冊
搜索
查看: 4019|回復: 4

各位大大,下面的指标如何改成AB的啊??

[複製鏈接]
發表於 11-8-12 13:26 | 顯示全部樓層 |閱讀模式
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,38);
VAR6:=HHV(VAR4,38);
VAR7:=IF(LLV(LOW,90),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
有庄的影子: STICKLINE(VAR8 AND DMI.MDI>50 AND CCI.CCI<-100,0,VAR8,3,1) , COLORFFAAFF;
趋势线: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 ,  COLORAABBDD;
见底信号:-20,COLORRED;
莫要错失机会:-25,COLORYELLOW;
砸锅卖田等着你:-30,COLORBLUE;
發表於 11-8-12 14:33 | 顯示全部樓層
AB 不支持 Unicode 中文字顯示不出來
 樓主| 發表於 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();
 樓主| 發表於 11-8-26 11:21 | 顯示全部樓層
上面为小弟自己写的代码,成功验证通过!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
發表於 12-1-28 18:15 | 顯示全部樓層
I am so curious on WHAT is the name for this indicator?
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|站長信箱|廣告洽詢|COCO研究院

GMT+8, 24-11-23 00:26

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 |