混沌操作法 指标
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
全套混沌操作法指标公式源码
Var1:=BACKSET(ref(HIGH,2)=HHV(HIGH,5),3);
Var2:=CROSS(Var1,0.9);
Var3:=BACKSET(ref(LOW,2)=LLV(LOW,5),3);
Var4:=CROSS(Var3,0.9);
STICKLINE(Var2,HIGH,HIGH*1.01,5,0),Color00E40E;
STICKLINE(Var4,LOW,LOW*0.99,5,0),Color00E40E;
Var5:=IF(Var2,HIGH,IF(Var4,LOW,0));
POLYLINE(Var5,Var5),Colorff00ff;
Var6:=BACKSET(ref(HIGH,2)=HHV(HIGH,5) AND LOWVar7:=BACKSET(ref(HIGH,2)=HHV(HIGH,5) AND LOW>ref(LOW,1) AND HIGH>ref(HIGH,1),3);
Var8:=BACKSET(ref(HIGH,2)=HHV(HIGH,5) AND HIGHref(LOW,1)
AND ref(LOW,1)>ref(LOW,2) AND ref(HIGH,1)Var9:=BACKSET(ref(LOW,2)=LLV(LOW,5) AND LOW>ref(LOW,1) AND HIGH>ref(HIGH,1),3);
VarA:=BACKSET(ref(LOW,2)=LLV(LOW,5) AND LOWVarB:=BACKSET(ref(LOW,2)=LLV(LOW,5) AND HIGHref(LOW,1)
AND ref(LOW,1)>ref(LOW,2) AND ref(HIGH,1)坚定: STICKLINE(CROSS(Var6,0.9),HIGH,HIGH*1.01,5,0),Color0000FF;
STICKLINE(CROSS(Var9,0.9),LOW,LOW*0.99,5,0),Color0000FF;
犹豫: STICKLINE(CROSS(Var7,0.9),HIGH,HIGH*1.01,5,0),Color00E5E9;
STICKLINE(CROSS(VarA,0.9),LOW,LOW*0.99,5,0),Color00E5E9;
等待: STICKLINE(CROSS(Var8,0.9),HIGH,HIGH*1.01,5,0),ColorFF4100;
STICKLINE(CROSS(VarB,0.9),LOW,LOW*0.99,5,0),ColorFF4100;
压力: ref(HIGH,BARSLAST(Var2)), POINTDOT,ColorEA91B5;
STICKLINE(CLOSE,ref(HIGH,BARSLAST(Var2)),ref(HIGH,BARSLAST(Var2)),5,0),ColorEA91B5;
支撑: ref(LOW,BARSLAST(Var4)), POINTDOT,Color3791B5;
STICKLINE(CLOSE,ref(LOW,BARSLAST(Var4)),ref(LOW,BARSLAST(Var4)),5,0),Color3791B5;
现价:CLOSE,POINTDOT,Color000F89;
MFI公式源码:
参数名:N 14 2 300
TYP := (HIGH + LOW + CLOSE)/3;
SUM(IF(TYP>ref(TYP,1),TYP*VOL,0),N)/SUM(IF(TYP
5/34/5 MACD公式源码:
MA(c,5)-MA(c,34) COLORSTICK ;
MA(MA(c,5)-MA(c,34),5);
s:=EMA((MA(c,5)-MA(c,34)),3);
s1:=s0;
s2:=s
STICKLINE(s>=0,0,s,8,1),COLORRED;
STICKLINE(s1,0,s,5,0),COLOR00ffff;
STICKLINE(s2,0,s,4,0),COLORffffff;
四种视窗指标公式源码:
MFI:(H-L)*100000/V;
MA5:MA(MFI,5);
A1:MFI>=ref(MFI,1)*1.1 AND V>=ref(V,1)*1.1;
A2:MFI<=ref(MFI,1)*0.9 AND V<=ref(V,1)*0.9;
A3:MFI>=ref(MFI,1)*1.1 AND V<=ref(V,1)*0.9;
A4:MFI<=ref(MFI,1)*0.9 AND V>=ref(V,1)*1.1;
DRAWTEXT(A2,4,'衰退'),linethick3;
DRAWTEXT(A1,1,'绿灯'),linethick3;
DRAWTEXT(A3,3,'伪装'),linethick3;
DRAWTEXT(A4,2,'蛰伏'),linethick3;
0.1
鳄鱼线指标公式源码:
Var1:=(H+L)/2;
上唇:ref(SMA(Var1,5,1),3),COLORGREEN;
牙齿:ref(SMA(Var1,8,1),5),COLORRED;
下颚:ref(SMA(Var1,13,1),8),COLORBLUE;
颚鱼分形指标公式源码:
Var1:=(H+L)/2;
上唇:ref(SMA(Var1,5,1),3),COLORGREEN;
牙齿:ref(SMA(Var1,8,1),5),COLORRED;
下颚:ref(SMA(Var1,13,1),8),COLORBLUE;
Var1:=BACKSET(ref(HIGH,2)=HHV(HIGH,5),3);
Va
r2:=CROSS(Var1,0.9);
Var3:=BACKSET(ref(LOW,2)=LLV(LOW,5),3);
Var4:=CROSS(Var3,0.9);
drawicon(Var2,HIGH*1.01,4),Color00E40E;
drawicon(Var4,LOW*0.99,5),Color00E40E;
Var5:=IF(Var2,HIGH,IF(Var4,LOW,0));
{POLYLINE(Var5,Var5),Colorff00ff;}
Var6:=BACKSET(ref(HIGH,2)=HHV(HIGH,5) AND LOWVar7:=BACKSET(ref(HIGH,2)=HHV(HIGH,5) AND LOW>ref(LOW,1) AND HIGH>ref(HIGH,1),3);
Var8:=BACKSET(ref(HIGH,2)=HHV(HIGH,5) AND HIGHref(LOW,1)
AND ref(LOW,1)>ref(LOW,2) AND ref(HIGH,1)Var9:=BACKSET(ref(LOW,2)=LLV(LOW,5) AND LOW>ref(LOW,1) AND HIGH>ref(HIGH,1),3); {文章来至程序化交易网 }
VarA:=BACKSET(ref(LOW,2)=LLV(LOW,5) AND LOWVarB:=BACKSET(ref(LOW,2)=LLV(LOW,5) AND HIGHref(LOW,1)
AND ref(LOW,1)>ref(LOW,2) AND ref(HIGH,1)
上向分形: ref(HIGH,BARSLAST(Var2)), POINTDOT,ColorEA91B5;
STICKLINE(CLOSE,ref(HIGH,BARSLAST(Var2)),ref(HIGH,BARSLAST(Var2)),5,0),COLORMAGENTA;
向下分形: ref(LOW,BARSLAST(Var4)), POINTDOT,Color3791B5;
STICKLINE(CLOSE,ref(LOW,BARSLAST(Var4)),ref(LOW,BARSLAST(Var4)),5,0),COLORYELLOW;
AO指标公式源码:
Var1:=(H+L)/2;
AO:SMA(Var1,5,1)-SMA(Var1,34,1),COLOR6699CC;
STICKLINE(AO>=ref(AO,1),0,AO,6,1),COLORRED;
STICKLINE(AO<=ref(AO,1),0,AO,6,1),COLORGREEN;
AO,COLOR000000;
AC指标公式源码:
Var1:=(H+L)/2;
AO:=SMA(Var1,5,1)-SMA(Var1,34,1);
AC:SMA((AO-SMA(AO,5,1)),5,1),COLOR6699CC;
STICKLINE(AC>=ref(AC,1),0,AC,6,1),COLORRED;
STICKLINE(AC<=ref(AC,1),0,AC,6,1),COLORGREEN;
AC,COLOR000000;
区域指标公式源码:
Var1:=(H+L)/2;
AO:=SMA(Var1,5,1)-SMA(Var1,34,1);
AC:=SMA((AO-SMA(AO,5,1)),5,1);
AO>ref(AO,1) AND AC>ref(AC,1),COLORRED;
AOAO>ref(AO,1) AND ACAOref(AC,1),COLORGRAY;
OSC指标公式源码:
参数名:SHORT 5 1 999
LONG 35 1 999
MA1:=MA((HIGH+LOW)/2,SHORT);
MA2:=MA((HIGH+LOW)/2,LONG);
MA1-MA2,STICK,COLORgreen;
OSCMACD指标公式源码:
参数名:LONG 35 1 999
SHORT 5 1 999
OSC: (MA(CLOSE,SHORT)-MA(CLOSE,LONG))/MA(CLOSE,SHORT)*100, COLORSTICK;
OSCMACD: MA(OSC,5);