反K线选股
2020/1/21 19:12:41
公式编写说明:
请老师做一选股指标:选出最低价小于等于红线。源码如下:{正反K线}日:=100;昨前:=3;高1:=REF(HHV(H,日),昨前);低1:=REF(LLV(L,日),昨前);低:REFDATE(低1,DATE),COLORRED,LINETHICK2;DRAWKLINE(低+(低-LOW), 低+(低-OPEN), 低+(低-HIGH),低+ (低-CLOSE));VARC:=低+(低-OPEN);WR1:=低+(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5));WR2:=低-(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5));M1:MA(C,5),COLORYELLOW;M2:MA(C,10),COLORMAGENTA;M3:MA(C,30),COLORGREEN;M4:MA(C,60),COLORLIGRAY;{M5:MA(C,120),COLORBLUE;}{M1A:MA(VARC,5),COLORYELLOW;M2B:MA(VARC,10),COLORMAGENTA;M3C:MA(VARC,30),COLORGREEN;M4D:MA(VARC,60),COLORLIGRAY;M5E:MA(VARC,120);}STICKLINE(C>OPEN,低+(低-OPEN), 低+ (低-CLOSE),3,0), COLORRED; STICKLINE(C<OPEN,低+(低-OPEN), 低+ (低-CLOSE),3,0), COLORCYAN;STICKLINE(C=OPEN,低+(低-OPEN), 低+ (低-CLOSE),3,0), COLORWHITE;STICKLINE(C>O ,C ,H ,0 ,0 ),COLORRED;STICKLINE(C>O ,O ,L ,0 ,0 ),COLORRED;STICKLINE(C<O ,O ,H ,0 ,0 ),COLORCYAN;STICKLINE(C<O ,C ,L ,0 ,0 ),COLORCYAN;STICKLINE(C=O ,C ,L ,0 ,0),COLORWHITE;STICKLINE(C=O ,O ,H ,0 ,0 ),COLORWHITE;
公式源码回答:
日:=100;
昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
低:L<=REFDATE(低1,DATE);
投股 票网 www.tou18 .cn
股市公式下载推荐