通达信散户操盘 (指标画线公式)
VAR1W:=IF(YEAR>=2005 AND MONTH>=11 AND DAY>=1,0,1);
QQ:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
WW:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
HY:=EMA(QQ,2);
DV:=EMA(WW,5);
VAR28:=MAX(EMA(QQ,2)-EMA(WW,5),0)*300;
VAR29:=EMA(VAR28,5);
SS:=EMA(VAR29,2);
风险系数:(VAR29-SS)/10*VAR1W,POINTDOT;
股海波浪:VAR29*VAR1W,STICK,COLORFF00FF;
STICKLINE(VAR29>REF(VAR29,1) AND VAR1W,VAR29,0,1,0),COLORFF0000;
STICKLINE(VAR29>REF(VAR29,1) AND VAR1W,VAR29,SS,2,0),COLORFF00FF;
STICKLINE(VAR29<REF(VAR29,1) AND VAR1W,0,VAR29,1,0),COLORFFFF00;
STICKLINE(VAR29<REF(VAR29,1) AND VAR1W,VAR29,SS,2,0),COLORFFFFFF;
KS:=(C-MA(C,13))/MA(C,13)*(-100);
金线:=EMA(KS/10+EMA(C,10),3);
DRAWICON(金线<=C AND VAR1W,0,12);
DRAWICON(金线>=C AND VAR1W,0,11);
升跌:=EMA((C/MA((2*C+H+L)/4,10)-1)*100,3);
DRAWICON(升跌>=0 AND VAR1W,100,9);
DRAWICON(升跌<=0 AND VAR1W,100,10);
KSA:=("1A0001$CLOSE"-MA("1A0001$CLOSE",13))/MA("1A0001$CLOSE",13)*(-100);
金线a:=EMA(KSA/10+EMA("1A0001$CLOSE",10),3);
买入精灵:IF(CROSS(HY,DV) AND VAR1W,8,0),COLORFFFF00;
卖出精灵:IF(CROSS(DV,HY) AND VAR1W,80,92),LINETHICK0,COLOR00FF00;
STICKLINE(卖出精灵=80,88,92,1,0),COLOR00FF00;
DRAWTEXT(卖出精灵=80,86,'☆'),ALIGN1,COLOR00FF00;
LB:=REF(C,1);
VAREA:=SMA(MAX(C-LB,0),6,1)/SMA(ABS(C-LB),6,1)*100;
STICKLINE(CROSS(84,VAREA) AND VAR1W,92,80,6,0),COLORFF0000;
DRAWICON(CROSS(84,VAREA) AND VAR1W,75,7);
RSI5:=SMA(MAX(C-LB,0),5,1)/SMA(ABS(C-LB),5,1)*100;
STICKLINE(CROSS(80,RSI5) AND VAR1W,92,80,6,0),COLORFF0000;
DRAWICON(CROSS(80,RSI5) AND VAR1W,75,7);
VAR2:=600*(EMA(C,3)-EMA(L,30))/EMA(L,30);
VAR3:=EMA(VAR2,2);
VAR4:=(WINNER(20*C/100)-WINNER(20*C/100))*100;
VAR5:=(-100)*(WINNER(20*C/100)-WINNER(20*C/100))+2;
STICKLINE(FILTER(VAR4+VAR5<7 AND CROSS(VAR3,VAR2) AND VAR2>50 AND VAR3>VAR4,8) AND VAR1W,92,80,6,0),COLORFF0000;
股价:=(C-LLV(L,360))/(HHV(H,360)-LLV(L,360))*80;
AA:=EMA(股价,3);
牛:=EMA(AA,3);
CB:=WINNER(C)*100;
CC:=EMA(CB,2);
AAA:=EMA(CC,3);
活筹指数:=AAA;
抄底a:=IF(活筹指数<0.8,20,0);
多杀多:=100*(1-WINNER(C))>99.8 AND V/CAPITAL*100<5 AND 100*(WINNER(1.1*C)-WINNER(0.9*C))<3.9;
超跌★:C>REF(C,1) AND REF(多杀多,1)>0 AND VAR1W,COLORFF00FF;
STICKLINE(C>REF(C,1) AND REF(多杀多,1)>0 AND VAR1W,0,5,5,0),COLORFF00FF;
DRAWICON(C>REF(C,1) AND REF(多杀多,1)>0 AND VAR1W,12,7);
DRAWTEXT(C>REF(C,1) AND REF(多杀多,1)>0 AND VAR1W,20,'★'),COLOR00FFFF;
AAL:=EMA(CC,5);
活筹指数L:=AAL;
STICKLINE(活筹指数L<1 AND 牛<1 AND VAR1W,10,0,6,0),COLORFFFFFF;
STICKLINE(活筹指数L>99,100 AND VAR1W,60,6,0),COLORFFFF00;
DRAWTEXT(活筹指数L<1 AND 牛<1 AND VAR1W,20,'★'),COLOR00FFFF;
VAR3B:=1;
VAR3C:=(H+L+C*2)/4*VAR3B;
VAR3D:=EMA(VAR3C,21);
VAR3E:=STD(VAR3C,21);
VAR3F:=((VAR3C-VAR3D)/VAR3E*100+200)/4*VAR3B;
VAR40:=(EMA(VAR3F,5)-25)*1.56*VAR3B;
VAR41:=EMA(VAR40,2)*1.22*VAR3B;
AJD:=EMA(VAR41,2)*VAR3B;
AJJ:=3*VAR41-2*AJD*VAR3B;
STICKLINE(AJJ>120 AND VAR1W,85,92,4,0),COLORFFFFFF;
0,LINETHICK2,COLORFF0000;
102,LINETHICK2,COLORFFFFFF;
92,LINETHICK2,COLORFFFFFF;
VAR1N:=1;
VAR2NA:=REF(C,1);
VAR3N:=SMA(MAX(C-VAR2NA,0),6,1)/SMA(ABS(C-VAR2NA),6,1)*100;
VAR4N:=(1+5*0.02)*C;
VAR5N:=(1-5*0.02)*C;
VAR6N:=100*(WINNER(VAR4N)-WINNER(VAR5N))*1;
建仓指标:=EMA(100-VAR6N,3)/1*VAR1N;
DRAWICON(建仓指标>85,0.2,6);
VAR1M:=IF(C>=HHV(C,10),10,0);
VAR2M:=IF(C>=HHV(C,30),10,0);
VAR3M:=IF(C>=HHV(C,60),10,0);
VAR4M:=COUNT(C>REF(C,1),10)*2;
VAR5M:=COUNT(V>REF(V,1) AND C>O,10)*2;
VAR6M:=IF(MA(C,5)>REF(MA(C,5),1),5,IF(MA(C,5)<REF(MA(C,5),1),-5,0));
VAR7M:=IF(MA(C,10)>REF(MA(C,10),1),10,IF(MA(C,10)<REF(MA(C,10),1),-10,0));
VAR8M:=IF(MA(C,20)>REF(MA(C,20),1),10,IF(MA(C,20)<REF(MA(C,20),1),-10,0));
VAR9M:=IF(MA(V,5)>MA(V,10),5,0);
评比分数:=VAR1M+VAR2M+VAR3M+VAR4M+VAR5M+VAR6M+VAR7M+VAR8M+VAR9M;
综合分数:=EMA(评比分数,2);
股价A:=(C-LLV(L,200.135))/(HHV(H,200.135)-LLV(L,200))*80;
ZY:=C/INDEXC*100;
ZY1:=EMA(ZY,3);
QQN:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
WWN:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
AN:=EMA(QQN,3);
BN:=EMA(WWN,10);
VARN:=EMA(AMOUNT,1)/EMA(V,1)/100;
AAN:=IF(DATE<1340501,DMA(AN,VARN),0);
BBN:=IF(DATE<1340501,DMA(BN,VARN),0);
VAR2N:=MAX(2*(AAN-BBN),0)*100;
资金流向值:EMA(VAR2N,2),STICK,COLORFF0000;
WWW:=资金流向值*AMOUNT/70*100/1000000;
VVV:=IF(CROSS(HY,DV),C,REF(C,BARSLAST(CROSS(HY,DV))));
VVM:=IF(CROSS(DV,HY),C,REF(C,BARSLAST(CROSS(DV,HY))));
持仓价格:=EMA(VVV,1);
空仓价格:=EMA(VVM,1);
持仓利润:=(C-持仓价格)/持仓价格*100;
空头利润:=(空仓价格-C)/C*100;
DRAWTEXT(C>0 AND BARSTATUS=2,70,'个股决策分析: '),ALIGN2,COLORFFFFFF;
DRAWTEXT(金线<=C AND BARSTATUS=2,60,'个股操作状态= 可操作区域 '),ALIGN2,COLORFFFF00;
DRAWTEXT(金线>=C AND BARSTATUS=2,60,'个股操作状态= 空仓区域 '),ALIGN2,COLORFFFF00;
DRAWTEXT(ZY1>REF(ZY1,1) AND BARSTATUS=2,50,'指数对比分析:强于大盘。 '),ALIGN2,COLOR0000FF;
DRAWTEXT(ZY1<REF(ZY1,1) AND BARSTATUS=2,50,'指数对比分析:弱于大盘。 '),ALIGN2,COLOR00FF00;
DRAWTEXT(ZY1=REF(ZY1,1) AND BARSTATUS=2,50,'指数对比分析:平衡大盘。 '),ALIGN2,COLOR00FFFF;
DRAWTEXT(综合分数>=40 AND 股价A>0.1 AND 股价A<25 AND BARSTATUS=2,40,'股票风险分析:初强势区域 '),ALIGN2,COLORFFFFFF;
DRAWTEXT(综合分数>=40 AND 股价A>25 AND 股价A<45 AND BARSTATUS=2,40,'股票风险分析:中强势区域 '),ALIGN2,COLORFFFFFF;
DRAWTEXT(综合分数>=40 AND 股价A>45 AND 股价A<60 AND BARSTATUS=2,40,'股票风险分析:中强势后期 '),ALIGN2,COLORFFFFFF;
DRAWTEXT(综合分数>=40 AND 股价A>=60 AND 股价A<=75 AND BARSTATUS=2,40,'股票风险分析:末强势区域 '),ALIGN2,COLORFFFFFF;
DRAWTEXT(综合分数>=40 AND 股价A>=75 AND 股价A<=90 AND BARSTATUS=2,40,'股票风险分析:末强势后期 '),ALIGN2,COLORFFFFFF;
DRAWTEXT(综合分数<0 AND 股价A>0.1 AND 股价A<5 AND BARSTATUS=2,40,'股票风险分析:超低位弱势 '),ALIGN2,COLOR00FF00;
DRAWTEXT(综合分数<0 AND 股价A>5 AND 股价A<25 AND BARSTATUS=2,40,'股票风险分析:低位弱势区 '),ALIGN2,COLOR00FF00;
DRAWTEXT(综合分数<0 AND 股价A>25 AND 股价A<60 AND BARSTATUS=2,40,'股票风险分析:中位弱势区 '),ALIGN2,COLOR00FF00;
DRAWTEXT(综合分数<0 AND 股价A>60 AND 股价A<90 AND BARSTATUS=2,40,'股票风险分析:高位弱势区 '),ALIGN2,COLOR00FF00;
DRAWTEXT(综合分数<40 AND 综合分数>0 AND 股价A>0.1 AND 股价A<5 AND BARSTATUS=2,40,'股票风险分析:超低位调整 '),ALIGN2,COLORFF00FF;
DRAWTEXT(综合分数<40 AND 综合分数>0 AND 股价A>5 AND 股价A<25 AND BARSTATUS=2,40,'股票风险分析:低位调整区 '),ALIGN2,COLORFF00FF;
DRAWTEXT(综合分数<40 AND 综合分数>0 AND 股价A>25 AND 股价A<55 AND BARSTATUS=2,40,'股票风险分析:中位调整区 '),ALIGN2,COLORFF00FF;
DRAWTEXT(综合分数<40 AND 综合分数>0 AND 股价A>55 AND 股价A<65 AND BARSTATUS=2,40,'股票风险分析:次高位调整 '),ALIGN2,COLORFF00FF;
DRAWTEXT(综合分数<40 AND 综合分数>0 AND 股价A>65 AND 股价A<90 AND BARSTATUS=2,40,'股票风险分析:高位调整区 '),ALIGN2,COLORFF00FF;
DRAWTEXT(WWW>REF(WWW,1) AND 资金流向值>0 AND BARSTATUS=2,30,'主力动向:资金流入↑'+NUMTOSTRN(WWW,1)+' '),ALIGN2,COLORFFFF00;
DRAWTEXT(WWW<REF(WWW,1) AND 资金流向值>0 AND BARSTATUS=2,30,'主力动向:资金流出↓'+NUMTOSTRN(WWW,1)+' '),ALIGN2,COLORFFFF00;
DRAWTEXT(WWW=0 AND BARSTATUS=2,30,'主力动向:资金流出='+NUMTOSTRN(WWW,1)+' '),ALIGN2,COLORFFFF00;
DRAWTEXT(C>0 AND BARSTATUS=2,80,'个股买卖分析:'),ALIGN2,COLORFFFFFF;
DRAWTEXT(空仓价格 AND HY<DV AND BARSTATUS=2,70,'卖出精灵 ▼ 空仓中'),ALIGN2,COLORFF00FF;
DRAWTEXT(持仓价格 AND HY>=DV AND BARSTATUS=2,70,'买入精灵 ▲ 持仓中'),ALIGN2,COLORFF00FF;
DRAWTEXT(持仓价格>0 AND HY>=DV AND BARSTATUS=2,60,'持仓价格:'+NUMTOSTRN(持仓价格,2)),ALIGN2,COLOR00FFFF;
DRAWTEXT(空仓价格>0 AND HY<=DV AND BARSTATUS=2,60,'空仓价格:'+NUMTOSTRN(空仓价格,2)),ALIGN2,COLOR00FFFF;
DRAWTEXT(C>0 AND BARSTATUS=2,50,'最新价格:'+NUMTOSTRN(C,2)),ALIGN2,COLORFFFF00;
DRAWTEXT(持仓利润>=0 AND HY>=DV AND BARSTATUS=2,40,'多头利润%:'+NUMTOSTRN(持仓利润,2)),ALIGN2,COLORFFFF00;
DRAWTEXT(持仓利润<0 AND HY>=DV AND BARSTATUS=2,40,'多头利润%:'+NUMTOSTRN(持仓利润,2)),ALIGN2,COLORFFFF00;
DRAWTEXT(持仓价格>0 AND HY>=DV AND BARSTATUS=2,30,'多头止赢位:'+NUMTOSTRN(持仓价格*1.13,2)),ALIGN2,COLORFFFF00;
DRAWTEXT(空头利润<=0 AND HY<DV AND BARSTATUS=2,40,'空头利润%:'+NUMTOSTRN(空头利润,2)),ALIGN2,COLORFFFF00;
DRAWTEXT(空头利润>0 AND HY<DV AND BARSTATUS=2,40,'空头利润%:'+NUMTOSTRN(空头利润,2)),ALIGN2,COLORFFFF00;
DRAWTEXT(空仓价格>0 AND HY<DV AND BARSTATUS=2,30,'空头回补位:'+NUMTOSTRN(空仓价格*0.87,2)),ALIGN2,COLORFFFF00;
DRAWTEXT(空仓价格>0 AND HY<DV AND BARSTATUS=2,20,'多头最后防线:'+NUMTOSTRN(空仓价格*0.965,2)),ALIGN2,COLOR0000FF;
DRAWTEXT(持仓价格>0 AND HY>=DV AND BARSTATUS=2,20,'空头最后防线:'+NUMTOSTRN(持仓价格*1.035,2)),ALIGN2,COLOR0000FF;
DRAWTEXT(活筹指数L<1 AND 牛<1 AND BARSTATUS=2,10,'股价超跌:关注'),ALIGN2,COLORFFFFFF;
DRAWTEXT(C>REF(C,1) AND REF(多杀多,1)>0 AND BARSTATUS=2,10,'股价超跌:有反弹要求'),ALIGN2,COLORFFFFFF;
DRAWTEXT(CROSS(84,VAREA) AND CROSS(80,RSI5) AND BARSTATUS=2,10,'股价偏高:注意减仓'),ALIGN2,COLORFFFFFF;
DRAWTEXT(FILTER(VAR4+VAR5<7 AND CROSS(VAR3,VAR2) AND VAR2>50 AND VAR3>VAR4,8) AND BARSTATUS=2,10,'股价偏高:注意减仓'),ALIGN2,COLORFFFFFF;
DRAWTEXT(AJJ>120 AND BARSTATUS=2,10,'股价偏高:注意减仓'),ALIGN2,COLORFFFFFF;
DRAWTEXT(建仓指标>85 AND BARSTATUS=2,10,'可以分批建仓'),ALIGN2,COLORFFFFFF;