机构能量线
机构做空能量线:SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3;
机构做多能量线:SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;
20,POINTDOT,COLORFF00FF,LINETHICK1;
50,POINTDOT,COLORGREEN,LINETHICK1;
80,POINTDOT,COLORWHITE,LINETHICK1;
【仅提供源码,需要公式请自己根据下面的录像编辑一下】
多空对比
短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),colorwhite;
中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),coloryellow;
中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),colorFF00FF;
长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),colorred,LINETHICK3;
机构做空能量线:=SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3;
机构做多能量线:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;
20,POINTDOT,COLORFF00FF,LINETHICK1;
50,POINTDOT,COLORGREEN,LINETHICK1;
80,POINTDOT,COLORWHITE,LINETHICK1;
单边二十:DRAWTEXT(机构做空能量线<50 AND 短期<20 AND 长期>50,(70),'32'),COLORFFFF00;
四线小六:DRAWTEXT(短期<6 AND 中期<6 AND 中长期<6 AND 长期<6,(60),'46'),COLORFFFF00;
四线小一:DRAWTEXT(短期<1 AND 中期<1 AND 中长期<1 AND 长期<1,(50),'41'),COLORFFFF00;
双线为零:DRAWTEXT(短期=0 AND 中期=0,(40),'20'),COLORFFFF00;
三线为零:DRAWTEXT(短期=0 AND 中期=0 AND 中长期=0,(30),'30'),COLORFFFF00;
四线为零:DRAWTEXT(短期=0 AND 中期=0 AND 中长期=0 AND 长期=0,(20),'40'),COLORFFFF00;
逃顶:DRAWTEXT(短期>=100 AND 中期>=100 AND 中长期<=100 AND 长期<100,(90),'D'),COLORFFFF00;
|