通达信公式「金钻指标」金钻红K线,让你稳抓暴涨底部信号
指标源码
DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信订阅号:翔博软件工作室'),COLOR556699;
N:=10;
A1:=EMA(CLOSE,3),COLORFFFF77;
VV2:=REF(CLOSE,1);
VV3:=((SMA((CLOSE - VV2),6,1) / SMA(ABS((CLOSE - VV2)),6,1)) * 100);
DRAWICON(((REF(VV3,1) > 81) AND (VV3 < 80)),HIGH,2);
HD10:=FILTER(BACKSET(FILTER(REF(H,10)=HHV(H,2*10+1),10),10+1),10);
LD10:=FILTER(BACKSET(FILTER(REF(H,10)=LLV(H,2*10+1),10),10+1),10);
A10:=REF(H,BARSLAST(HD10));
AX10:=REF(H,BARSLAST(HD10));
T10:=BARSLAST(HD10)顶10:=IF(T10,AX10,A10);
HD30:=FILTER(BACKSET(FILTER(REF(H,30)=HHV(H,2*30+1),30),30+1),30);
LD30:=FILTER(BACKSET(FILTER(REF(H,30)=LLV(H,2*30+1),30),30+1),30);
HD20:=FILTER(BACKSET(FILTER(REF(H,20)=HHV(H,2*20+1),20),20+1),20);
LD20:=FILTER(BACKSET(FILTER(REF(H,20)=LLV(H,2*20+1),20),20+1),20);
AX30:=REF(H,BARSLAST(HD30));
AX20:=REF(H,BARSLAST(HD20));
T30:=BARSLAST(HD30)T20:=BARSLAST(HD20)顶30:IF(T30,AX30,AX30),COLORFF00FF,POINTDOT,LINETHICK3;
STICKLINE(T30,AX30,AX30,30,0),COLORFF00FF ;
顶20:IF(T20,AX20,AX20),COLORGREEN,POINTDOT,LINETHICK2;
STICKLINE(T20,AX20,AX20,20,0),COLORGREEN;