筹码主图操盘必备支撑压力 趋势了然!
DA0:=IF(240>TOTALBARSCOUNT,TOTALBARSCOUNT,240);
DA1:=IF(CURRBARSCOUNT>DA0,0,DA0);
DA2:=IF(CURRBARSCOUNT<=DA1,C,DRAWNULL);
H1:=REFDATE(HHV(H,DA1),DATE);
L0:=REFDATE(LLV(L,DA1),DATE);
HL:=EXP(LN(H1/L0)/10);
LH1:=SUM(IF(DA2>=(H1/POW(HL,1)) AND DA2<(H1/POW(HL,0)),V,0),DA1);
LH2:=SUM(IF(DA2>=(H1/POW(HL,2)) AND DA2<(H1/POW(HL,1)),V,0),DA1);
LH3:=SUM(IF(DA2>=(H1/POW(HL,3)) AND DA2<(H1/POW(HL,2)),V,0),DA1);
LH4:=SUM(IF(DA2>=(H1/POW(HL,4)) AND DA2<(H1/POW(HL,3)),V,0),DA1);
LH5:=SUM(IF(DA2>=(H1/POW(HL,5)) AND DA2<(H1/POW(HL,4)),V,0),DA1);
LH6:=SUM(IF(DA2>=(H1/POW(HL,6)) AND DA2<(H1/POW(HL,5)),V,0),DA1);
LH7:=SUM(IF(DA2>=(H1/POW(HL,7)) AND DA2<(H1/POW(HL,6)),V,0),DA1);
LH8:=SUM(IF(DA2>=(H1/POW(HL,8)) AND DA2<(H1/POW(HL,7)),V,0),DA1);
LH9:=SUM(IF(DA2>=(H1/POW(HL,9)) AND DA2<(H1/POW(HL,8)),V,0),DA1);
LH10:=SUM(IF(DA2>=(H1/POW(HL,10)) AND DA2<(H1/POW(HL,9)),V,0),DA1);
L1:=REFDATE(HHV(LH1,DA1),DATE);
L2:=REFDATE(HHV(LH2,DA1),DATE);
L3:=REFDATE(HHV(LH3,DA1),DATE);
L4:=REFDATE(HHV(LH4,DA1),DATE);
L5:=REFDATE(HHV(LH5,DA1),DATE);
L6:=REFDATE(HHV(LH6,DA1),DATE);
L7:=REFDATE(HHV(LH7,DA1),DATE);
L8:=REFDATE(HHV(LH8,DA1),DATE);
L9:=REFDATE(HHV(LH9,DA1),DATE);
L10:=REFDATE(HHV(LH10,DA1),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);
STICKLINE(CEILING(DA1*L1/SS)*3>=CURRBARSCOUNT,H1/POW(HL,0)*99/100,H1/POW(HL,1),9,0),coloryellow,LINETHICK3;
STICKLINE(CEILING(DA1*L2/SS)*3>=CURRBARSCOUNT,H1/POW(HL,1)*99/100,H1/POW(HL,2),9,0),coloryellow,LINETHICK3;
STICKLINE(CEILING(DA1*L3/SS)*3>=CURRBARSCOUNT,H1/POW(HL,2)*99/100,H1/POW(HL,3),9,0),colorcyan,LINETHICK3;
STICKLINE(CEILING(DA1*L4/SS)*3>=CURRBARSCOUNT,H1/POW(HL,3)*99/100,H1/POW(HL,4),9,0),colorcyan,LINETHICK3;
STICKLINE(CEILING(DA1*L5/SS)*3>=CURRBARSCOUNT,H1/POW(HL,4)*99/100,H1/POW(HL,5),9,0),colorgreen,LINETHICK3;
STICKLINE(CEILING(DA1*L6/SS)*3>=CURRBARSCOUNT,H1/POW(HL,5)*99/100,H1/POW(HL,6),9,0),colorgreen,LINETHICK3;
STICKLINE(CEILING(DA1*L7/SS)*3>=CURRBARSCOUNT,H1/POW(HL,6)*99/100,H1/POW(HL,7),9,0),colorred,LINETHICK3;
STICKLINE(CEILING(DA1*L8/SS)*3>=CURRBARSCOUNT,H1/POW(HL,7)*99/100,H1/POW(HL,8),9,0),colorred,LINETHICK3;
STICKLINE(CEILING(DA1*L9/SS)*3>=CURRBARSCOUNT,H1/POW(HL,8)*99/100,H1/POW(HL,9),9,0),colormagenta,LINETHICK3;
STICKLINE(CEILING(DA1*L10/SS)*3>=CURRBARSCOUNT,H1/POW(HL,9)*99/100,H1/POW(HL,10),9,0),colormagenta,LINETHICK3;
STICKLINE(C>REF(C,1),C,REF(C,1),6,0),colorred;
STICKLINE(C<REF(C,1),C,REF(C,1),6,0),colorgreen;
STICKLINE(C=REF(C,1),C,REF(C,1),6,0),colorwhite;
STICKLINE(C>REF(C,1),H,L,1,0),colorred;
STICKLINE(C<REF(C,1),H,L,1,0),colorgreen;
STICKLINE(C=REF(C,1),H,L,1,0),colorwhite;
aa:SUM(C*VOL,10)/SUM(VOL,10),colorwhite,LINETHICK2;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
如果240>TOTALBARSCOUNT返回TOTALBARSCOUNT否则返回240
如果 到最后交易的周期>DA0返回0否则返回DA0
如果 到最后交易的周期<=DA1返回C否则返回DRAWNULL
H1赋值:REFDATE(DA1日内H最高值,DATE)
L0赋值:REFDATE(DA1日内L最低值,DATE)
HL赋值:EXP(LN(H1/L0)/10)
LH1赋值:SUM(IF(DA2>=(H1/POW(HL,1)) AND DA2<(H1/POW(HL,0)),V,0),DA1)
LH2赋值:SUM(IF(DA2>=(H1/POW(HL,2)) AND DA2<(H1/POW(HL,1)),V,0),DA1)
LH3赋值:SUM(IF(DA2>=(H1/POW(HL,3)) AND DA2<(H1/POW(HL,2)),V,0),DA1)
LH4赋值:SUM(IF(DA2>=(H1/POW(HL,4)) AND DA2<(H1/POW(HL,3)),V,0),DA1)
LH5赋值:SUM(IF(DA2>=(H1/POW(HL,5)) AND DA2<(H1/POW(HL,4)),V,0),DA1)
LH6赋值:SUM(IF(DA2>=(H1/POW(HL,6)) AND DA2<(H1/POW(HL,5)),V,0),DA1)
LH7赋值:SUM(IF(DA2>=(H1/POW(HL,7)) AND DA2<(H1/POW(HL,6)),V,0),DA1)
LH8赋值:SUM(IF(DA2>=(H1/POW(HL,8)) AND DA2<(H1/POW(HL,7)),V,0),DA1)
LH9赋值:SUM(IF(DA2>=(H1/POW(HL,9)) AND DA2<(H1/POW(HL,8)),V,0),DA1)
LH10:=SUM(IF(DA2>=(H1/POW(HL,10)) AND DA2<(H1/POW(HL,9)),V,0),DA1)
L1赋值:REFDATE(DA1日内LH1最高值,DATE)
L2赋值:REFDATE(DA1日内LH2最高值,DATE)
L3赋值:REFDATE(DA1日内LH3最高值,DATE)
L4赋值:REFDATE(DA1日内LH4最高值,DATE)
L5赋值:REFDATE(DA1日内LH5最高值,DATE)
L6赋值:REFDATE(DA1日内LH6最高值,DATE)
L7赋值:REFDATE(DA1日内LH7最高值,DATE)
L8赋值:REFDATE(DA1日内LH8最高值,DATE)
L9赋值:REFDATE(DA1日内LH9最高值,DATE)
L10:=REFDATE(DA1日内LH10最高值,DATE)
SS赋值:(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10)
STICKLINE(CEILING(DA1*L1/SS)*3>= 到最后交易的周期,H1/POW(HL,0)*99/100,H1/POW(HL,1),9,0),画黄色, 线宽为3
STICKLINE(CEILING(DA1*L2/SS)*3>= 到最后交易的周期,H1/POW(HL,1)*99/100,H1/POW(HL,2),9,0),画黄色, 线宽为3
STICKLINE(CEILING(DA1*L3/SS)*3>= 到最后交易的周期,H1/POW(HL,2)*99/100,H1/POW(HL,3),9,0),画青色, 线宽为3
STICKLINE(CEILING(DA1*L4/SS)*3>= 到最后交易的周期,H1/POW(HL,3)*99/100,H1/POW(HL,4),9,0),画青色, 线宽为3
STICKLINE(CEILING(DA1*L5/SS)*3>= 到最后交易的周期,H1/POW(HL,4)*99/100,H1/POW(HL,5),9,0),画绿色, 线宽为3
STICKLINE(CEILING(DA1*L6/SS)*3>= 到最后交易的周期,H1/POW(HL,5)*99/100,H1/POW(HL,6),9,0),画绿色, 线宽为3
STICKLINE(CEILING(DA1*L7/SS)*3>= 到最后交易的周期,H1/POW(HL,6)*99/100,H1/POW(HL,7),9,0),画红色, 线宽为3
STICKLINE(CEILING(DA1*L8/SS)*3>= 到最后交易的周期,H1/POW(HL,7)*99/100,H1/POW(HL,8),9,0),画红色, 线宽为3
STICKLINE(CEILING(DA1*L9/SS)*3>= 到最后交易的周期,H1/POW(HL,8)*99/100,H1/POW(HL,9),9,0),画洋红色, 线宽为3
STICKLINE(CEILING(DA1*L10/SS)*3>= 到最后交易的周期,H1/POW(HL,9)*99/100,H1/POW(HL,10),9,0),画洋红色, 线宽为3
STICKLINE(C>1日前的C,C,1日前的C,6,0),画红色
STICKLINE(C<1日前的C,C,1日前的C,6,0),画绿色
STICKLINE(C=1日前的C,C,1日前的C,6,0),画白色
STICKLINE(C>1日前的C,H,L,1,0),画红色
STICKLINE(C<1日前的C,H,L,1,0),画绿色
STICKLINE(C=1日前的C,H,L,1,0),画白色
输出AA:10的C*成交量日累和/10的成交量日累和,画白色, 线宽为2