多空红绿柱,实用性强,有参考价值。
{多空红绿柱主}
SJ:=1;
MA3:=MA(C,170);
HH1:=IF(H<REF(H,1)&&REF(H,1)<REF(H,2),REF(H,2),0);
LL1:=IF(L>REF(L,1)&&REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
HH:=HHV(HIGH,1)/10*SJ+HHV(HIGH,2)/10+HHV(HIGH,2)/10+HHV(HIGH,4)/10+HHV(HIGH,4)/10+HHV(HIGH,8)/10+HHV(HIGH,8)/10+HHV(HIGH,13)/10+HHV(HIGH,40)/10+HHV(HIGH,20)/10;
LL:=LLV(LOW,1)/10*SJ+LLV(LOW,2)/10+LLV(LOW,2)/10+LLV(LOW,4)/10+LLV(LOW,4)/10+LLV(LOW,8)/10+LLV(LOW,8)/10+LLV(LOW,13)/10+LLV(LOW,40)/10+LLV(LOW,20)/10;
H1:=IF(HH<REF(HH,1)&&LL<REF(LL,1)&&REF(OPEN,1)>CLOSE&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HH,2),0);
L1:=IF(LL>REF(LL,1)&&HH>REF(HH,1)&&REF(OPEN,1)<CLOSE&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LL,2),0);
X:=DATE;
X0:=H1,LINETHICK2;
X00:=L1;
XXX0:=O,LINETHICK2;
XXX00:=C;
XXX000:=H;
XXX0000:=L;
H2:=VALUEWHEN(X0>0,X0),LINETHICK2;
L2:=VALUEWHEN(X00>0,X00),LINETHICK2;
K1:=IF(CLOSE>H2,-3,IF(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IF(K2=1,H2,L2);
G1:=VALUEWHEN(ISLASTBAR,G);
DRAWNUMBER(L>0,G1,G1),COLORCYAN;
DRAWNUMBER(LL>0,G1,G1),COLORWHITE;
X000:=K2,LINETHICK2;
TMP:=K2,LINETHICK2;
W1:=X000,LINETHICK2;
X0000:=OPEN-CLOSE,LINETHICK2;
W2:=X0000,LINETHICK2;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE),LINETHICK2;
LT:=IF(OPEN<CLOSE,OPEN,CLOSE),LINETHICK2;
STICKLINE(W1=1,XXX000,HT,0,0),COLORCYAN;
STICKLINE(W1=1,XXX0000,LT,0,0),COLORCYAN;
STICKLINE(W1=-3,XXX000,HT,0,0),COLORRED;
STICKLINE(W1=-3,XXX0000,LT,0,0),COLORRED;
STICKLINE(W1>0,XXX0,XXX00,3,1),COLORCYAN;
STICKLINE(W1<=0,XXX0,XXX00,3,1),COLORRED;
STICKLINE(W2>0&&W1<=0,XXX0,XXX00,3,0),COLORRED;
STICKLINE(W2>0&&W1>0,XXX0,XXX00,3,0),COLORCYAN;
IF(K2=1,G,DRAWNULL),COLORCYAN;
IF(K2=-3,G,DRAWNULL),COLORRED;
DRAWTEXT(CROSS(TMP,0),HH,'空'),COLORGREEN;
DRAWTEXT(CROSS(0,TMP),LL,'多');
N3:=BARSLAST(CROSS(W1>0,0.5)),LINETHICK2;
N4:=BARSLAST(CROSS(W1<=0,0.5)),LINETHICK2;
HH3:=IF(W1<=0,REF(HHV(H,N4),N3),DRAWNULL),COLORYELLOW;
LL3:=IF(W1>0,REF(LLV(L,N3),N4),DRAWNULL),COLORGREEN;
B:=CROSS(C,HH3) OR REF(IF(HH3=DRAWNULL,1,DRAWNULL),1)&&C>HH3;
S:=CROSS(LL3,C) OR REF(IF(LL3=DRAWNULL,1,DRAWNULL),1)&&C<LL3;
{DRAWICON(B=1,L, 25);
DRAWICON(S=1,H, 27);}
LC:= REF(CLOSE,1),LINETHICK2;
RSI:=SMA(MAX(CLOSE-LC, 0), 6, 1)/SMA(ABS(CLOSE-LC), 6, 1)*100,LINETHICK2;
DRAWTEXT_FIX(C>O,0.01,0.01,0,' 分析家公式网WWW.fxjgsw.com'),COLOR666666;
{多空红绿柱副}
SJ:=1;
MA3:=MA(C,170);
HH1:=IF(H<REF(H,1)&&REF(H,1)<REF(H,2),REF(H,2),0);
LL1:=IF(L>REF(L,1)&&REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
HH:=HHV(HIGH,1)/10*SJ+HHV(HIGH,2)/10+HHV(HIGH,2)/10+HHV(HIGH,4)/10+HHV(HIGH,4)/10+HHV(HIGH,8)/10+HHV(HIGH,8)/10+HHV(HIGH,13)/10+HHV(HIGH,40)/10+HHV(HIGH,20)/10;
LL:=LLV(LOW,1)/10*SJ+LLV(LOW,2)/10+LLV(LOW,2)/10+LLV(LOW,4)/10+LLV(LOW,4)/10+LLV(LOW,8)/10+LLV(LOW,8)/10+LLV(LOW,13)/10+LLV(LOW,40)/10+LLV(LOW,20)/10;
H1:=IF(HH<REF(HH,1)&&LL<REF(LL,1)&&REF(OPEN,1)>CLOSE&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HH,2),0);
L1:=IF(LL>REF(LL,1)&&HH>REF(HH,1)&&REF(OPEN,1)<CLOSE&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LL,2),0);
X:=DATE;
X0:=H1,LINETHICK2;
X00:=L1;
XXX0:=O,LINETHICK2;
XXX00:=C;
XXX000:=H;
XXX0000:=L;
H2:=VALUEWHEN(X0>0,X0),LINETHICK2;
L2:=VALUEWHEN(X00>0,X00),LINETHICK2;
K1:=IF(CLOSE>H2,-3,IF(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IF(K2=1,H2,L2);
G1:=VALUEWHEN(ISLASTBAR,G);
DRAWNUMBER(L>0,G1,G1),COLORCYAN;
DRAWNUMBER(LL>0,G1,G1),COLORWHITE;
X000:=K2,LINETHICK2;
TMP:=K2,LINETHICK2;
W1:=X000,LINETHICK2;
X0000:=OPEN-CLOSE,LINETHICK2;
W2:=X0000,LINETHICK2;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE),LINETHICK2;
LT:=IF(OPEN<CLOSE,OPEN,CLOSE),LINETHICK2;
STICKLINE(W1=1,XXX000,HT,0,0),COLORCYAN;
STICKLINE(W1=1,XXX0000,LT,0,0),COLORCYAN;
STICKLINE(W1=-3,XXX000,HT,0,0),COLORRED;
STICKLINE(W1=-3,XXX0000,LT,0,0),COLORRED;
STICKLINE(W1>0,XXX0,XXX00,3,1),COLORCYAN;
STICKLINE(W1<=0,XXX0,XXX00,3,1),COLORRED;
STICKLINE(W2>0&&W1<=0,XXX0,XXX00,3,0),COLORRED;
STICKLINE(W2>0&&W1>0,XXX0,XXX00,3,0),COLORCYAN;
{分析家公式网 WWW.fxjgsw.com}
IF(K2=1,G,DRAWNULL),COLORCYAN;
IF(K2=-3,G,DRAWNULL),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.01,0,' 分析家公式网WWW.fxjgsw.com'),COLOR666666;
DRAWTEXT(CROSS(TMP,0),HH,'空'),COLORGREEN;
DRAWTEXT(CROSS(0,TMP),LL,'多');
N3:=BARSLAST(CROSS(W1>0,0.5)),LINETHICK2;
N4:=BARSLAST(CROSS(W1<=0,0.5)),LINETHICK2;
HH3:=IF(W1<=0,REF(HHV(H,N4),N3),DRAWNULL),COLORYELLOW;
LL3:=IF(W1>0,REF(LLV(L,N3),N4),DRAWNULL),COLORGREEN;
B:=CROSS(C,HH3) OR REF(IF(HH3=DRAWNULL,1,DRAWNULL),1)&&C>HH3;
S:=CROSS(LL3,C) OR REF(IF(LL3=DRAWNULL,1,DRAWNULL),1)&&C<LL3;
{DRAWICON(B=1,L, 25);
DRAWICON(S=1,H, 27);}
LC:= REF(CLOSE,1),LINETHICK2;
RSI:=SMA(MAX(CLOSE-LC, 0), 6, 1)/SMA(ABS(CLOSE-LC), 6, 1)*100,LINETHICK2;
|
- 软件大小:5.00 KB
- 推荐星级:
- 更新时间:2020-11-23 00:15:15
- 软件类别: 国产软件 / 通达信公式
- 软件语言:简体中文
- 授权方式: 免费版
- 联系方式:暂无联系方式
- 官方主页: Home Page
- 点击大图: 【一键转帖到论坛】
- 插件情况:
- 运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
- 相关Tags:多空红绿柱,实用性强
-
(0)0%(0)0%
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!