通达信均线数浪及三角形(源码主图KT.金字塔)

 

首先感谢冷妞妞老师提供的两个原码.感谢注册111老师的帮助.我自己完成金子塔个人感觉还可以.发出来共享希望各位老师在优化.同时也感谢帮助和指导过我的老师和朋友祝福大家发财


X:=30;
 D:=60;
 M5:=EMA(C,X);
 M10:=EMA(C,D);
 T:=BARSLAST(CROSS(M5,M10));
 ST:=BARSLAST(CROSS(M10,M5));
 T1:=SUMBARS(T=0,2);
 T2:=SUMBARS(T=0,3);
 ST1:=SUMBARS(ST=0,2);
 ST2:=SUMBARS(ST=0,3);

 H1:=IF(CONST(M5)>CONST(M10),HHV(H,T+1),REF(HHV(H,T+1),ST));
 L1:=IF(CONST(M5)<CONST(M10),LLV(L,ST+1),REF(LLV(L,ST+1),T));
 H2:=IF(CONST(M5)>CONST(M10),REF(HHV(H,T+1),ST),REF(HHV(H,T+1),ST1-1));
 L2:=IF(CONST(M5)<CONST(M10),REF(LLV(L,ST+1),T),REF(LLV(L,ST+1),T1-1));
 H3:=IF(CONST(M5)>CONST(M10),REF(HHV(H,T+1),ST1-1),REF(HHV(H,T+1),ST2-1));
 L3:=IF(CONST(M5)<CONST(M10),REF(LLV(L,ST+1),T1-1),REF(LLV(L,ST+1),T2-1));
 TJ1:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(T2) AND CURRBARSCOUNT<=CONST(ST2)  AND L=CONST(L3);
 TJ2:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(ST1) AND CURRBARSCOUNT<=CONST(T2) AND H=CONST(H3);
 TJ3:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(T1) AND CURRBARSCOUNT<=CONST(ST1) AND L=CONST(L2);
 TJ4:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(ST) AND CURRBARSCOUNT<=CONST(T1) AND H=CONST(H2);
 TJ5:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(T)+1 AND CURRBARSCOUNT<=CONST(ST)+1 AND L=CONST(L1);
 TJ6:=CONST(M5)>CONST(M10)  AND H=CONST(H1) AND CURRBARSCOUNT<=CONST(ST2);
 TJ7:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(ST2) AND CURRBARSCOUNT<=CONST(T2) AND H=CONST(H3);
 TJ8:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(T1) AND CURRBARSCOUNT<=CONST(ST2) AND L=CONST(L3);
 TJ9:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(ST1) AND CURRBARSCOUNT<=CONST(T1) AND H=CONST(H2);
 TJ10:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(T) AND CURRBARSCOUNT<=CONST(ST1) AND L=CONST(L2);
 TJ11:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(ST)+1 AND CURRBARSCOUNT<=CONST(T)+1 AND H=CONST(H1);
 TJ12:=CONST(M5)<CONST(M10) AND L=CONST(L1)AND CURRBARSCOUNT<=CONST(T2);
 DRAWLINE(TJ1,L,TJ2,H,0),COLORMAGENTA;
 DRAWLINE(TJ2,H,TJ3,L,0),COLORMAGENTA;
 DRAWLINE(TJ3,L,TJ4,H,0),COLORMAGENTA;
 DRAWLINE(TJ4,H,TJ5,L,0),COLORMAGENTA;
 DRAWLINE(TJ5,L,TJ6,H,0),COLORMAGENTA;
 DRAWLINE(TJ7,H,TJ8,L,0),COLORGREEN;
 DRAWLINE(TJ8,L,TJ9,H,0),COLORGREEN;
 DRAWLINE(TJ9,H,TJ10,L,0),COLORGREEN;
 DRAWLINE(TJ10,L,TJ11,H,0),COLORGREEN;
 DRAWLINE(TJ11,H,TJ12,L,0),COLORGREEN;
 HH:=CONST(MAX(MAX(H1,H2),H3));
 LL:=CONST(MIN(MIN(L1,L2),L3));
 Z:=(HH-LL)/2+LL;
 DRAWLINE(TJ7,Z,ISLASTBAR,Z,0),COLORGREEN,DOTLINE;
 DRAWTEXT(TJ7,CONST(Z)*1.01,VARCAT(VARCAT('中区价位:',VAR2STR(CONST(Z),2)),'元')),COLORGREEN;
 HH1:=CONST(MAX(H1,MAX(H2,H3)));
 LL1:=CONST(MIN(MIN(L1,L2),L3));
 Z1:=(HH1-LL1)/2+LL1;
 DRAWLINE(TJ1,Z1,ISLASTBAR,Z1,0),COLORMAGENTA,DOTLINE;
 DRAWTEXT(TJ1,CONST(Z)*1.01,VARCAT(VARCAT('中区价位:',VAR2STR(CONST(Z1),2)),'元')),COLORMAGENTA;
 LT:=BARSLAST(L=LLV(L,120));
 CT:=CONST(LT)+1;
 HT:=FINDHIGHBARS(H,CT,CT,1);
 {HH:=FINDHIGH(H,CT,CT,1);
 LL:=CONST(REF(L,LT));}
 QD:=CURRBARSCOUNT=CT*2;
 ZD:=CURRBARSCOUNT=CT;
 DRAWLINE(QD,CONST(HH),ISLASTBAR,CONST(HH),0),COLORYELLOW;
 DRAWLINE(QD,CONST(HH),ZD,LL,0),COLORYELLOW;
 DRAWLINE(ZD,LL,ISLASTBAR,CONST(HH),0),COLORYELLOW;


 KT的


