博弈长阳副图指标公式[通达信公式]
相关标签: 超级大黑马通达信指标 、 2020通达信手机版指标 、 天下最准的通达信指标 、 资金博弈线数字详解 、 资金博弈四条线公式 、 通达信资金博弈指标源码 、 通达信资金博弈副图指标 、 资金博弈指标公式源码 、 通达信各路资金博弈指标 、 资金博弈四条线指标源码 、 通达信资金博弈免费版 、 通达信资金博弈公式 、
原理解析:
源码:
LC:=REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORWHITE,LINETHICK1;
RSI2:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
WR反向:=(0-WR)-100,COLORYELLOW;
RSI买点:=RSI<20 AND RSI>REF(RSI,1);
WR反向买点:=WR反向>-80 AND WR反向<REF(WR反向,1);
STICKLINE(RSI买点 AND WR反向买点,0,55,2,1),COLORYELLOW;
DRAWTEXT(RSI买点 AND WR反向买点,60,'队长'),COLORYELLOW;
IF(RSI>=50 AND RSI<=90,RSI,DRAWNULL),LINETHICK2,COLORRED;
IF(RSI<=20,RSI,DRAWNULL),LINETHICK2,COLORYELLOW;
IF(RSI>=90,RSI,DRAWNULL),LINETHICK2,COLORGREEN;
T0:=BARSCOUNT(CLOSE)>12;
T1:=CLOSE=LLV(CLOSE,12);
T2:=RSI>LLV(RSI,12);
T3:=RSI<21;
TRSI:=T0 AND T1 AND T2 AND T3 AND CLOSE/HHV(CLOSE,120)<0.7;
RSI成W底:=REF(TRSI,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(RSI成W底,80,0,1,0),COLOR0000FF;
DRAWTEXT(RSI成W底,85,'W底'),COLOR0000FF;
VAR1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
VAR2:=SUMBARS(VOL,CAPITAL);
VAR3:=IF(CLOSE>LLV(CLOSE,VAR2),1,-1);
VAR4:=IF(VAR1>LLV(VAR1,VAR2),1,-1);
VAR5:=VAR3*VAR4;
VAR6:=IF(VAR5=-1,1,0);
VAR7:="KD.K#WEEK"<20;
周KDJ低位:IF(VAR7 AND VAR6 AND CLOSE=LLV(CLOSE,5),20,0),STICK,COLORBLUE;
90 DOTLINE COLORRED;
20 DOTLINE COLORGREEN;
AA3:=BARSLAST(REF(CROSS(RSI,RSI2),1));
AB3:=REF(C,AA3+1)>C AND REF(RSI,AA3+1)<RSI AND CROSS(RSI,RSI2);
AC3:=BARSLAST(REF(CROSS(RSI2,RSI),1));
AD3:=REF(C,AC3+1)<C AND REF(RSI,AC3+1)>RSI AND CROSS(RSI2,RSI);
DRAWTEXT(AD3,RSI+0.09,'顶背'),COLORGREEN;
DRAWTEXT(AB3,RSI-0.09,'底背'),COLORMAGENTA;
IF(AB3,40,0),STICK,LINETHICK2,COLORMAGENTA;
IF(AD3,40,0),STICK,LINETHICK2,COLORGREEN;
P:=10;
A3:=REF(RSI,P)=HHV(RSI,2*P+1);
B3:=FILTER(A3,P);
C3:=BACKSET(B3,P+1);
D3:=FILTER(C3,P);{高点}
A4:=REF(RSI,P)=LLV(RSI,2*P+1);
B4:=FILTER(A4,P);
C4:=BACKSET(B4,P+1);
D4:=FILTER(C4,P);{低点}
DRAWICON(D3,RSI,2);
DRAWICON(D4,RSI,1);
博弈K线长:=100*(WINNER(CLOSE)-WINNER(OPEN));
博弈K线收盘差:=博弈K线长>=20;
HSL:=100*VOL/(FINANCE(7)/100);
换手率:=MA(HSL,1)<3;
博弈长阳:=博弈K线收盘差 AND 换手率,COLORMAGENTA;
STICKLINE(博弈K线收盘差 AND 换手率,0,50,1,1),COLORMAGENTA;
DRAWTEXT(博弈长阳,博弈长阳+60,'博弈'),COLORMAGENTA;
N1:=5;N2:=8;
RSI11:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI21:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
准备:=CROSS(RSI11,20) AND CROSS(RSI11,RSI21) AND RSI11<50;
STICKLINE(准备,0,20,4,0 ),COLOR000099;
STICKLINE(准备,0,20,4,0 ),COLOR000099;
STICKLINE(准备,0,20,3,0 ),COLOR0000BB;
STICKLINE(准备,0,20,1.5,0 ),COLOR0000DD;
STICKLINE(准备,0,20,0.3,0 ),COLOR0000FF;
DRAWTEXT(准备,18,'准'),COLORYELLOW;
DRAWTEXT(准备,14,'备'),COLORYELLOW;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容