李华操盘线 EMA5:=EMA(C,5);
EMA10:=EMA(C,10);
EMA20:=EMA(C,20);
EMA50:=EMA(C,50);
中线:=(EMA50+EMA10)/2;
EMA100:=EMA(C,100);
EMA200:=EMA(C,200);
//PARTLINE(EMA5,C<EMA5,RGB(0,255,0),C>EMA5,RGB(200,0,0),1,RGB(255,255,255)),LINETHICK1;
PARTLINE(EMA5,EMA5<EMA20,RGB(0,200,0),C>EMA5,RGB(255,0,0),1,RGB(255,0,0)),LINETHICK1;
PARTLINE(EMA10,EMA10<EMA20,RGB(0,200,0),C>EMA10,RGB(255,0,0),1,RGB(255,0,0)),LINETHICK1;
PARTLINE(EMA20,C>EMA20 AND EMA10>EMA20,RGB(200, 200,0),C<EMA20,RGB(0,200,0),1,RGB(0,255,0)),LINETHICK02;
PARTLINE(EMA50,C>EMA50 AND EMA10>EMA50,RGB(200, 200,0),C<EMA50,RGB(0,200,0),1,RGB(0,255,0)),LINETHICK01;
PARTLINE(EMA100,C>EMA100 AND EMA10>EMA100,RGB(255, 0,255),C<EMA100,RGB(0,200,0),1,RGB(0,255,0)),LINETHICK01;
PARTLINE(EMA200,C>EMA200 AND EMA10>EMA200,RGB(255, 0,255),C<EMA200,RGB(0,200,0),1,RGB(0,255,0)),LINETHICK01;
//PARTLINE(中线,C<EMA50,RGB(0,255,0),中线>EMA50,RGB(255,255,0 ),1,RGB(255,255,255)),LINETHICK1;
金叉:=CROSS(EMA10,EMA50);
DRAWTEXT(金叉,ema50*0.99,'↖金叉',20),colormagenta;
买:=C>EMA20;
卖:=C<EMA20;
震荡:=C<EMA5 AND C>EMA20;
震荡1:=C>EMA5 AND EMA5<EMA20;
STICKLINE(买>卖 AND CLOSE>=OPEN,OPEN,CLOSE,9,1),RGB(255,0,0);
STICKLINE(买>卖 AND CLOSE>=OPEN,OPEN,LOW,0,0),RGB(255,0,0);
STICKLINE(买>卖 AND CLOSE>=OPEN,CLOSE,HIGH,0,0),RGB(255,0,0);
STICKLINE(买>卖 AND CLOSE<OPEN,OPEN,CLOSE,9,0),RGB(255,0,0);
STICKLINE(买>卖 AND CLOSE<OPEN,LOW,HIGH,0,0),RGB(255,0,0);
STICKLINE(买<卖 AND CLOSE<=OPEN,OPEN,CLOSE,9,0),colorgreen;
STICKLINE(买<卖 AND CLOSE<=OPEN,LOW,HIGH,0,0),colorgreen;
STICKLINE(买<卖 AND CLOSE>OPEN,OPEN,CLOSE,9,1),colorgreen;
STICKLINE(买<卖 AND CLOSE>OPEN,OPEN,LOW,0,0),colorgreen;
STICKLINE(买<卖 AND CLOSE>OPEN,CLOSE,HIGH,0,0),colorgreen;
STICKLINE(震荡 AND CLOSE<=OPEN,OPEN,CLOSE,9,0),RGB(255,255,255);
STICKLINE(震荡 AND CLOSE<=OPEN,LOW,HIGH,0,0),RGB(255,255,255);
STICKLINE(震荡 AND CLOSE>OPEN,OPEN,CLOSE,9,1),RGB(255,255,255);
STICKLINE(震荡 AND CLOSE>OPEN,OPEN,LOW,0,0),RGB(255,255,255);
STICKLINE(震荡 AND CLOSE>OPEN,CLOSE,HIGH,0,0),RGB(255,255,255);
STICKLINE(震荡1 AND CLOSE<=OPEN,OPEN,CLOSE,9,0),RGB(238,150,238);
STICKLINE(震荡1 AND CLOSE<=OPEN,LOW,HIGH,0,0),RGB(238,150,238);
STICKLINE(震荡1 AND CLOSE>OPEN,OPEN,CLOSE,9,1),RGB(238,150,238);
STICKLINE(震荡1 AND CLOSE>OPEN,OPEN,LOW,0,0),RGB(238,150,238);
STICKLINE(震荡1 AND CLOSE>OPEN,CLOSE,HIGH,0,0),RGB(238,150,238);
//三线突破
A2:=CROSS(C,EMA10);
A3:=CROSS(C,中线);
A4:=CROSS(C,EMA50);
三线突破:=A2 AND A3 AND A4;
STICKLINE(三线突破,OPEN,CLOSE,6,0),COLOR34A6FA;
STICKLINE(三线突破,H,L,0.6,0),COLOR34A6FA;
DRAWTEXT(三线突破,L*0.99,'▲三线突破',20),COLOR34A6FA;
每股净资产:=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;
★EMA均线★:STRLEFT('EMA5 10 20 50 100 200 ',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;
//箱顶:MA(REF(HHV(C,30),1),2),colorwhite,LINETHICK2;
//箱底:MA(REF(LLV(C,30),1),2),colorligreen,LINETHICK2;
IF(PERIODNAME<>"日线")
{统计:"该指标只在日线周期下有效。";RETURN;}
C2:=REF(C,1);
大涨:=IF((C-C2)*100/C2>=(7-0.00*100/C2),1,0);
STICKLINE(大涨,OPEN,CLOSE,9,1),coloryellow;
STICKLINE(大涨,H,L,0.9,0),coloryellow;
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,9,0),coloryellow;
STICKLINE(涨停,H,L,0.9,0),coloryellow;
涨停1:=IF((C-C2)*100/C2>=(14-0.00*100/C2),1,0);
STICKLINE(涨停1,OPEN,CLOSE,9,1),colormagenta;
STICKLINE(涨停1,H,L,0.9,1),colormagenta;
涨停2:=IF((C-C2)*100/C2>=(20-0.01*100/C2),1,0);
STICKLINE(涨停2,OPEN,CLOSE,9,0),colormagenta;
STICKLINE(涨停2,H,L,0.9,0),colormagenta;
//STICKLINE(C,REF((L+H)*0.5,BARSLAST(大涨 OR 涨停)),REF((L+H)*0.5,BARSLAST(大涨 OR 涨停)),8,0),coloryellow;
//STICKLINE(C,REF((L+H)*0.5,BARSLAST(涨停1 OR 涨停2)),REF((L+H)*0.5,BARSLAST(涨停1 OR 涨停2)),8,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年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!