X:=30;
 D:=60;
 M5:=EMA(C,X);
 M10:=EMA(C,D);
 T:=BARSLAST(CROSS(M5,M10));
 ST:=BARSLAST(CROSS(M10,M5));
 T1:=SUMBARS(T=0,2);
 T2:=SUMBARS(T=0,3);
 ST1:=SUMBARS(ST=0,2);
 ST2:=SUMBARS(ST=0,3);
 H1:=IF(refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS),HHV(H,T+1),REF(HHV(H,T+1),ST));
 L1:=IF(refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS),LLV(L,ST+1),REF(LLV(L,ST+1),T));
 H2:=IF(refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS),REF(HHV(H,T+1),ST),REF(HHV(H,T+1),ST1-1));
 L2:=IF(refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS),REF(LLV(L,ST+1),T),REF(LLV(L,ST+1),T1-1));
 H3:=IF(refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS),REF(HHV(H,T+1),ST1-1),REF(HHV(H,T+1),ST2-1));
 L3:=IF(refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS),REF(LLV(L,ST+1),T1-1),REF(LLV(L,ST+1),T2-1));
 TJ1:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(T2,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(ST2,DATACOUNT-BARPOS)  AND L=refx(L3,DATACOUNT-BARPOS);
 TJ2:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(ST1,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(T2,DATACOUNT-BARPOS) AND H=refx(H3,DATACOUNT-BARPOS);
 TJ3:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(T1,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(ST1,DATACOUNT-BARPOS) AND L=refx(L2,DATACOUNT-BARPOS);
 TJ4:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(ST,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(T1,DATACOUNT-BARPOS) AND H=refx(H2,DATACOUNT-BARPOS);
 TJ5:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(T,DATACOUNT-BARPOS)+1 AND DATACOUNT-BARPOS+1<=refx(ST,DATACOUNT-BARPOS)+1 AND L=refx(L1,DATACOUNT-BARPOS);
 TJ6:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS)  AND H=refx(H1,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(ST2,DATACOUNT-BARPOS);
 TJ7:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(ST2,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(T2,DATACOUNT-BARPOS) AND H=refx(H3,DATACOUNT-BARPOS);
 TJ8:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(T1,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(ST2,DATACOUNT-BARPOS) AND L=refx(L3,DATACOUNT-BARPOS);
 TJ9:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(ST1,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(T1,DATACOUNT-BARPOS) AND H=refx(H2,DATACOUNT-BARPOS);
 TJ10:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(T,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(ST1,DATACOUNT-BARPOS) AND L=refx(L2,DATACOUNT-BARPOS);
 TJ11:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(ST,DATACOUNT-BARPOS)+1 AND DATACOUNT-BARPOS+1<=refx(T,DATACOUNT-BARPOS)+1 AND H=refx(H1,DATACOUNT-BARPOS);
 TJ12:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND L=refx(L1,DATACOUNT-BARPOS)AND DATACOUNT-BARPOS+1<=refx(T2,DATACOUNT-BARPOS);
 DRAWLINE(TJ1,L,TJ2,H,0),COLORMAGENTA;
 DRAWLINE(TJ2,H,TJ3,L,0),COLORMAGENTA;
 DRAWLINE(TJ3,L,TJ4,H,0),COLORMAGENTA;
 DRAWLINE(TJ4,H,TJ5,L,0),COLORMAGENTA;
 DRAWLINE(TJ5,L,TJ6,H,0),COLORMAGENTA;
 DRAWLINE(TJ7,H,TJ8,L,0),COLORGREEN;
 DRAWLINE(TJ8,L,TJ9,H,0),COLORGREEN;
 DRAWLINE(TJ9,H,TJ10,L,0),COLORGREEN;
 DRAWLINE(TJ10,L,TJ11,H,0),COLORGREEN;
 DRAWLINE(TJ11,H,TJ12,L,0),COLORGREEN;
 HH:=refx(MAX(MAX(H1,H2),H3),DATACOUNT-BARPOS);
 LL:=refx(MIN(MIN(L1,L2),L3),DATACOUNT-BARPOS);
 Z:=(HH-LL)/2+LL;
 DRAWLINE(TJ7,Z,ISLASTBAR,Z,0),COLORGREEN,LINEDOT;
 DRAWTEXT(TJ7,refx(Z,DATACOUNT-BARPOS)*1,'中区价位:'+NUMTOSTR(refx(Z,DATACOUNT-BARPOS),2)+'元'),COLORGREEN;
 HH1:=refx(MAX(H1,MAX(H2,H3)),DATACOUNT-BARPOS);
 LL1:=refx(MIN(MIN(L1,L2),L3),DATACOUNT-BARPOS);
 Z1:=(HH1-LL1)/2+LL1;
 DRAWLINE(TJ1,Z1,ISLASTBAR,Z1,0),COLORMAGENTA,LINEDOT;
 DRAWTEXT(TJ1,refx(Z1,DATACOUNT-BARPOS)*1,'中区价位:'+NUMTOSTR(refx(Z1,DATACOUNT-BARPOS),2)+'元'),COLORMAGENTA;
 LT:=BARSLAST(L=LLV(L,120));
 CT:=refx(LT,DATACOUNT-BARPOS)+1;
 HT:=FINDHIGHBARS(H,CT,CT,1);
 HH:=FINDHIGH(H,CT,CT,1);
 LL:=refx(REF(L,LT),DATACOUNT-BARPOS);
 QD:=DATACOUNT-BARPOS+1=CT*2;
 ZD:=DATACOUNT-BARPOS+1=CT;
 DRAWLINE(QD,refx(HH,DATACOUNT-BARPOS),ISLASTBAR,refx(HH,DATACOUNT-BARPOS),0),COLORYELLOW;
 DRAWLINE(QD,refx(HH,DATACOUNT-BARPOS),ZD,LL,0),COLORYELLOW;
 DRAWLINE(ZD,LL,ISLASTBAR,refx(HH,DATACOUNT-BARPOS),0),COLORYELLOW;
 AA:=EMA(C,5)>EMA(C,20);
 BB:=EMA(C,5)<EMA(C,20);
 CC:= EMA(C,5)>EMA(C,10);
 CC1:=EMA(C,5)<EMA(C,10);
 DD:=C<O;
 STICKLINE(AA,H,L,0,0),COLORRED;
 STICKLINE(AA,O,C,8,1),COLORRED;
 STICKLINE(AA AND DD,O,C,8,0),COLORRED;
 STICKLINE(BB,H,L,0,0),COLORGREEN;
 STICKLINE(BB,O,C,8,1),COLORGREEN;
 STICKLINE(BB AND DD,O,C,8,0),COLORGREEN;
 STICKLINE(BB AND CC,H,L,0,1),COLORWHITE;
 STICKLINE(BB AND CC,O,C,8,1),COLORWHITE;
 STICKLINE(BB AND CC AND DD,O,C,8,0),COLORWHITE;
 STICKLINE(AA AND CC1,H,L,0,0),COLORWHITE;
 STICKLINE(AA AND CC1,O,C,8,1),COLORWHITE;
 STICKLINE(AA AND CC1 AND DD,O,C,8,0),COLORWHITE;

 

金字塔


X:=30;
 D:=60;
 M5:=EMA(C,X);
 M10:=EMA(C,D);
 T:=BARSLAST(CROSS(M5,M10));
 ST:=BARSLAST(CROSS(M10,M5));
 T1:=SUMBARS(T=0,2);
 T2:=SUMBARS(T=0,3);
 ST1:=SUMBARS(ST=0,2);
 ST2:=SUMBARS(ST=0,3);
 H1:=IF(refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS),HHV(H,T+1),REF(HHV(H,T+1),ST));
 L1:=IF(refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS),LLV(L,ST+1),REF(LLV(L,ST+1),T));
 H2:=IF(refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS),REF(HHV(H,T+1),ST),REF(HHV(H,T+1),ST1-1));
 L2:=IF(refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS),REF(LLV(L,ST+1),T),REF(LLV(L,ST+1),T1-1));
 H3:=IF(refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS),REF(HHV(H,T+1),ST1-1),REF(HHV(H,T+1),ST2-1));
 L3:=IF(refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS),REF(LLV(L,ST+1),T1-1),REF(LLV(L,ST+1),T2-1));
 TJ1:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(T2,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(ST2,DATACOUNT-BARPOS)  AND L=refx(L3,DATACOUNT-BARPOS);
 TJ2:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(ST1,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(T2,DATACOUNT-BARPOS) AND H=refx(H3,DATACOUNT-BARPOS);
 TJ3:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(T1,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(ST1,DATACOUNT-BARPOS) AND L=refx(L2,DATACOUNT-BARPOS);
 TJ4:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(ST,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(T1,DATACOUNT-BARPOS) AND H=refx(H2,DATACOUNT-BARPOS);
 TJ5:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(T,DATACOUNT-BARPOS)+1 AND DATACOUNT-BARPOS+1<=refx(ST,DATACOUNT-BARPOS)+1 AND L=refx(L1,DATACOUNT-BARPOS);
 TJ6:=refx(M5,DATACOUNT-BARPOS)>refx(M10,DATACOUNT-BARPOS)  AND H=refx(H1,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(ST2,DATACOUNT-BARPOS);
 TJ7:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(ST2,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(T2,DATACOUNT-BARPOS) AND H=refx(H3,DATACOUNT-BARPOS);
 TJ8:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(T1,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(ST2,DATACOUNT-BARPOS) AND L=refx(L3,DATACOUNT-BARPOS);
 TJ9:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(ST1,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(T1,DATACOUNT-BARPOS) AND H=refx(H2,DATACOUNT-BARPOS);
 TJ10:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(T,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1<=refx(ST1,DATACOUNT-BARPOS) AND L=refx(L2,DATACOUNT-BARPOS);
 TJ11:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND DATACOUNT-BARPOS+1>=refx(ST,DATACOUNT-BARPOS)+1 AND DATACOUNT-BARPOS+1<=refx(T,DATACOUNT-BARPOS)+1 AND H=refx(H1,DATACOUNT-BARPOS);
 TJ12:=refx(M5,DATACOUNT-BARPOS)<refx(M10,DATACOUNT-BARPOS) AND L=refx(L1,DATACOUNT-BARPOS)AND DATACOUNT-BARPOS+1<=refx(T2,DATACOUNT-BARPOS);
 DRAWLINE(TJ1,L,TJ2,H,0),COLORMAGENTA;
 DRAWLINE(TJ2,H,TJ3,L,0),COLORMAGENTA;
 DRAWLINE(TJ3,L,TJ4,H,0),COLORMAGENTA;
 DRAWLINE(TJ4,H,TJ5,L,0),COLORMAGENTA;
 DRAWLINE(TJ5,L,TJ6,H,0),COLORMAGENTA;
 DRAWLINE(TJ7,H,TJ8,L,0),COLORGREEN;
 DRAWLINE(TJ8,L,TJ9,H,0),COLORGREEN;
 DRAWLINE(TJ9,H,TJ10,L,0),COLORGREEN;
 DRAWLINE(TJ10,L,TJ11,H,0),COLORGREEN;
 DRAWLINE(TJ11,H,TJ12,L,0),COLORGREEN;
 HH:=refx(MAX(MAX(H1,H2),H3),DATACOUNT-BARPOS);
 LL:=refx(MIN(MIN(L1,L2),L3),DATACOUNT-BARPOS);
 Z:=(HH-LL)/2+LL;
 DRAWLINE(TJ7,Z,ISLASTBAR,Z,0),COLORGREEN,LINEDOT;
 DRAWTEXT(TJ7,refx(Z,DATACOUNT-BARPOS)*1,'中区价位:'+NUMTOSTR(refx(Z,DATACOUNT-BARPOS),2)+'元'),COLORGREEN;
 HH1:=refx(MAX(H1,MAX(H2,H3)),DATACOUNT-BARPOS);
 LL1:=refx(MIN(MIN(L1,L2),L3),DATACOUNT-BARPOS);
 Z1:=(HH1-LL1)/2+LL1;
 DRAWLINE(TJ1,Z1,ISLASTBAR,Z1,0),COLORMAGENTA,LINEDOT;
 DRAWTEXT(TJ1,refx(Z1,DATACOUNT-BARPOS)*1,'中区价位:'+NUMTOSTR(refx(Z1,DATACOUNT-BARPOS),2)+'元'),COLORMAGENTA;
 HT:=BARSLAST(H=HHV(H,100));
 LT:=BARSLAST(L=LLV(L,100));
 CT:=refx(HT,DATACOUNT-BARPOS)+1;
 HH:=refx(REF(H,HT),DATACOUNT-BARPOS);
 LL:=refx(REF(L,LT),DATACOUNT-BARPOS);
 QD:=DATACOUNT-BARPOS-1=CT*2;
 ZD:=DATACOUNT-BARPOS-1=CT;
 DRAWLINE(QD,refx(HH,DATACOUNT-BARPOS),ISLASTBAR,refx(HH,DATACOUNT-BARPOS),0),COLORYELLOW;
 DRAWLINE(QD,refx(HH,DATACOUNT-BARPOS),ZD,LL,0),COLORYELLOW;
 DRAWLINE(ZD,LL,ISLASTBAR,refx(HH,DATACOUNT-BARPOS),0),COLORYELLOW;

 AA:=EMA(C,5)>EMA(C,20);
 BB:=EMA(C,5)<EMA(C,20);
 CC:= EMA(C,5)>EMA(C,10);
 CC1:=EMA(C,5)<EMA(C,10);
 DD:=C<O;
 STICKLINE(AA,H,L,0,0),COLORRED;
 STICKLINE(AA,O,C,9,1),COLORRED;
 STICKLINE(AA AND DD,O,C,9,0),COLORRED;
 STICKLINE(BB,H,L,0,0),COLORGREEN;
 STICKLINE(BB,O,C,9,1),COLORGREEN;
 STICKLINE(BB AND DD,O,C,9,0),COLORGREEN;
 STICKLINE(BB AND CC,H,L,0,1),COLORWHITE;
 STICKLINE(BB AND CC,O,C,9,1),COLORWHITE;
 STICKLINE(BB AND CC AND DD,O,C,9,0),COLORWHITE;
 STICKLINE(AA AND CC1,H,L,0,0),COLORWHITE;
 STICKLINE(AA AND CC1,O,C,9,1),COLORWHITE;
 STICKLINE(AA AND CC1 AND DD,O,C,9,0),COLORWHITE; 
 




来函数检测结果如下
该公式包含未来函数:DHIGH

解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

所属板块赋值:字符串相加
风格板块赋值:字符串相加
总股本赋值:字符串相加
流通盘赋值:字符串相加
全流通赋值:字符串相加
市值赋值:字符串相加
股本市值赋值:字符串相加
市盈率赋值:字符串相加
净资收益率赋值:字符串相加
主营利润率赋值:字符串相加
当前业绩赋值:字符串相加
当满足条件是否最后一个周期时,在横轴0.005纵轴0.02位置书写文字,画黄色
当满足条件是否最后一个周期时,在横轴0.005纵轴0.07位置书写文字,画黄色
当满足条件是否最后一个周期时,在横轴0.005纵轴0.12位置书写文字,画洋红色
当满足条件是否最后一个周期时,在横轴0.005纵轴0.17位置书写文字,画洋红色
JJ赋值:(收盘价+最高价+最低价)/3
A赋值:JJ的13日指数移动平均
B赋值:1日前的A
GSPT1赋值:收盘价的3日指数移动平均
GSPT2赋值:收盘价的8日指数移动平均
GSPT3赋值:GSPT2的13日指数移动平均
GSPT4赋值:GSPT2的55日指数移动平均
M2赋值:收盘价的8日指数移动平均
生命价线赋值:M2的13日指数移动平均,画绿色,线宽为4
MA5赋值:收盘价的5日简单移动平均,画白色,线宽为1
MA10赋值:收盘价的10日简单移动平均,画蓝色,线宽为3
MA20赋值:收盘价的20日指数移动平均
MA99赋值:收盘价的99日简单移动平均
MA120赋值:收盘价的120日简单移动平均
MA250赋值:收盘价的250日指数移动平均,画蓝色,线宽为3
GSPT11AQ赋值:(收盘价+最高价+最低价)/3
GSPT12AQ赋值:GSPT11AQ的14日指数移动平均
GSPT13AQ赋值:1日前的GSPT12AQ
GSPT14AQ赋值:GSPT11AQ的5日指数移动平均,画洋红色,线宽为4
输出
多空趋势彩带2:画带状线
输出
多空趋势彩带3:画带状线
输出
持股区域:当满足条件A>B时,在A和B位置之间画柱状线,宽度为2,0不为0则画空心柱.,画黄色
输出
持币区域:当满足条件A量价抄底赋值:收盘价的2日指数移动平均的2日指数移动平均的2日指数移动平均的2日指数移动平均,线宽为4,COLOR0000FF
价量抄底赋值:1日前的量价抄底的2日指数移动平均,线宽为2,COLOR00FFFF
价格反转赋值:GSPT14AQ上穿生命价线 AND 量价抄底>价量抄底 AND 收盘价>量价抄底
当满足条件价格反转时,在最低价*0.96位置书写文字,画黄色
当满足条件价格反转时,在开盘价和收盘价位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,画黄色
当满足条件价格反转时,在最低价位置画9号图标

指标安装下载帮助  |   联系我们  |  乐淘公式网  |  公式网   |  指标公式  |   加入收藏   |  设为主页

@2005-2025 浙ICP备2024071487号-1 乐淘公式网公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:乐淘公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图