通达信正版GS策略副图指标 源码分享 附图

BB0:=(MA(CLOSE,3)+MA(CLOSE,7)+MA(CLOSE,13)+MA(CLOSE,27))/4;
BB1:=EMA(CLOSE,5);
BB:=IF(BB0==DRAWNULL,BB1,BB0);
A0:=(H+L+2*O+6*C)/10;
TK:=(C<O OR (C<REF(H,1) AND C>O) OR (C>=O AND (H-C)>=(C-O) AND C/REF(C,1)<1.02) OR (C=O AND (H-C)>=(C-L) AND C/REF(C,1)<1.05));
TP:=((C>O AND C/REF(C,1)>0.94 ) OR (C>REF(L,1) AND C<O) OR (C<=O AND (C-L)>=(O-C) AND C/REF(C,1)>0.98) OR (C=O AND (C-L)>=(H-C) AND C/REF(C,1)>0.95));
C1:=CROSS(A0,BB) AND TK;
C2:=CROSS(BB,A0) AND TP;
A1:=IF(C1,BB*0.98,IF(C2,BB*1.02,A0));
C12:=CROSS(A1,BB) AND TK;
C22:=CROSS(BB,A1) AND TP;
A2:=IF(C12,BB*0.98,IF(C22,BB*1.02,A1));
C13:=CROSS(A2,BB) AND TK;
C23:=CROSS(BB,A2) AND TP;
A3:=IF(C13,BB*0.98,IF(C23,BB*1.02,A2));
C14:=CROSS(A3,BB) AND TK;
C24:=CROSS(BB,A3) AND TP;
A4:=IF(C14,BB*0.98,IF(C24,BB*1.02,A3));
C15:=CROSS(A4,BB) AND TK;
C25:=CROSS(BB,A4) AND TP;
A5:=IF(C15,BB*0.98,IF(C25,BB*1.02,A4));
C16:=CROSS(A5,BB) AND TK;
C26:=CROSS(BB,A5) AND TP;
A6:=IF(C16,BB*0.98,IF(C26,BB*1.02,A5));
C17:=CROSS(A6,BB) AND TK;
C27:=CROSS(BB,A6) AND TP;
A7:=IF(C17,BB*0.98,IF(C27,BB*1.02,A6));
C18:=CROSS(A7,BB) AND TK;
C28:=CROSS(BB,A7) AND TP;
A8:=IF(C18,BB*0.98,IF(C28,BB*1.02,A7));
C19:=CROSS(A8,BB) AND TK;
C29:=CROSS(BB,A8) AND TP;
A9:=IF(C19,BB*0.98,IF(C29,BB*1.02,A8));
C31:=CROSS(A9,BB) AND TK;
C41:=CROSS(BB,A9) AND TP;
A:=IF(C31,BB*0.98,IF(C41,BB*1.02,A9));

MAXS:=MAX(C,O);
MINS:=MIN(C,O);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
JA:=EMA(A,1);
JB:=EMA(A,5);
ZF:=(C/REF(C,1)-1)*100;
ZJ:=(A/BB-1)*100;

KK0:=CROSS(A,BB);
PP0:=CROSS(BB,A);
JZF:=(H-L)/L;
DRAWICON(KK0,L*0.998,1);
DRAWICON(PP0,H*(1+JZF/2),2);
K:=A>=BB;
P:=A<BB;
TCY:=K AND ((C>=REF(H,1) AND ((H-C)<(C-O)) OR ZF>=7) OR (C<REF(H,1) AND C<O AND ZF>-3 AND ZJ>=10));
TZK:=K AND NOT(TCY);
TKC:=P AND ((C<REF(L,1)) OR (C>REF(L,1)AND C>O AND ZF<3 AND ZJ<=-10));
TZD:=P AND NOT(TKC);
RBB:=(SUM(CLOSE,2)/3+SUM(CLOSE,6)/7+SUM(CLOSE,12)/13+SUM(CLOSE,26)/27);
RB1:=4*1.01-1540/2457;
RB2:=4*0.99-1540/2457;
AX1:=RBB/RB1;
AX2:=RBB/RB2;
AXX1:=IF(AX1>L,L*0.998,IF(AX1>BB,BB*0.998,AX1));
AXX2:=IF(AX1<H,H*1.002,IF(AX1<BB,BB*1.002,AX1));

STICKLINE(CLOSE>=OPEN AND K,OPEN,CLOSE,3.2,1),COLORRED;
STICKLINE(CLOSE<OPEN AND K,OPEN,CLOSE,3.2,0),COLORRED;

STICKLINE(CLOSE>=OPEN AND K,HIGH,CLOSE,0,1),COLORRED;
STICKLINE(CLOSE<OPEN AND K,HIGH,CLOSE,0,0),COLORRED;

STICKLINE(CLOSE>=OPEN AND K,LOW,OPEN,0,1),COLORRED;
STICKLINE(CLOSE<OPEN AND K,LOW,CLOSE,0,0),COLORRED;

STICKLINE(CLOSE<=OPEN AND P,OPEN,CLOSE,3.2,0),COLORGREEN;
STICKLINE(CLOSE>OPEN AND P,OPEN,CLOSE,3.2,1),COLORGREEN;

