通達信主題主圖波段買賣指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 主圖
- 日期:2023-04-21 來源:互聯網
通達信主題主圖波段買賣指標公式:
STICKLINE( MA(CLOSE,6)>MA(CLOSE,33),MA(CLOSE,6),MA(CLOSE,33),6,0),COLOR000088;
STICKLINE( MA(CLOSE,6)<MA(CLOSE,30),MA(CLOSE,6),MA(CLOSE,30),6,0),COLOR008800;
DRAWKLINE(H,O,L,C);
網1:EXPMA(CLOSE,5),COLORWHITE;
網2:EXPMA(CLOSE,12),COLORGRAY;
網3:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;
IF(網3<REF(網3,1),網3,DRAWNULL),COLOR00FF00,LINETHICK3;
IF(網3<REF(網1,1),網1,DRAWNULL),COLORWHITE,LINETHICK1;
IF(網1<REF(網3,1),網1,DRAWNULL),COLORGREEN,LINETHICK1;
日:=50;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
L1:=低1+(高1-低1)*1.191;
L2:=低1+(高1-低1)*1.382;
L3:=低1+(高1-低1)*1.5;
L4:=低1+(高1-低1)*1.618;
L5:=低1+(高1-低1)*1.809;
短壓:REFDATE(高1,DATE),COLORGREEN,LINETHICK1;
支撐19。1%:REFDATE(H1,DATE),COLORYELLOW;
支撐38。2%:REFDATE(H2,DATE),COLORMAGENTA;
支撐50%:REFDATE(H3,DATE),COLORLIGRAY;
支撐61。8%:REFDATE(H4,DATE),COLORWHITE,LINETHICK1;
支撐80。9%:REFDATE(H5,DATE),COLORWHITE;
低:REFDATE(低1,DATE),COLORWHITE;
阻力119。1%:REFDATE(L1,DATE),COLORYELLOW;
阻力138。2%:REFDATE(L2,DATE),COLORMAGENTA;
阻力150%:REFDATE(L3,DATE),COLORLIGRAY;
阻力161。8%:REFDATE(L4,DATE),COLORRED;
阻力180。9%:REFDATE(L5,DATE),COLORWHITE;
{提示}
DRAWTEXT(ISLASTBAR,短壓,'短壓'),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,低,低,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,短壓,短壓,1000,-1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1,支撐19。1%,支撐19。1%,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,支撐38。2%,支撐38。2%,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,支撐50%,支撐50%,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,支撐61。8%,支撐61。8%,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,支撐80。9%,支撐80。9%,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,阻力119。1%,阻力119。1%,1000,-1),COLORYELLOW;
{三線金叉顯示錢袋子的源碼}
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIFF1,9);
MACDD:=CROSS(DIFF1,DEA1);
均線1:=CROSS(MA(C,5),MA(C,10));
量線1:=CROSS(MA(V,5),MA(V,10));
DRAWICON(MACDD AND 均線1 AND 量線1,L-0.20,25);{同時金叉顯示25號圖標};
DRAWICON( 均線1 AND 量線1,L-0.20,1);
DRAWTEXT(量線1,L-0.25,'網量'),COLORYELLOW;
{趨勢判斷}
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,7);
B:=REF(A,1);
STICKLINE(A>B,A,B,2,0),COLORYELLOW;
STICKLINE(A<B,A,B,2,0),COLORGREEN;
DRAWTEXT_FIX(1,0.00,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.06,0,EXTERNSTR(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.12,0,EXTERNSTR(0,2))COLORFF00FF;
DRAWTEXT_FIX(1,0.00,0.18,0,EXTERNSTR(0,3))COLORFF88FF;
DRAWTEXT_FIX(1,0.00,0.24,0,EXTERNSTR(0,5)),COLORLICYAN;
通達信主題主圖波段買賣指標公式實例圖解:
通達信主題主圖波段買賣指標公式