仙人建仓波段操作佳品通达信公式 副图 源码附图
VAR1:=(HIGH+LOW+CLOSE*2)/4;
VAR2:=EMA(VAR1,21);
VAR3:=STD(VAR1,21);
VAR4:=((VAR1-VAR2)/VAR3*100+200)/4;
VAR5:=(EMA(VAR4,5)-25)*1.56;
VAR6:=IF(DATETODAY(DATE)<9876,1,DRAWNULL);
VAR7:=117123099;
VAR8:=IF(DATE<2342.459961*500,1,DRAWNULL);
VAR9:=LLV(LOW,35);
VAR10:=HHV(HIGH,30)*VAR8;
VAR11:=EMA((CLOSE-VAR9)/(VAR10-VAR9)*4,4)*19;
VAR12:=MA(CLOSE,5);
DRAWICON(VAR11<6 AND 100*(HHV(HIGH,19)-CLOSE)/(HHV(HIGH,19)-LLV(LOW,19)*VAR6)>97,100,11)*VAR8;
VAR13:=REF(CLOSE,1);
VAR14:=SMA(MAX(CLOSE-VAR13,0),6,1)/SMA(ABS(CLOSE-VAR13),6,1)*100;
VAR15:=EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5;
VAR16:=EMA((CLOSE-MA(CLOSE,11)*VAR6)/MA(CLOSE,11)*480,7)*5;
VAR17:=CROSS(VAR14,25);
VAR18:=CROSS(VAR15,VAR16) AND VAR15<(-10);
VAR19:=FILTER(COUNT(VAR17 OR VAR18,3)>=2,3);
VAR20:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100*VAR8;
VAR21:=LOW;
VAR22:=REF(LOW,1);
VAR23:=SMA(ABS(VAR21-VAR22),3,1)/SMA(MAX(VAR21-VAR22,0),3,1)*100;
VAR24:=MA(VAR23/10,3)*VAR6;
VAR25:=LLV(LOW,30);
VAR26:=HHV(VAR24,30);
MA(IF(LOW<=VAR25,(VAR24+VAR26*2)/5,0),3);
VAR27:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR28:=SMA(ABS(LOW-VAR27),13,1)/SMA(MAX(LOW-VAR27,0),10,1);
VAR29:=EMA(VAR28,10);
VAR30:=LLV(LOW,33);
VAR31:=EMA(IF(LOW<=VAR30,VAR29,0),3)*VAR8;
STICKLINE(VAR31>REF(VAR31,1),0,VAR31*2,2,0),COLORYELLOW;
洗盘:IF(VAR31<REF(VAR31,1),VAR31,0),COLORLIGREEN;
VAR32:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR33:=SMA(ABS(LOW-VAR32),13,1)/SMA(MAX(LOW-VAR32,0),10,1);
VAR34:=EMA(VAR33,10);
VAR35:=LLV(LOW,33);
VAR36:=EMA(IF(LOW<=VAR35,VAR34,0),3);
STICKLINE(VAR36>REF(VAR36,1),0,VAR36,2,0)*VAR8,COLORGREEN;
STICKLINE(VAR36<REF(VAR36,1),0,VAR36*2,2,0)*VAR8,COLORRED;
找主力吸筹提款:VAR36>REF(VAR36,4),COLORMAGENTA;
VAR37:=(HIGH+LOW+CLOSE*2)/4;
VAR38:=EMA(VAR37,7);
VAR39:=STD(VAR37,7);
VAR40:=(VAR37-VAR38)*100/VAR3;
VAR41:=EMA(VAR40,3)*VAR8;
VAR42:=AMOUNT/VOL/100;
主力进场:IF(VAR31>REF(VAR31,1)*VAR6,VAR31*1.5,0)*VAR8,COLORRED,LINETHICK2;
VAR43:=REF(LOW,1)*VAR6;
VAR44:=SMA(ABS(LOW-VAR43),3,1)/SMA(MAX(LOW-VAR43,0),3,1)*100;
VAR45:=EMA(IF(CLOSE*1.3,VAR44*10,VAR44/10),3);
VAR46:=LLV(LOW,30);
VAR47:=HHV(VAR45,30);
VAR48:=IF(MA(CLOSE,58),1,0);
VAR49:=EMA(IF(LOW<=VAR46,(VAR45+VAR47*2)/2,0),3)/618*VAR48;
VAR50:=IF(VAR49>100,100,VAR49);
吸筹:STICKLINE(VAR50>(-120),0,VAR50,6,1)*VAR8,COLORRED;
VAR51:=REF(LOW,1);
VAR52:=SMA(ABS(LOW-VAR51),3,1)/SMA(MAX(LOW-VAR51,0),3,1)*100;
VAR53:=EMA(IF(CLOSE*1.3,VAR52*10,VAR52/10),3);
VAR54:=LLV(LOW,30);
VAR55:=HHV(VAR53,30);
VAR56:=IF(MA(CLOSE,58),1,0);
VAR57:=EMA(IF(LOW<=VAR54,(VAR53+VAR55*2)/2,0),3)/618*VAR56;
VAR58:=IF(VAR57>100,100,VAR57);
吸筹2:STICKLINE(VAR58>(-120),0,VAR58/3,2,1)*VAR8,COLORMAGENTA;
VAR59:=REF(CLOSE,1);
VAR60:=SMA(MAX(CLOSE-VAR59,0),4.1,1)/SMA(ABS(CLOSE-VAR59),4.1,1)*100;
黄买:FILTER(REF(CLOSE,2)<CLOSE AND VAR60<25,7),COLORYELLOW;
STICKLINE(黄买,0,(-40),10,1)*VAR8,COLORYELLOW;
VAR61:=FILTER(REF(CLOSE,2)>CLOSE AND VAR60>80,7);
STICKLINE(VAR61,100,82,10,0),COLORBLUE;
红买:FILTER(CROSS(VAR60,11),7)*VAR8,COLORRED;
STICKLINE(红买,0,(-30),6,0),COLORRED;
VAR62:=FILTER(CROSS(89,VAR60),7)*VAR8;
STICKLINE(VAR62,100,88,8,0),COLORCYAN;
绿买:FILTER(CROSS(VAR60,20),7)*VAR8,COLORGREEN;
STICKLINE(绿买,0,(-20),6,0),COLORMAGENTA;
VAR63:=FILTER(CROSS(80,VAR60),7);
STICKLINE(VAR63,100,94,6,0),COLORGREEN;
★遵守纪律★:100,COLORRED;
★交易之魂★:100,COLORRED;
VAR64:=EMA(WINNER(CLOSE)*70,3);
VAR65:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
主力控盘:VAR64/(VAR64+VAR65)*100,COLORYELLOW,LINETHICK2;
上限:HHV(主力控盘,20),COLORGREEN,LINETHICK2;
下限:LLV(主力控盘,20),COLORRED,LINETHICK2;
中线:(上限+下限)/2,POINTDOT,COLORYELLOW,LINETHICK2;
VAR66:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR67:=SMA(SMA(VAR66,3,1),3,1)/28.57;
VAR68:=EMA(VAR67,5);
VAR69:=3*VAR67-2*VAR68;
VAR70:=CROSS(VAR69,VAR67) AND VAR67<2.1 AND CLOSE>OPEN;
STICKLINE(VAR70,30,0,4,0),COLOR770077;
STICKLINE(VAR70,30,0,3,0),COLOR990099;
STICKLINE(VAR70,30,0,2,0),COLORBB00BB;
STICKLINE(VAR70,30,0,1,0),COLORWHITE;
STICKLINE(VAR70,30,0,0.3,0),COLORMAGENTA;
DRAWTEXT(VAR70,36,5),COLORRED;
DRAWTEXT(VAR70,36,5),COLORRED;
AK:EMA(VAR5,2)*1.22;
AD1:EMA(AK,2);
AJ:3*AK-2*AD1;
DRAWTEXT(CROSS(AK,AD1),AK,4),COLORRED;
DRAWTEXT(CROSS(AD1,AK),AK,4),COLORWHITE;
WW:(EMA(VAR41,5)+100)/2-3,COLORMAGENTA;
{股票指标网 整理}
MM:HHV(WW,3),COLORFF3333;
DRAWTEXT(VAR17,0,6),COLORYELLOW;
DRAWTEXT(VAR19,0,7),COLORYELLOW;
DRAWICON(CROSS(85,VAR14),102,15);
DRAWICON(CROSS(VAR14,25),10,26);
DRAWICON(CROSS(VAR15,VAR16) AND VAR15<(-10),20,24);
DRAWICON(CROSS(VAR20,(-12)),(-10),13);
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:(最高价+最低价+收盘价*2)/4
VAR2赋值:VAR1的21日指数移动平均
VAR3赋值:VAR1的21估算标准差
VAR4赋值:((VAR1-VAR2)/VAR3*100+200)/4
VAR5赋值:(VAR4的5日指数移动平均-25)*1.56
VAR6赋值:IF(DATETODAY(DATE)<9876,1,DRAWNULL)
VAR7赋值:117123099
如果DATE<2342.459961*500返回1否则返回DRAWNULL
VAR9赋值:35日内最低价最低值
VAR10:=30日内最高价最高值*VAR8
VAR11:=EMA((收盘价-VAR9)/(VAR10-VAR9)*4,4)*19
VAR12:=收盘价的5日简单移动平均
DRAWICON(VAR11<6 AND 100*(19日内最高价最高值-收盘价)/(19日内最高价最高值-19日内最低价最低值*VAR6)>97,100,11)*VAR8
VAR13:=1日前的收盘价
VAR14:=SMA(收盘价-VAR13和0较大值,6,1)/SMA(收盘价-VAR13的绝对值,6,1)*100
VAR15:=EMA((收盘价-MA(收盘价,7))/MA(收盘价,7)*480,2)*5
VAR16:=EMA((收盘价-MA(收盘价,11)*VAR6)/MA(收盘价,11)*480,7)*5
VAR17:=VAR14上穿25
VAR18:=VAR15上穿VAR16 AND VAR15<(-10)
VAR19:=FILTER(统计3日满足VAR17 OR VAR18的天数>=2,3)
VAR20:=(收盘价-收盘价的24日简单移动平均)/收盘价的24日简单移动平均*100*VAR8
VAR21:=最低价
VAR22:=1日前的最低价
VAR23:=SMA(VAR21-VAR22的绝对值,3,1)/SMA(VAR21-VAR22和0较大值,3,1)*100
VAR24:=VAR23/10的3日简单移动平均*VAR6
VAR25:=30日内最低价最低值
VAR26:=30日内VAR24最高值
MA(IF(最低价<=VAR25,(VAR24+VAR26*2)/5,0),3)
VAR27:=REF((最低价+开盘价+收盘价+最高价)/4,1)
VAR28:=SMA(最低价-VAR27的绝对值,13,1)/SMA(最低价-VAR27和0较大值,10,1)
VAR29:=VAR28的10日指数移动平均
VAR30:=33日内最低价最低值
如果最低价<=VAR30返回VAR29否则返回0
STICKLINE(VAR31>1日前的VAR31,0,VAR31*2,2,0),画黄色
输出洗盘:IF(VAR31<1日前的VAR31,VAR31,0),COLORLIGREEN
VAR32:=REF((最低价+开盘价+收盘价+最高价)/4,1)
VAR33:=SMA(最低价-VAR32的绝对值,13,1)/SMA(最低价-VAR32和0较大值,10,1)
VAR34:=VAR33的10日指数移动平均
VAR35:=33日内最低价最低值
如果最低价<=VAR35返回VAR34否则返回0
STICKLINE(VAR36>1日前的VAR36,0,VAR36,2,0)*VAR8,画绿色
STICKLINE(VAR36<1日前的VAR36,0,VAR36*2,2,0)*VAR8,画红色
输出找主力吸筹提款:VAR36>4日前的VAR36,画洋红色
VAR37:=(最高价+最低价+收盘价*2)/4
VAR38:=VAR37的7日指数移动平均
VAR39:=VAR37的7估算标准差
VAR40:=(VAR37-VAR38)*100/VAR3
VAR41:=VAR40的3日指数移动平均*VAR8
VAR42:=成交额/成交量/100
输出主力进场:IF(VAR31>1日前的VAR31*VAR6,VAR31*1.5,0)*VAR8,画红色, 线宽为2
VAR43:=1日前的最低价*VAR6
VAR44:=SMA(最低价-VAR43的绝对值,3,1)/SMA(最低价-VAR43和0较大值,3,1)*100
如果收盘价*1.3返回VAR44*10否则返回VAR44/10
VAR46:=30日内最低价最低值
VAR47:=30日内VAR45最高值
VAR48:=IF(收盘价的58日简单移动平均,1,0)
VAR49:=EMA(IF(最低价<=VAR46,(VAR45+VAR47*2)/2,0),3)/618*VAR48
如果VAR49>100返回100否则返回VAR49
输出吸筹:STICKLINE(VAR50>(-120),0,VAR50,6,1)*VAR8,画红色
VAR51:=1日前的最低价
VAR52:=SMA(最低价-VAR51的绝对值,3,1)/SMA(最低价-VAR51和0较大值,3,1)*100
如果收盘价*1.3返回VAR52*10否则返回VAR52/10
VAR54:=30日内最低价最低值
VAR55:=30日内VAR53最高值
VAR56:=IF(收盘价的58日简单移动平均,1,0)
VAR57:=EMA(IF(最低价<=VAR54,(VAR53+VAR55*2)/2,0),3)/618*VAR56
如果VAR57>100返回100否则返回VAR57
吸筹2:STICKLINE(VAR58>(-120),0,VAR58/3,2,1)*VAR8,画洋红色
VAR59:=1日前的收盘价
VAR60:=SMA(收盘价-VAR59和0较大值,4.1,1)/SMA(收盘价-VAR59的绝对值,4.1,1)*100
输出黄买:FILTER(2日前的收盘价<收盘价 AND VAR60<25,7),画黄色
STICKLINE(黄买,0,(-40),10,1)*VAR8,画黄色
VAR61:=FILTER(2日前的收盘价>收盘价 AND VAR60>80,7)
当满足条件VAR61时,在100和82之间画柱状线
输出红买:FILTER(VAR60上穿11,7)*VAR8,画红色
STICKLINE(红买,0,(-30),6,0),画红色
VAR62:=FILTER(89上穿VAR60,7)*VAR8
当满足条件VAR62时,在100和88之间画柱状线
输出绿买:FILTER(VAR60上穿20,7)*VAR8,画绿色
STICKLINE(绿买,0,(-20),6,0),画洋红色
VAR63:=FILTER(80上穿VAR60,7)
当满足条件VAR63时,在100和94之间画柱状线
输出★遵守纪律★:100,画红色
输出★交易之魂★:100,画红色
VAR64:=EMA(收盘价计算的获利盘比例*70,3)
VAR65:=EMA((收盘价*1.1计算的获利盘比例-WINNER(收盘价*0.9))*80,3)
输出主力控盘:VAR64/(VAR64+VAR65)*100,画黄色, 线宽为2
输出上限:20日内主力控盘最高值,画绿色, 线宽为2
输出下限:20日内主力控盘最低值,画红色, 线宽为2
输出中线:(上限+下限)/2,POINTDOT,画黄色, 线宽为2
VAR66:=(收盘价-20日内最低价最低值)/(20日内最高价最高值-20日内最低价最低值)*100
VAR66的3日[1日权重]移动平均
VAR68:=VAR67的5日指数移动平均
VAR69:=3*VAR67-2*VAR68
VAR70:=VAR69上穿VAR67 AND VAR67<2.1 AND 收盘价>开盘价
当满足条件VAR70时,在30和0之间画柱状线
当满足条件VAR70时,在30和0之间画柱状线
当满足条件VAR70时,在30和0之间画柱状线
当满足条件VAR70时,在30和0之间画柱状线
当满足条件VAR70时,在30和0之间画柱状线
当满足条件VAR70时,在36和5位置书写文字
当满足条件VAR70时,在36和5位置书写文字
输出AK:VAR5的2日指数移动平均*1.22
输出AD1:AK的2日指数移动平均
输出AJ:3*AK-2*AD1
DRAWTEXT(AK上穿AD1,AK,4),画红色
DRAWTEXT(AD1上穿AK,AK,4),画白色
输出WW:(VAR41的5日指数移动平均+100)/2-3,画洋红色
输出{股票指标网 整理}
MM:3日内WW最高值,COLORFF3333
当满足条件VAR17时,在0和6位置书写文字
当满足条件VAR19时,在0和7位置书写文字
DRAWICON(85上穿VAR14,102,15)
DRAWICON(VAR14上穿25,10,26)
DRAWICON(VAR15上穿VAR16 AND VAR15<(-10),20,24)
DRAWICON(CROSS(VAR20,(-12)),(-10),13)