{公式名称: 不被套 公式描述: 均线
参数数量: 1
参数1: M, 最小: 0, 最大: 100, 缺省: 1
公式类型: 技术指标公式-特SE型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
M: Param#0 (0.00--100.00)
用法注释:
1.股价高于平均线,视为强势;股价低于平均线,视为弱势
2.平均线向上涨升,具有助涨力道;平均线向下跌降,具有助跌力道;
3.二条以上平均线向上交叉时,买进;
4.二条以上平均线向下交叉时,卖出;
5.移动平均线的信号经常落后股价,若以EXPMA 、VMA 辅助,可以改善。
公式源码:}
2;
30;
VAR1:=5;
2;
60;
VAR2:=13;
2;
120;
VAR3:=34;
VAR4:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
VAR5:=DYNAINFO(5)<0.01 OR DYNAINFO(6)<0.01;
VAR6:=IF(VAR5,1,VAR4<DYNAINFO(5)+0.01 AND VAR4>DYNAINFO(6)-0.01);
VAR7:=IF(VAR6,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120));
VAR8:=EVERY(VAR7>REF(VAR7,1),1);
VAR9:=IF(VAR8,VAR7,DRAWNULL);
区一:STICKLINE(EVERY(EMA(SLOPE(CLOSE,15)*20+CLOSE,30)>REF(EMA(SLOPE(CLOSE,15)*20+CLOSE,30),1),1) AND EVERY(MA(10000*CLOSE/INDEXC,10)>REF(MA(10000*CLOSE/INDEXC,10),1),1) AND EVERY(EMA(SUM(IF(CLOSE=REF(CLOSE,1),0,IF(CLOSE>REF(CLOSE,1),VOL,-VOL)/100),0),30)>REF(EMA(SUM(IF(CLOSE=REF(CLOSE,1),0,IF(CLOSE>REF(CLOSE,1),VOL,-VOL)/100),0),30),1),1),REFDATE(HHV(HIGH,(-5)),DATE),REFDATE(LLV(LOW,(-5)),DATE),6,0),COLOR001030;
区二:STICKLINE(EVERY(XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1>REF(XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1,1),1) AND COST(EMA(SLOPE(CLOSE,15)*20+CLOSE,30))>=REF(COST(EMA(SLOPE(CLOSE,15)*20+CLOSE,30)),1) AND COST(20)>=REF(COST(20),1) AND EVERY(EMA(SUM(IF(CLOSE=REF(CLOSE,1),0,IF(CLOSE>REF(CLOSE,1),VOL,-VOL)/100),0),30)>REF(EMA(SUM(IF(CLOSE=REF(CLOSE,1),0,IF(CLOSE>REF(CLOSE,1),VOL,-VOL)/100),0),30),1),1) AND VOL/MA(VOL,55)*100>50 AND EVERY(EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9)>REF(EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9),1),1),REFDATE(HHV(HIGH,(-5)),DATE),REFDATE(LLV(LOW,(-5)),DATE),4,0),COLOR001040;
区三:STICKLINE(EVERY(EMA(SLOPE(CLOSE,15)*20+CLOSE,30)>REF(EMA(SLOPE(CLOSE,15)*20+CLOSE,30),1),1) AND EVERY(MA(10000*CLOSE/INDEXC,10)>REF(MA(10000*CLOSE/INDEXC,10),1),1) AND EVERY(EMA(SUM(IF(CLOSE=REF(CLOSE,1),0,IF(CLOSE>REF(CLOSE,1),VOL,-VOL)/100),0),30)>REF(EMA(SUM(IF(CLOSE=REF(CLOSE,1),0,IF(CLOSE>REF(CLOSE,1),VOL,-VOL)/100),0),30),1),1) AND IF(MA(WINNER(CLOSE*0.9)*100*CLOSE,3)>10,MA(WINNER(CLOSE*0.9)*100*CLOSE,3),0)/2/8>0,REFDATE(HHV(HIGH,(-5)),DATE),REFDATE(LLV(LOW,(-5)),DATE),4,0),COLOR001050;
区四:STICKLINE(VAR9 AND EVERY(EMA(SUM(IF(CLOSE=REF(CLOSE,1),0,IF(CLOSE>REF(CLOSE,1),VOL,-VOL)/100),0),30)>REF(EMA(SUM(IF(CLOSE=REF(CLOSE,1),0,IF(CLOSE>REF(CLOSE,1),VOL,-VOL)/100),0),30),1),1) AND IF(MA(WINNER(CLOSE*0.9)*100*CLOSE,3)>10,MA(WINNER(CLOSE*0.9)*100*CLOSE,3),0)/2/8>0,REFDATE(HHV(HIGH,(-5)),DATE),REFDATE(LLV(LOW,(-5)),DATE),4,0),COLOR001075;
底仓5:COST(1),COLORWHITE,LINETHICK2;
建仓10:COST(10),COLORBLUE,LINETHICK2;
平衡30:COST(30),NODRAW,COLORMAGENTA,LINETHICK2;
VAR10:=COST(40);
VAR11:=COST(50);
VAR12:=COST(60);
VAR13:=COST(70);
VAR14:=COST(80);
VAR15:=COST(90);
VAR16:=COST(99);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
VAR17:=SUMBARS(VOL,CAPITAL*1);
VAR18:=SUM(COST(10),VAR17)/VAR17;
VAR19:=SUM(COST(20),VAR17)/VAR17;
VAR20:=SUM(COST(30),VAR17)/VAR17;
VAR21:=SUM(COST(40),VAR17)/VAR17;
VAR22:=SUM(COST(50),VAR17)/VAR17;
VAR23:=LLV(LOW,250)=LOW;
VAR24:=BARSLAST(VAR23);
庄家成本:(5*VAR18+4*VAR19+3*VAR20+2*VAR21+VAR22)/15,NODRAW,COLORRED;
VAR25:=IF(VAR6,0.01*EMA(AMOUNT,VAR1)/EMA(VOL,VAR1),EMA((HIGH+LOW+CLOSE)/3,VAR1));
圴2:IF(VAR6,0.01*EMA(AMOUNT,VAR2)/EMA(VOL,VAR2),EMA((HIGH+LOW+CLOSE)/3,VAR2)),NODRAW;
圴3:IF(VAR6,0.01*EMA(AMOUNT,VAR3)/EMA(VOL,VAR3),EMA((HIGH+LOW+CLOSE)/3,VAR3)),NODRAW;
圴成本:IF(VAR6,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120)),NODRAW;
VAR26:=EVERY(圴成本>REF(圴成本,1),1);
成本值:IF(VAR26,圴成本,DRAWNULL),COLORYELLOW,LINETHICK2;
成本金叉:DRAWTEXT(CROSS(VAR25,圴成本) AND 成本值,圴成本-0.5,11),COLORYELLOW;
上升均斜:EMA(SLOPE(CLOSE,20)*30+CLOSE,40),COLORBLUE;
趋势:XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1,NODRAW,COLORRED,LINETHICK2;
提高~1:STICKLINE(CROSS(CLOSE,庄家成本) AND VAR24>=40 AND EVERY(上升均斜>REF(上升均斜,1),M),LOW,CLOSE,4,0),COLORFF0080;
VAR27:=EVERY(庄家成本>=REF(庄家成本,1),M);
VAR28:=REF(LLV(LOW,150),3);
VAR29:=REFDATE(VAR28,DATE)*0.9;
VAR30:=(-100)*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))+100;
VAR31:=(-100)*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6))+100;
VAR32:=VAR30>=REF(VAR30,1);
VAR33:=VAR30<REF(VAR30,1);
VAR34:=VAR31>=REF(VAR31,1);
VAR35:=VAR31<REF(VAR31,1);
VAR36:=VAR31>=80 AND VAR34;
VAR37:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR38:=IF(CLOSE>OPEN,VAR37*(HIGH-LOW),IF(CLOSE<OPEN,VAR37*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
VAR39:=VAR38/VOL*100;
VAR40:=VAR39>=REF(VAR39,1);
VAR41:=VAR39/50;
VAR42:=VAR39>=80 AND VAR40 AND VAR41>=1.5 AND REF(VAR39,1)<=90;
VAR43:=EMA(SLOPE(CLOSE,22)*20+CLOSE,55);
VAR44:=VAR43-(EMA(CLOSE,1)-VAR43);
VAR45:=VAR43-(EMA(CLOSE,3)-VAR43);
VAR46:=REF(VAR44,1)/VAR44;
VAR47:=IF(VAR46>1,VAR46,1);
VAR48:=VAR47/REF(VAR47,1);
VAR49:=VAR47>=REF(VAR47,1) AND VAR47>=1.02 AND VAR43>=VAR44;
VAR50:=WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9);
VAR51:=WINNER(CLOSE);
VAR52:=VAR51/VAR50;
VAR53:=VAR50<=REF(VAR50,1);
VAR54:=REF(VAR50,1)/VAR50;
VAR55:=VAR52>=2 AND VAR53 OR VAR54>=1.3;
VAR56:=REF(CLOSE,1);
VAR57:=VAR56*1.1>=COST(90);
VAR58:=VAR36 AND VAR42 AND VAR49 AND VAR55 AND VAR57;
VAR59:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)*100<=5;
VAR60:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR61:=REF(VAR60,1);
VAR62:=VAR59 AND VAR60>=6.2 AND VAR61<=6.5;
VAR63:=VAR36 AND VAR42 AND VAR49 AND VAR55 AND VAR62;
VAR64:=VAR36 AND VAR42 AND VAR49 AND VAR55 AND VAR59 AND VAR61<=6.5;
VAR65:=VAR51>=VAR50;
VAR66:=IF(VAR65,VAR43*0.96,VAR43);
界线:VAR43,COLORGREEN,LINETHICK2;
界:IF(VAR43>=REF(VAR43,1),VAR43,DRAWNULL),COLORRED,LINETHICK3;
DRAWTEXT(FILTER(界>1 AND EMA(界线,15)>REF(EMA(界线,8),1),10),界,12),COLORWHITE;
DRAWTEXT(VAR58 AND VAR64,LOW*0.946,13),COLORWHITE;
DRAWTEXT(VAR63,LOW*0.91,14),COLORWHITE;
VAR67:=CLOSE*VOL;{www.fxjgsw.com}
VAR68:=EMA((EMA(VAR67,2)/EMA(VOL,2)+EMA(VAR67,4)/EMA(VOL,4)+EMA(VAR67,8)/EMA(VOL,8)+EMA(VAR67,16)/EMA(VOL,16))/4,15);
VAR69:=1.05*VAR68;
VAR70:=EMA(VAR69-(EMA(CLOSE,3)-VAR69),5);
下开:IF(VAR70<=VAR69,VAR70,VAR69),COLORMAGENTA,LINETHICK2;
VAR71:=2*VAR69-下开;
上开:IF(VAR71>=VAR69,VAR71,VAR |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!