决战短线(自用精品)
趋势:MA(MA(CLOSE,3),3),COLOR00DD00;
持股:IF(C>趋势,趋势,DRAWNULL),COLORDD00DD;
N:=25;AA:=50;BB:=3;
高1:=REF(HHV(H,AA),BB);低1:=REF(LLV(L,AA),BB);
H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;L1:=低1+(高1-低1)*1.191;
L2:=低1+(高1-低1)*1.382;L3:=低1+(高1-低1)*1.5;
L4:=低1+(高1-低1)*1.618;L5:=低1+(高1-低1)*1.809;
STICKLINE(CURRBARSCOUNT=N,REFDATE(高1,DATE),REFDATE(高1,DATE),N*8,0),COLOR00DD00;
STICKLINE(CURRBARSCOUNT=N,REFDATE(H1,DATE),REFDATE(H1,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(H2,DATE),REFDATE(H2,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(H3,DATE),REFDATE(H3,DATE),N*8,0),COLOR009900;
STICKLINE(CURRBARSCOUNT=N,REFDATE(H4,DATE),REFDATE(H4,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(H5,DATE),REFDATE(H5,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(低1,DATE),REFDATE(低1,DATE),N*8,0),COLORDD00DD;
STICKLINE(CURRBARSCOUNT=N,REFDATE(L1,DATE),REFDATE(L1,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(L2,DATE),REFDATE(L2,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(L3,DATE),REFDATE(L3,DATE),N*8,0),COLOR009900;
STICKLINE(CURRBARSCOUNT=N,REFDATE(L4,DATE),REFDATE(L4,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(L5,DATE),REFDATE(L5,DATE),N*8,0),COLORDD00DD;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出趋势:收盘价的3日简单移动平均,3),COLOR00DD00
如果C>趋势返回趋势否则返回DRAWNULL
N赋值:25
AA赋值:50
BB赋值:3
高1赋值:REF(AA日内H最高值,BB)
低1赋值:REF(AA日内L最低值,BB)
H1赋值:高1-(高1-低1)*0.191
H2赋值:高1-(高1-低1)*0.382
H3赋值:高1-(高1-低1)*0.5
H4赋值:高1-(高1-低1)*0.618
H5赋值:高1-(高1-低1)*0.809
L1赋值:低1+(高1-低1)*1.191
L2赋值:低1+(高1-低1)*1.382
L3赋值:低1+(高1-低1)*1.5
L4赋值:低1+(高1-低1)*1.618
L5赋值:低1+(高1-低1)*1.809
STICKLINE( 到最后交易的周期=N,REFDATE(高1,DATE),REFDATE(高1,DATE),N*8,0),COLOR00DD00
STICKLINE( 到最后交易的周期=N,REFDATE(H1,DATE),REFDATE(H1,DATE),N*8,0),COLOR009999
STICKLINE( 到最后交易的周期=N,REFDATE(H2,DATE),REFDATE(H2,DATE),N*8,0),COLOR009999
STICKLINE( 到最后交易的周期=N,REFDATE(H3,DATE),REFDATE(H3,DATE),N*8,0),COLOR009900
STICKLINE( 到最后交易的周期=N,REFDATE(H4,DATE),REFDATE(H4,DATE),N*8,0),COLOR009999
STICKLINE( 到最后交易的周期=N,REFDATE(H5,DATE),REFDATE(H5,DATE),N*8,0),COLOR009999
STICKLINE( 到最后交易的周期=N,REFDATE(低1,DATE),REFDATE(低1,DATE),N*8,0),COLORDD00DD
STICKLINE( 到最后交易的周期=N,REFDATE(L1,DATE),REFDATE(L1,DATE),N*8,0),COLOR009999
STICKLINE( 到最后交易的周期=N,REFDATE(L2,DATE),REFDATE(L2,DATE),N*8,0),COLOR009999
STICKLINE( 到最后交易的周期=N,REFDATE(L3,DATE),REFDATE(L3,DATE),N*8,0),COLOR009900
STICKLINE( 到最后交易的周期=N,REFDATE(L4,DATE),REFDATE(L4,DATE),N*8,0),COLOR009999
STICKLINE( 到最后交易的周期=N,REFDATE(L5,DATE),REFDATE(L5,DATE),N*8,0),COLORDD00DD