飞狐超级慢速关注副图指标
源码
n:=18;
m:=8;
m1:=4;
Var1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
Var2:=SMA(Var1,M1,1);
卖线: SMA(Var2,M1,1), , ;
Var3:=(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*100;
Var4:=SMA(Var3,M1,1);
Var5:=SMA(Var4,M1,1);
买入线: SMA(Var5,M1,1);
必卖线: SMA(卖线,M1,1);
高压线: 85, , ;
触底线: 9, , ;
DRAWTEXT(买入线>76.5 AND CROSS(卖线,必卖线),必卖线*1.15,'进!'), , ;
DRAWTEXT(买入线>56 AND 买入线<=76 AND CROSS(卖线,必卖线),卖线,'留意'), , ;
DRAWTEXT(买入线<45 AND 卖线>78 AND 必卖线>78 AND CROSS(必卖线,卖线),必卖线,'跑'),colorgreen , ;
DRAWTEXT(CROSS(买入线,78.5),买入线,'关注!'),colorred ,;
DRAWTEXT(CROSS(买入线,85),买入线,'重点关注!!!'),colorblue , ;
a:=LSOLARTERM(date);
DRAWTEXT(a=1,0,'●小寒'),colorblue;
DRAWTEXT(a=2,0,'●大寒'),colorblue;
DRAWTEXT(a=3,0,'●立春'),colorblue;
DRAWTEXT(a=4,0,'●雨水'),colorblue;
DRAWTEXT(a=5,0,'●惊蛰'),colorblue;
DRAWTEXT(a=6,0,'●春分'),colorblue;
DRAWTEXT(a=7,0,'●清明'),colorblue;
DRAWTEXT(a=8,0,'●谷雨'),colorblue;
DRAWTEXT(a=9,0,'●立夏'),colorblue;
DRAWTEXT(a=10,0,'●小满'),colorblue;
DRAWTEXT(a=11,0,'●芒种'),colorblue;
DRAWTEXT(a=12,0,'●夏至'),colorblue;
DRAWTEXT(a=13,0,'●小暑'),colorblue;
DRAWTEXT(a=14,0,'●大暑'),colorblue;
DRAWTEXT(a=15,0,'●立秋'),colorblue;
DRAWTEXT(a=16,0,'●处暑'),colorblue;
DRAWTEXT(a=17,0,'●白露'),colorblue;
DRAWTEXT(a=18,0,'●秋分'),colorblue;
DRAWTEXT(a=19,0,'●寒露'),colorblue;
DRAWTEXT(a=20,0,'●霜降'),colorblue;
DRAWTEXT(a=21,0,'●立冬'),colorblue;
DRAWTEXT(a=22,0,'●小雪'),colorblue;
DRAWTEXT(a=23,0,'●大雪'),colorblue;
DRAWTEXT(a=24,0,'●冬至'),colorblue;