晴天线 中轨20日均线,波段指标,趋势指标,操盘指标
//晴天线
//中轨20日均线,波段指标,趋势指标,操盘指标
N:=20;
P:=20;
mid:=MA(CLOSE,N),linethick0;
UPPER:= MID + P/10*STD(CLOSE,N);
LOWER:= MID - P/10*STD(CLOSE,N);
UP0:MID+(UPPER-MID)*0.382,colormagenta;
DOWN:MID-(MID-LOWER)*0.382,colorligreen;
PARTLINE(MID,C>MID,RGB(255,48,48),C<MID,RGB(34,139,34),1,RGB(0,0,255)),LINETHICK1;
买:=C>MID;
卖:=C<MID;
STICKLINE(买>卖 AND CLOSE>=OPEN,OPEN,CLOSE,9,1),RGB(255, 48, 48);
STICKLINE(买>卖 AND CLOSE>=OPEN,OPEN,LOW,0,0),RGB(255, 48, 48);
STICKLINE(买>卖 AND CLOSE>=OPEN,CLOSE,HIGH,0,0),RGB(255, 48, 48);
STICKLINE(买>卖 AND CLOSE<OPEN,OPEN,CLOSE,9,0),RGB(255, 48, 48);
STICKLINE(买>卖 AND CLOSE<OPEN,LOW,HIGH,0,0),RGB(255, 48, 48);
STICKLINE(买<卖 AND CLOSE<=OPEN,OPEN,CLOSE,9,0),colorligreen;
STICKLINE(买<卖 AND CLOSE<=OPEN,LOW,HIGH,0,0),colorligreen;
STICKLINE(买<卖 AND CLOSE>OPEN,OPEN,CLOSE,9,1),colorligreen;
STICKLINE(买<卖 AND CLOSE>OPEN,OPEN,LOW,0,0),colorligreen;
STICKLINE(买<卖 AND CLOSE>OPEN,CLOSE,HIGH,0,0),colorligreen;
PL20:=ZIG(3,20);
EN3:=PL20>REF(PL20,1) AND REF(PL20,1)<=REF(PL20,2) AND REF(PL20,2)<=REF(PL20,3);
EX3:=PL20<REF(PL20,1) AND REF(PL20,1)>=REF(PL20,2) AND REF(PL20,2)>=REF(PL20,3);
DRAWTEXT(EN3,L*0.98,'↖买',20),colormagenta,LINETHICK2;
DRAWTEXT(Ex3,H*1.02,'↙卖',20),coloryellow,LINETHICK2;
DRAWICON((EX3),H*1.0085,2);
DRAWICON((EN3),L*0.995,1);
//DRAWLINE(EN2,L,EX2,H,0),COLOR34A6FA,LINETHICK1;
//DRAWLINE(EX2,H,EN2,L,0),,COLOR34A6FA,LINETHICK1;
MA20:=MA(C,20);
BTma20:=(CLOSE>ma20) AND (REF(CLOSE,1)>REF(ma20,1)) AND (REF(CLOSE,2)>REF(ma20,2)) AND (REF(CLOSE,3)>REF(ma20,3));
vol120:=MA(VOL,120);
BTvol120:= (VOL > vol120) AND (REF(VOL,1) > REF(vol120,1)) AND (REF(VOL,2) > REF(vol120,2));
bb:=C>O AND REF(C,1)<REF(O,1) AND REF(C,2)<REF(O,2) AND REF(C,3)<REF(O,3) AND REF(C,4)>REF(O,4) AND REF(O,3) <REF(C,4) AND V>REF(V,1);
cc:= C>O AND REF(C,1)>REF(O,1) AND REF(C,2)<REF(O,2) AND REF(C,3)<REF(O,3) AND REF(C,4)>REF(O,4) AND REF(O,3) <REF(C,4) AND V>REF(V,1) AND REF(V,1)<REF(V,2);
dd:= C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2) AND REF(C,3)<REF(O,3) AND REF(C,4)>REF(O,4) AND REF(O,3) <REF(C,4) AND V>REF(V,1) AND REF(V,2)<REF(V,3);
ff:= C>O AND REF(C,1)>REF(O,1) AND REF(C,2)>REF(O,2) AND REF(C,3)<REF(O,3) AND REF(C,4)>REF(O,4) AND REF(O,3) <REF(C,4) AND V>REF(V,1) AND REF(V,2)<REF(V,3) AND REF(V,1)<REF(V,2);
gg:=C<REF(C,4) AND REF(C,1)<REF(C,4) AND REF(C,2)<REF(C,4) AND REF(C,3)<REF(C,4) AND REF(O,1)<REF(C,4) AND REF(O,2)<REF(C,4) AND REF(O,3)<REF(C,4) ;
ee:=(bb OR cc OR dd OR ff) AND BTvol120 AND BTma20 AND gg;
DRAWTEXT(ee,L,'↖短线洗盘',20),colorred;
aa:=REF(C,1)>REF(O,1) AND REF(V,1)>REF(V,2) AND C>O AND V>REF(V,1) AND BTma20 AND BTvol120;
DRAWTEXT(aa,L,'↖放量',20),coloryellow;
每股净资产:=TOSTRING('每股净资产:',1);
净资产值:=TOSTRING(MGJZC,2);
DRAWTEXT_FIX(ISLASTBAR,0.33,0.05,0,每股净资产),COLOR34A6FA;
DRAWTEXT_FIX(ISLASTBAR,0.46,0.05,0,净资产值),COLOR34A6FA;
市净率:=TOSTRING('市净率:',1);
净值:=TOSTRING(CLOSE/MGJZC,2);
DRAWTEXT_FIX(ISLASTBAR,0.53,0.05,0,市净率),COLOR34A6FA;
DRAWTEXT_FIX(ISLASTBAR,0.65,0.05,0,净值),COLOR34A6FA;
净资产收益率:=TOSTRING('净资收益率:',1);
收益率值:=TOSTRING(JLR/GDQYHJ*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.33,0.08,0,净资产收益率),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.46,0.08,0,收益率值),colormagenta;
★MA均线★:STRLEFT('MA 20 ',50),COLOR34A6FA;
净利润增长:=TOSTRING('净利润增长:',1);
净利增值:=TOSTRING((JLR-REP(&JLR,2))/REP(&JLR,2)*100,2);
DRAWTEXT_FIX(ISLASTBAR,0.53,0.08,0,净利润增长),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.65,0.08,0,净利增值),colormagenta;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.00,0.88,0,BLOCK(0,0)),COLOR34A6FA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.13,0.88,0,BLOCK(1,0)),COLOR34A6FA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.26,0.88,0,BLOCK(2,0)),COLOR34A6FA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.00,0.94,0,BLOCK(3,0)),COLOR34A6FA;
IF(PERIODNAME<>"日线")
{统计:"该指标只在日线周期下有效。";RETURN;}
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,5,0),coloryellow;
涨停:=IF((C-C2)*100/C2>=(20-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,5,0),colormagenta;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,5,0),colorblue;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!