未来函数检测结果如下:
该公式包含未来函数:BACKSET
指标源码:
原理解析:
HH赋值:5日前的H=11日内H最高值
LL赋值:5日前的L=11日内L最低值
FG01赋值:BACKSET(HH,6)>BACKSET(HH,5)
FD01赋值:BACKSET(LL,6)>BACKSET(LL,5)
FG0赋值:FG01 AND H=HHV(H,上次FD01距今天数)
FD0赋值:FD01 AND L=LLV(L,上次FG01距今天数)
J0赋值:(H+L)/2
{股票指标网}
FGH赋值:REF(H,上次FG0距今天数)
FGH1赋值:REF(H,上次FG0距今天数+1)
FGL1赋值:REF(L,上次FG0距今天数+1)
FGH2赋值:REF(H,上次FG0距今天数+2)
FGL2赋值:REF(L,上次FG0距今天数+2)
FGJ0赋值:REF(J0,上次FG0距今天数)
FGL赋值:REF(L,上次FG0距今天数)
FDH赋值:REF(H,上次FD0距今天数)
FDL赋值:REF(L,上次FD0距今天数)
FDH1:=REF(H,上次FD0距今天数+1)
FDL1:=REF(L,上次FD0距今天数+1)
FDH2:=REF(H,上次FD0距今天数+2)
FDL2:=REF(L,上次FD0距今天数+2)
FDJ0赋值:REF(J0,上次FD0距今天数)
如果FGL
如果FDH>FDH1返回FDL2否则返回FDL1
FG1赋值:IF(((FGL>FDH AND FGH>FDZH) OR (FGH>FDH1 AND FDH1>FDH AND FDH>FDH2)),FG0
,FG0 AND FGJ0>FDH AND FGH>FDZH)
FD1赋值:IF(((FDH
FD2赋值:FD1 AND L<=LLV(L,上次FG1距今天数)
FG赋值:FG2 AND KDJ.K>40
FD赋值:FD2 AND KDJ.K<60
BK赋值:IF((FGL1>=FGL AND FG0) OR (FDH1<=FDH AND FD0),4,3)
G1赋值:FG AND 上次FD距今天数>BK
D1赋值:FD AND 上次FG距今天数>BK
G2赋值:G1 AND H>=HHV(H,上次D1距今天数)
D2赋值:D1 AND L<=LLV(L,上次G1距今天数)
G3赋值:G2 OR (FG0 AND KDJ.J>100)
D3赋值:D2 OR (FD0 AND KDJ.J<0)
G4赋值:G3 OR (FG0 AND REF(H,上次FG0距今天数)>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2))
D4赋值:D3 OR (FD0 AND REF(L,上次FD0距今天数)BARSLAST(D2))
G5赋值:G4 AND H=HHV(H,上次D4距今天数)
D5赋值:D4 AND L=LLV(L,上次G4距今天数)
如果G4返回H否则返回DRAWNULL
如果D4返回L否则返回DRAWNULL
NN赋值:G5
UU赋值:D5
DRAWLINE(UU,L,NN, H,0),COLORYELLOW
DRAWLINE(NN,H,UU, L,0),COLORYELLOW
生命线赋值:收盘价的22日简单移动平均, 线宽为2,画红色
A赋值:(3*C+L+O+H)/6
X赋值:(20*A+19*1日前的A+18*2日前的A+17*3日前的A+16*4日前的A+15*5日前的A+
14*6日前的A+13*7日前的A+12*8日前的A+11*9日前的A+10*10日前的A+9*11日前的A+8*12日前的A
+7*13日前的A+6*14日前的A+5*15日前的A+4*16日前的A+3*17日前的A+2*18日前的A+
20日前的A)/210
C的3日[1日权重]移动平均
C的5日[1日权重]移动平均
DK赋值:2*(S2-S6)
主力成本赋值:X的13日指数移动平均,COLORFF00FF,LINETHICK0
短期底部赋值:30日内最高价最低值, 线宽为2,COLORFFCC00
MA5:=C的5日简单移动平均
MA10:=C的10日简单移动平均
MA30:=C的30日简单移动平均
FA赋值:上次MA10上穿MA5距今天数 AND MA5上穿MA10
FB赋值:FA AND MA5>MA30 AND MA10>MA30 AND MA10>1日前的MA10
{股票指标网}
V1赋值:收盘价的5日指数移动平均
V2赋值:收盘价的90日指数移动平均*1.01,10)
VAR1:=21日内最低价最低值
VAR2:=21日内最高价最高值
AK1:=EMA((((收盘价 - VAR1) / (VAR2 - VAR1)) * 100),5)
AK:=EMA((((收盘价 - VAR1) / (VAR2 - VAR1)) * 50),13)
AB:=AK1上穿AK
AA1:=AMOUNT/V
BB1赋值:L
DD1赋值:L
VAR4AA赋值:IF(((收盘价)/(1日前的收盘价)>1.05) AND ((最高价)/(收盘价)<1.01) AND (VAR3AA>0),91,0)
A1AA赋值:9
A2AA赋值:(A1AA+1日前的收盘价<收盘价)
VAR6:=1日前的C
VAR7:=SMA(C-VAR6和0较大值,6,1)/SMA(C-VAR6的绝对值,6,1)*100
DRAWTEXT(82上穿VAR7,H*1.01,'抛'),画绿色
STICKLINE(C/1日前的C>1.07,C,O,2,0),COLORYELLOW
HJ_1赋值:收盘价>4日前的收盘价
HJ_2赋值:BARSLASTCOUNT(HJ_1)
HJ_3赋值:HJ_2=9
HJ_4赋值:HJ_2=13
HJ_5赋值:HJ_2=18
HJ_6赋值:ISLASTBAR AND BETWEEN(HJ_2,1,8)
HJ_7赋值:ISLASTBAR AND BETWEEN(HJ_2,10,12)
HJ_8赋值:ISLASTBAR AND BETWEEN(HJ_2,14,17)
HJ_9赋值:(BACKSET(HJ_4>0,13) OR BACKSET(HJ_3>0,9) OR BACKSET(HJ_5>0,18) OR BACKSET(HJ_6>0,HJ_2) OR BACKSET(HJ_7>0,HJ_2) OR BACKSET(HJ_8>0,HJ_2))*HJ_2
DRAWTEXT(HJ_9>0 AND HJ_9<18,最高价*1.01,VAR2STR(HJ_9,0)),COLORMAGENTA
DRAWTEXT(HJ_9>0 AND (HJ_2=9 OR HJ_2=13 OR HJ_2=18),最高价*1.01,VAR2STR(HJ_9,0)),画绿色
HJ_10:=收盘价<4日前的收盘价
HJ_11:=BARSLASTCOUNT(HJ_10)
HJ_12:=HJ_11=9
HJ_13:=HJ_11=13
HJ_14:=HJ_11=18
HJ_15:=ISLASTBAR AND BETWEEN(HJ_11,1,8)
HJ_16:=ISLASTBAR AND BETWEEN(HJ_11,10,12)
HJ_17:=ISLASTBAR AND BETWEEN(HJ_11,14,17)
HJ_18:=(BACKSET(HJ_12>0,9) OR BACKSET(HJ_13>0,13) OR BACKSET(HJ_14>0,18) OR BACKSET(HJ_15>0,HJ_11) OR BACKSET(HJ_16>0,HJ_11) OR BACKSET(HJ_17>0,HJ_11))*HJ_11
DRAWTEXT(HJ_18>0 AND HJ_18<18,最低价*0.99,VAR2STR(HJ_18,0)),COLORMAGENTA
DRAWTEXT(HJ_18>0 AND (HJ_11=9 OR HJ_11=13 OR HJ_11=18),最低价*0.99,VAR2STR(HJ_18,0)),画绿色