当前位置:分析家公式网 → 股票公式 → 文华公式 → 一键转帖:多空双趋势,文华主图 源码分享(文华公式 主图 源码 测试图)
软件名称:[B]多空双趋势,文华主图 源码分享(文华公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:3.00 KB
官方主页:Home Page
更新时间:2020-06-14 12:39:19
软件简介:
多空双趋势
SJ:=1;
//成本:(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4,COLORMAGENTA,LINETHICK2;
VAR1:=EMA(CLOSE,15)*SJ;
VAR2:=EMA(CLOSE,60)*SJ;
//红多:(CLOSE*SJ-VAR1*SJ)*2/(15+1)+VAR1,LINETHICK1, COLORRED;
VAR3:=(CLOSE*SJ-VAR2*SJ)*2/(60+1)+VAR2;
//绿空:IF(红多*SJ>VAR3,VAR3*SJ,红多*SJ),LINETHICK1, COLORGREEN;
生命线:VAR3*SJ,LINETHICK2, COLORYELLOW;
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IFELSE(HX<REF(HX,1)&&HX<REF(HX,2)&&HX<REF(HX,4)&&LX<REF(LX,1)&&LX<REF(LX,3)&&LX<REF(LX,5)&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IFELSE(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX>REF(HX,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,H2,L2);
G1:=VALUEWHEN(ISLASTBAR,G);
TMP:=K2;
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
DRAWLINE(W1=1,HIGH,W1=1,HT,COLORCYAN);
DRAWLINE(W1=1,LOW,W1=1,LT,COLORCYAN);
DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED);
DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED);
STICKLINE(W1>0,OPEN,CLOSE,COLORCYAN,1);
STICKLINE(W1<=0,OPEN,CLOSE,COLORRED,1);
STICKLINE(W2>0&&W1<=0,OPEN,CLOSE,COLORRED,0);
STICKLINE(W2>0&&W1>0,OPEN,CLOSE,COLORCYAN,0);
A:=EMA2(HIGH,30);
B:=EMA2(LOW,30);
A1:=EMA2(HIGH,150),LINETHICK2;
B1:=EMA2(LOW,150);
S1:=CROSS(CLOSE,EMA2(HIGH,150));
X1:=CROSS(EMA2(LOW,150),CLOSE);
WS1:=BARSLAST(S1)+1;
WX1:=BARSLAST(X1)+1;
SS1:=CROSS(SUM(S1,WX1),0.5);
XX1:=CROSS(SUM(X1,WS1),0.5);
S:=CROSS(CLOSE,EMA2(HIGH,30));
X:=CROSS(EMA2(LOW,30),CLOSE),LINETHICK2;
WS:=BARSLAST(S)+1,LINETHICK2;
WX:=BARSLAST(X)+1,LINETHICK2;
SS:=CROSS(SUM(S,WX),0.5);
XX:=CROSS(SUM(X,WS),0.5);
STICKLINE(CLOSE>EMA2(HIGH*SJ,150),EMA2(HIGH*SJ,150),EMA2(LOW*SJ,150),COLORRED,1);
STICKLINE(CLOSE<EMA2(LOW*SJ,150),EMA2(LOW*SJ,150),EMA2(HIGH*SJ,150),COLORBLUE,1);
PARTLINE(CLOSE>EMA2(HIGH,150),EMA2(HIGH,150),COLORRED);
PARTLINE(CLOSE<EMA2(HIGH,150),EMA2(HIGH,150),COLORBLUE);
PARTLINE(CLOSE>EMA2(LOW,150),EMA2(LOW,150),COLORRED);
PARTLINE(CLOSE<EMA2(LOW,150),EMA2(LOW,150),COLORBLUE);
[url=http://www.70822.com/soft/sort013/sort049/down-148477.html]多空双趋势,文华主图 源码分享(文华公式 主图 源码 测试图)[/url]