一目均衡表代码
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
一目均衡表代码,可用于东方财富软件
1,
AA:=(HHV(HIGH,120)-LLV(LOW,120))/30;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
转换线:(HHV(HIGH,N1)+LLV(LOW,N1))/2,COLORRED,LINETHICK2;
基准线:(HHV(HIGH,N2)+LLV(LOW,N2))/2,colorff6dd8,LINETHICK3; 延迟线:REFX(CLOSE,N2-1),COLORGREEN,LINETHICK2;
云带A:=REF((转换线+基准线)/2,N2-1);
云带B:=REF((HHV(HIGH,N3)+LLV(LOW,N3))/2,N2-1),COLOR909090; STICKLINE(云带A<云带B,云带A,云带B,0.0,-1),COLOR339933; STICKLINE(云带A>=云带B,云带A,云带B,0.0,-1),COLOR0033CC; POLYLINE(1,云带A),COLORRED;
POLYLINE(1,云带B),COLORGRAY;
POLYLINE(1,基准线),COLORBLUE,LINETHICK3;
POLYLINE(1,转换线),COLORRED,LINETHICK2;
2,K线是立体的代码:
AA:=(HHV(HIGH,120)-LLV(LOW,120))/30;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
转换线:(HHV(HIGH,N1)+LLV(LOW,N1))/2,LINETHICK2;
基准线:(HHV(HIGH,N2)+LLV(LOW,N2))/2,colorff6dd8,LINETHICK3; 延迟线:REFX(CLOSE,N2-1),COLORGREEN,LINETHICK2;
云带A:=REF((转换线+基准线)/2,N2-1);
云带B:=REF((HHV(HIGH,N3)+LLV(LOW,N3))/2,N2-1),COLOR909090; STICKLINE(云带A<云带B,云带A,云带B,0.0,-1),COLOR339933; STICKLINE(云带A>=云带B,云带A,云带B,0.0,-1),COLOR0033CC; POLYLINE(1,云带A),COLORRED;
POLYLINE(1,云带B),COLORGRAY;
POLYLINE(1,基准线),COLORBLUE,LINETHICK3;
POLYLINE(1,转换线),COLORRED,LINETHICK2;
{阴柱}
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00; {红柱}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;
3,东方财富,幅图代码:
DRAWKLINE(REFX(HIGH,N2-1),REFX(OPEN,N2-1),REFX(LOW,N2-1),REFX(CLOSE,N 2-1));
AA:=(HHV(HIGH,120)-LLV(LOW,120))/30;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
A1:=(HHV(HIGH,N1)+LLV(LOW,N1))/2;
jzx:=(HHV(HIGH,N2)+LLV(LOW,N2))/2;
转换线:REFX(A1,N2-1),COLORRED,LINETHICK2;
基准线:REFX(jzx,N2-1),COLORBLUE,LINETHICK3;
延迟线:REFX(CLOSE,N3-2),COLORGREEN,LINETHICK2;
云带A:=(A1+jzx)/2;
云带B:=(HHV(HIGH,N3)+LLV(LOW,N3))/2,COLOR909090;
STICKLINE(云带A<云带B,云带A,云带B,0.0,-1),COLOR339933;
STICKLINE(云带A>=云带B,云带A,云带B,0.0,-1),COLOR0033CC; POLYLINE(1,云带A),COLORRED;
POLYLINE(1,云带B),COLORGRAY;
通达信软件,用的代码:
TENKAN0:=(HHV(H,K)+LLV(L,K))/2;
KIJUN0:=(HHV(H,J)+LLV(L,J))/2;
SENKOUA:(TENKAN0+KIJUN0)/2,COLORBLUE,LINETHICK3;
SENKOUB:(HHV(H,M)+LLV(L,M))/2,COLORWHITE,LINETHICK3;
DRAWBAND(SENKOUA,RGB(255,97,0),SENKOUB,RGB(0,224,224));
TENKAN:REFX(TENKAN0,J-1),COLORRED,LINETHICK2;
KIJUN:REFX(KIJUN0,J-1),COLORBLUE,LINETHICK3;
A1:=REFX(HIGH,J-1);
A2:=REFX(OPEN,J-1);
A3:=REFX(LOW,J-1);
A4:=REFX(CLOSE,J-1);
DRAWKLINE(A1,A2,A3,A4);