通达信大胆持股主图指标公式
2020/5/6 18:46:05
趋势线:EMA(SLOPE(CLOSE,21)*20+CLOSE,55)*1,LINETHICK2,COLORCYAN;
股价线:EMA(CLOSE,3),POINTDOT,LINETHICK1,COLORWHITE;
DRAWTEXT(CROSS(趋势线,股价线),趋势线,'▼卖出'),LINETHICK1,COLORGREEN;
DRAWTEXT(CROSS(股价线,趋势线),股价线,'▲买入'),LINETHICK1,COLORRED;
STICKLINE(股价线>趋势线 AND C<O,H,L,0,0),COLORYELLOW;
STICKLINE(股价线>趋势线 AND C<O,O,C,3,1),COLORYELLOW;
STICKLINE(股价线>趋势线 AND C>=O,H,L,0,0),COLORYELLOW;
STICKLINE(股价线>趋势线 AND C>=O ,O,C,3,0),COLORYELLOW;
STICKLINE(股价线<=趋势线 AND C>O,H,L,0,0),COLORBLUE;
STICKLINE(股价线<=趋势线 AND C>O,O,C,3,1),COLORBLUE;
STICKLINE(股价线<=趋势线 AND C<=O ,H,L,0,0),COLORBLUE ;
STICKLINE(股价线<=趋势线 AND C<=O,O,C,3,0),COLORBLUE ;
DRAWTEXT(趋势线<股价线 AND ISLASTBAR,趋势线,'黄色,大胆持股'),COLORYELLOW;
DRAWTEXT(趋势线>=股价线 AND ISLASTBAR,趋势线,'蓝色,别犯贱'),COLORBLUE ;
多方强度:EMA(CLOSE,3),COLOR00FFFF,LINETHICK1;
空方强度:EMA(CLOSE,8),COLORMAGENTA,LINETHICK1;
多空平衡:EMA(CLOSE,17),COLORRED,LINETHICK2;
洗盘线:EMA(CLOSE,27),,COLOR0080FF,LINETHICK1;
IF(多方强度>REF(多方强度,1),多方强度,DRAWNULL),COLOR00FFFF,LINETHICK1;
IF(多方强度<REF(多方强度,1),多方强度,DRAWNULL),COLORFFFFFF,LINETHICK1;
IF(空方强度>REF(空方强度,1),空方强度,DRAWNULL),COLORMAGENTA,LINETHICK1;
IF(空方强度<REF(空方强度,1),空方强度,DRAWNULL),COLORGREEN,LINETHICK1;
IF(多空平衡>REF(多空平衡,1),多空平衡,DRAWNULL),COLORRED,LINETHICK2;
IF(多空平衡<REF(多空平衡,1),多空平衡,DRAWNULL),COLORBLUE ,LINETHICK2;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.1,7);
DRAWICON(SEL,H+0.1,8);
DRAWICON(CROSS(多方强度,空方强度),空方强度,1);
DRAWICON(CROSS(空方强度,多方强度),空方强度,2);
{DRAWTEXT(CROSS(多方强度,空方强度),空方强度,'买入'),ALIGN0,COLORRED;
DRAWTEXT(CROSS(多方强度,空方强度),空方强度,''),ALIGN0,COLORFFFFFF;
DRAWTEXT(CROSS(空方强度,多方强度),空方强度,'短卖'),ALIGN0,COLOR00FFFF;
DRAWTEXT(CROSS(空方强度,多方强度),空方强度,''),ALIGN0,COLOR00FFFF;}
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH,'逃顶'),COLORGREEN;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VV:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,V);
N:=120;
A:=CONST(HHV(H,N)-LLV(L,N))/CONST(HHV(VV,N));
B:=CONST(LLV(L,N))-CONST(HHV(VV,N))*A/8;
天数:=10;
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),B+VV*A/8,B,-1,-1),COLOR00C0C0;
STICKLINE(C>=O AND CURRBARSCOUNT<=天数,B+VV*A/8,B,3,1),COLOR3232FF;
STICKLINE(C<O AND CURRBARSCOUNT<=天数,B+VV*A/8,B,3,0),COLORFFFF54;
看股 吧公式 www.kangub a.com
其它股票公式列表