不被套主图 转载和谐完全加密通达信指标!

[复制链接]
查看75 | 回复0 | 2022-6-27 22:17:23 | 显示全部楼层 |阅读模式

 {公式名称: 不被套

公式描述: 均线
参数数量: 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.70822.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,VAR6

p201841313203432343.jpg

p201841313203432343.jpg

201841313201764988.rar

107.89 KB, 下载次数: 0

售价: 3 金钱  [记录]  [购买]

201841313201764988.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则