当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:自用蜡烛图(同花顺公式 副图 源码测试图)
软件名称:[B]自用蜡烛图(同花顺公式 副图 源码测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:8.00 KB
官方主页:Home Page
更新时间:2022-06-13 00:12:43
软件简介:
自用蜡烛图
N:=26;
P:=20;
LIMIT:=35;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MIDD:=MA(CLOSE,N);
MID := IF(1<1180518,MIDD,0);
TREND:=IF(MID>REF(MID,1),1,0 ),LINETHICK0;
UPPER:= MID + P/10*STD(CLOSE,N);
LOWER:= MID - P/10*STD(CLOSE,N);
UP0:=MID+(UPPER-MID)*0.382;
UP1:IF(1 <1180518,UP0,0 );
DOWN:=MID-(MID-LOWER)*0.382;
DOWN1:IF(1 <1180518,DOWN,0 );
上涨市:= IF(MA5>MID AND MID>REF(MID,1),1,0);
DAY1:=COUNT(上涨市,26);
下跌市:= IF (MA5<MID AND TREND=0,1,0);
MID红:IF((MA5>MID AND TREND=1),MID,DRAWNULL),colorred;
MID绿:=IF((MA5<MID AND TREND=0),MID,DRAWNULL),colorgreen;
MID黄1:=IF((MA5>MID AND TREND=0),MID,DRAWNULL),coloryellow;
MID黄2:=IF((MA5<MID AND TREND=1),MID,DRAWNULL),coloryellow;
AA:=C/REF(C,1)>1.098;
STICKLINE(AA,C,O,3,1);
DIF:=(EMA(CLOSE,6)-EMA(CLOSE,13))*100;
DEA:=EMA(DIF,5);
MACD:=(DIF-DEA)*2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,3);
D:=SMA(K,9,3);
J:=3*K-2*D;
AAA:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);
金叉:=CROSS(DIF,DEA) AND CROSS(K,D);
强势1:=CLOSE*VOL;
强势2:=EMA((EXPMA(强势1,34)/EXPMA(VOL,34)+EXPMA(强势1,55)/EXPMA(VOL,55)+EXPMA(强势1,110)/EXPMA(VOL,110)+EXPMA(强势1,316)/EXPMA(VOL,316))/4,34);
强势3:=1.06*强势2;
强势4:=强势2*0.94;
强势5:=CROSS(C,强势3) OR CROSS(C,强势4);
爆发点1:=(CLOSE-REF(C,1))/REF(C,1)*100;
爆发点2:=CROSS(爆发点1,4) OR CROSS(爆发点1,4);
爆发点3:=CROSS((C/MA(C,20)-1),2.1*STD(C,20)/MA(C,20)) AND CROSS((C/MA(C,20)-1),1.3*STD(C,20)/MA(C,20));
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
TA1:=HHV(OBV,120);
TA2:=REF(TA1,1);
XGA:=OBV>TA2;
强势起爆:=强势5 AND 爆发点3 AND 爆发点2 AND C>O AND O/REF(C,1)<1.03 AND XGA ;
DRAWTEXT(强势起爆,O,'强爆'),COLORF00FF0;
MA5:=MA(C,5);
MA20:=MA(C,20);
STICKLINE(C>O,C,O,5,0),colorred;
STICKLINE(C>O,H,L,0,0),colorred;
STICKLINE(C<=O,C,O,5,0),colorgreen;
STICKLINE(C<=O,H,L,0,0),colorgreen;
DIF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIF,9);
MACD := 2*(DIF-DEA);
VOLIMIT:=MA(VOL,LIMIT);
脉冲量:=VOL>VOLIMIT AND CLOSE>OPEN;
量能簇:=EVERY(VOL>VOLIMIT AND CLOSE>OPEN,3);
HP:=IF (OPEN>CLOSE,OPEN,CLOSE);
黑心柱:=VOL>2*VOLIMIT AND ((CLOSE<OPEN) OR ((HIGH-HP)>0.5*(HIGH-LOW) AND (HIGH-LOW)/REF(CLOSE,1)> 0.05)) AND H> UPPER;
V00:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
V011:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);
V012:= REF(HIGH,2) > HIGH AND REF(LOW,2) > LOW AND REF(HIGH,2) > REF(HIGH,1) AND REF(LOW,2) < REF(LOW,1);
V11:= COUNT(V00,4)>=2 AND HHVBARS(HIGH,4) = 1 AND V011;
V12:= COUNT(V00,5)>=2 AND HHVBARS(HIGH,5) = 2 AND V012;
V13:= COUNT(V00,5)>=2 AND HHVBARS(HIGH,5) = 1 AND V011;
V14:= COUNT(V00,6)>=2 AND HHVBARS(HIGH,6) = 2 AND V012;
V001:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);
V01:= HIGH<REF(HIGH,1) AND LOW>REF(LOW,1);
V02:= HIGH>REF(HIGH,1) AND LOW<REF(LOW,1);
V03:= HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
V04:= REF(HIGH,2) < HIGH AND REF(LOW,2) < LOW AND REF(HIGH,2) > REF(HIGH,1) AND REF(LOW,2) < REF(LOW,1);
V1:= COUNT(V001,3)>=1 AND LLVBARS(LOW,3) = 1 AND V03;
V2:= COUNT(V001,4)>=1 AND LLVBARS(LOW,4) = 2 AND V04;
V3:= COUNT(V001,4)>=1 AND COUNT(V01 OR V02,4)=1 AND LLVBARS(LOW,4) = 1 AND V03;
V4:= COUNT(V001,5)>=1 AND COUNT(V01 OR V02,5)=2 AND LLVBARS(LOW,5) = 2 AND V04;
下分型:= V1 OR V2 OR V3 OR V4;
上分型:= V11 OR V12 OR V13 OR V14;
DRAWICON(黑心柱 AND REF(NOT(黑心柱),1) AND REF(NOT(黑心柱),2) AND REF(NOT(黑心柱),3),H,2),colorgreen;
上涨市B箭头0:=IF(上涨市=1 AND DIF>DEA AND 下分型 AND V> 1.2*REF(V,1) AND DAY1<20 AND C>OPEN,1,0);
DRAWICON(上涨市B箭头0 AND NOT(黑心柱) AND REF(NOT(上涨市B箭头0),2) AND REF(NOT(上涨市B箭头0),3) ,L,1),colorred;
X乾坤信号:=IF (上涨市=1 AND REF(NOT(上涨市),1),2,0),NODRAW;
V进攻信号:=IF (上涨市B箭头0=1,2,0),NODRAW;
DRAWICON(X乾坤信号=2,LOW,5);
[url=http://www.70822.com/soft/sort013/sort036/down-162821.html]自用蜡烛图(同花顺公式 副图 源码测试图)[/url]