STICKLINE(CLOSE<OPEN AND P,HIGH,CLOSE,0,0),COLORGREEN;
STICKLINE(CLOSE>=OPEN AND P,HIGH,CLOSE,0,1),COLORGREEN;

STICKLINE(CLOSE<OPEN AND P,LOW,CLOSE,0,0),COLORGREEN;
STICKLINE(CLOSE>=OPEN AND P,LOW,OPEN,0,1),COLORGREEN;



来函数检测结果如下:
该公式没有未来函数


解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

BB0赋值:(收盘价的3日简单移动平均+收盘价的7日简单移动平均+收盘价的13日简单移动平均+收盘价的27日简单移动平均)/4
BB1赋值:收盘价的5日指数移动平均
如果BB0==DRAWNULL返回BB1否则返回BB0
A0赋值:(H+L+2*O+6*C)/10
TK赋值:(CO) OR (C>=O AND (H-C)>=(C-O) AND C/1日前的C<1.02) OR (C=O AND (H-C)>=(C-L) AND C/1日前的C<1.05))
TP赋值:((C>O AND C/1日前的C>0.94 ) OR (C>1日前的L AND C=(O-C) AND C/1日前的C>0.98) OR (C=O AND (C-L)>=(H-C) AND C/1日前的C>0.95))
C1赋值:A0上穿BB AND TK
C2赋值:BB上穿A0 AND TP
A1赋值:IF(C1,BB*0.98,IF(C2,BB*1.02,A0))
C12:=A1上穿BB AND TK
C22:=BB上穿A1 AND TP
A2赋值:IF(C12,BB*0.98,IF(C22,BB*1.02,A1))
C13:=A2上穿BB AND TK
C23:=BB上穿A2 AND TP
A3赋值:IF(C13,BB*0.98,IF(C23,BB*1.02,A2))
C14:=A3上穿BB AND TK
C24:=BB上穿A3 AND TP
A4赋值:IF(C14,BB*0.98,IF(C24,BB*1.02,A3))
C15:=A4上穿BB AND TK
C25:=BB上穿A4 AND TP
A5赋值:IF(C15,BB*0.98,IF(C25,BB*1.02,A4))
C16:=A5上穿BB AND TK
C26:=BB上穿A5 AND TP
A6赋值:IF(C16,BB*0.98,IF(C26,BB*1.02,A5))
C17:=A6上穿BB AND TK
C27:=BB上穿A6 AND TP
A7赋值:IF(C17,BB*0.98,IF(C27,BB*1.02,A6))
C18:=A7上穿BB AND TK
C28:=BB上穿A7 AND TP
A8赋值:IF(C18,BB*0.98,IF(C28,BB*1.02,A7))
C19:=A8上穿BB AND TK
C29:=BB上穿A8 AND TP
A9赋值:IF(C19,BB*0.98,IF(C29,BB*1.02,A8))
C31赋值:A9上穿BB AND TK
C41赋值:BB上穿A9 AND TP
A赋值:IF(C31,BB*0.98,IF(C41,BB*1.02,A9))
MAXS:=C和O较大值
MINS赋值:C和O的较小值
RSV赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
JA赋值:A的1日指数移动平均
JB赋值:A的5日指数移动平均
ZF赋值:(C/1日前的C-1)*100
ZJ赋值:(A/BB-1)*100
KK0赋值:A上穿BB
PP0赋值:BB上穿A
JZF赋值:(H-L)/L
当满足条件KK0时,在L*0.998和1之间画图标
DRAWICON(PP0,H*(1+JZF/2),2)
K赋值:A>=BB
P赋值:A TCY赋值:K AND ((C>=1日前的H AND ((H-C)<(C-O)) OR ZF>=7) OR (C<1日前的H AND C-3 AND ZJ>=10))
TZK赋值:K AND NOT(TCY)
TKC:=P AND ((C<1日前的L) OR (C>1日前的LAND C>O AND ZF<3 AND ZJ<=-10))
TZD赋值:P AND NOT(TKC)
RBB赋值:(2的收盘价日累和/3+6的收盘价日累和/7+12的收盘价日累和/13+26的收盘价日累和/27)
RB1赋值:4*1.01-1540/2457
RB2赋值:4*0.99-1540/2457
AX1:=RBB/RB1
AX2:=RBB/RB2
AXX1:=IF(AX1>L,L*0.998,IF(AX1>BB,BB*0.998,AX1))
AXX2:=IF(AX1当满足条件收盘价>=OPEN AND K时,在OPEN和收盘价之间画柱状线
当满足条件收盘价当满足条件收盘价>=OPEN AND K时,在最高价和收盘价之间画柱状线
当满足条件收盘价当满足条件收盘价>=OPEN AND K时,在最低价和OPEN之间画柱状线
当满足条件收盘价当满足条件收盘价<=OPEN AND P时,在OPEN和收盘价之间画柱状线
当满足条件收盘价>OPEN AND P时,在OPEN和收盘价之间画柱状线
当满足条件收盘价当满足条件收盘价>=OPEN AND P时,在最高价和收盘价之间画柱状线
当满足条件收盘价当满足条件收盘价>=OPEN AND P时,在最低价和OPEN之间画柱状线

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图