飞狐超级离恨七夕副图指标
源码
Var2a:=LLV(LOW,10);
Var3a:=HHV(HIGH,25);
aaa:= 25*(EMA((CLOSE-Var2a)/(Var3a-Var2a)*4,4));
A5:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;
a6:=MA(A5,10);
bbb:=10*(SMA(a6,3,1)/10);
ccc:=10*(HHV(HIGH,34)/LLV(LOW,34));
牛郎:aaa,linethick2,colorred;
织女:bbb,linethick2;
鹊桥:ccc,linethick2,colorcyan;
银河:IF(cross(织女,87.5),50,87.5),linethick2;
DRAWTEXT( cross(bbb,aaa) and bbb>56 ,60 ,'离别' )colorff9999,linethick4;
DRAWTEXT(cross(aaa,bbb) and aaa<ccc and bbb<ccc ,45 ,'七夕相会' )colormagenta,linethick4;
STICKLINE(cross(bbb,aaa) and bbb>56 ,100 ,50 ,6 ,0.9 )colorblue,linethick2;
STICKLINE(cross(aaa,ccc) and bbb<50 ,0 ,20 ,0.8 ,1 )colorgreen,linethick2;
STICKLINE(cross(aaa,bbb) and aaa<ccc and bbb<ccc ,0 ,50 ,6 ,0.9 )colorgreen,linethick2;
STICKLINE(cross(银河,aaa),100,80,0.8,1)colorcyan,linethick2;