【股海明灯】主图中的加仓做选股_通达信财富破解版

在日线图中显示周均线

在日线图中显示周均线

炒股教程

编写条件:

编写方法:

 网友求助:

麻烦老师将【股海明灯】主图中的加仓做选股

源码如下

MA3:MA(C,5),COLOR000999;

MA10:MA(C,10),COLOR008364;

MA21:MA(C,21),COLORGRAY;

VAR1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

VAR2:=MA(VAR1,5);

VAR3:=MA(VAR1,10);

股海明灯: DRAWTEXT(FILTER(MA(VAR1,10)<VAR2,1),VAR3,'!'),COLORWHITE ;

空方敌机: DRAWTEXT(FILTER(MA(VAR1,10)>=VAR1,1),VAR3,'~'),COLORGREEN ;

X1:=(C+L+H)/3;

X2:=EMA(X1,6);

X3:=EMA(X2,5);

STICKLINE(X2>=X3,LOW,HIGH,0.1,1),COLORRED;

STICKLINE(X2>=X3,CLOSE,OPEN,3,1),COLORRED;

STICKLINE(X2<X3,LOW,HIGH,0.1,1),COLORGREEN;
STICKLINE(X2<X3,CLOSE,OPEN,3,1),COLORGREEN;

STICKLINE(CROSS(X2,X3),OPEN,CLOSE,4,0),COLORYELLOW;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,4,0),COLORBLUE;
VAR1A:=REF(CLOSE,1);
VAR2A:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
VAR3A:=(CLOSE-VAR1A)*VAR2A;
VAR4:=SUM(VAR3A,0);
VAR5:=SMA(VAR4,5,1);
VAR6:=SMA(VAR4,8,1);
OSC:=VAR5-VAR6;
OSCMA:=MA(OSC,4);
VD:=SUM(IF(OSC>0,OSC*1.003,OSC*1.003>0),34)/34;
VE:=SUM(IF(OSC<=0,OSC*0.97,OSC*0.97<0),34)/34;
VARW:=(C/REF(C,1)-1)*100<=4;
DRAWTEXT(CROSS(OSC,VD) AND VARW,L-0.1,'∧\N加仓'),COLORRED;
KOH:=L>REF(H,1);
KOL:=H<REF(L,1);
HIF:=L>REF(H,BARSLAST(KOH)+1);
NHIF:=L<=REF(H,BARSLAST(KOH)+1);
LIF:=H<REF(L,BARSLAST(KOL)+1);
NLIF:=H>=REF(L,BARSLAST(KOL)+1);
DRAWICON(HIF AND BARSLAST(KOH)<BARSLAST(NHIF) AND BARSLAST(HIF)<BARSLAST(NHIF),REF(H,BARSLAST(KOH)+1),1);
DRAWICON(LIF AND BARSLAST(KOL)<BARSLAST(NLIF) AND BARSLAST(LIF)<BARSLAST(NLIF),REF(L,BARSLAST(KOL)+1),2);
 

 
解答如下:
VAR1A:=REF(CLOSE,1);

VAR2A:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);

VAR3A:=(CLOSE-VAR1A)*VAR2A;

VAR4:=SUM(VAR3A,0);

VAR5:=SMA(VAR4,5,1);

VAR6:=SMA(VAR4,8,1);

OSC:=VAR5-VAR6;

VD:=SUM(IF(OSC>0,OSC*1.003,OSC*1.003>0),34)/34;

VARW:=(C/REF(C,1)-1)*100<=4;

CROSS(OSC,VD) AND VARW;

 

 

{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}炒股教程

活跃度排名

活跃度排名

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu