同花顺K线顶底公式
适用范围:1分钟K线,T+0精准找出当日买进卖出点
源码
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
V1:=((C*2+H+L)/4)*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
V11:=3*SMA((C-LLV(L,26))/(HHV(H,26)-LLV(L,26))*100,5,1)-2*SMA(SMA((C-LLV(L,25))/(HHV(H,25)-LLV(L,25))*100,5,1),3,1);
快线:=EMA(V11,5);
V11B:=3*SMA((C-LLV(L,120))/(HHV(H,120)-LLV(L,120))*100,5,1)-2*SMA(SMA((C-LLV(L,120))/(HHV(H,120)-LLV(L,120))*100,5,1),3,1);
慢线:=EMA(V11B,10);
趋势线:EMA((RSI1+快线+慢线)/3,5),coloryellow;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金: STICKLINE(趋势线<=10,0,10,3,0),COLORCC9900;
AA:=(趋势线<=10) AND FILTER((趋势线<=10),15);
买入股票: STICKLINE(RSI1<10 AND 快线<6 AND 快线<REF(快线,1) AND 慢线<10 AND 慢线<REF(慢线,1),0,50,3,0),COLOR0099FF;
BB:=(RSI1<10 AND 趋势线<=9 AND V12<-1) AND FILTER((趋势线<=9 AND V12<-1),10) ;
DRAWTEXT (BB,-5,'买入股票'),colorred;
卖临界: STICKLINE(趋势线>90 AND 趋势线>REF(趋势线,1),100,95,3,1),COLORFFFF00;
清仓:FILTER(RSI1>80 AND 快线>96 AND 快线>REF(快线,1) AND 慢线>90 AND 慢线>REF(慢线,1),8);
DRAWTEXT( 清仓,80,'卖出'),colorgreen;