飞狐超级节气风暴副图指标
源码
Var1:=SMA((HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*200-125,5,1);
Var2:=SMA((CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*200-105,5,1);
多头: Var1;
空头: Var2;
生死线: 0, POINTDOT;
Var3:=(2*CLOSE+HIGH+LOW)/4;
Var4:=LLV(LOW,34);
Var5:=HHV(HIGH,34);
Var6:=EMA((Var3-Var4)/(Var5-Var4)*100,9);
Var7:=EMA((Var3-Var4)/(Var5-Var4)*100,31);
DRAWTEXT(CROSS(Var6,20) AND Var6>21,多头,'●买进');
DRAWTEXT(CROSS(Var6,80) AND Var6>75,多头,'●卖出');
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;