飞狐筹码黄金线副图指标
源码
N1:=3;N2:=5;N3:=13;N4:=89;
筹码短期: DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,N1)/(AMOUNT/VOL/100)/100));
筹码中期: DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,N2)/(AMOUNT/VOL/100)/100));
筹码长期: DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,N3)/(AMOUNT/VOL/100)/100));
筹码★期: DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,N4)/(AMOUNT/VOL/100)/100));
Var2:=100*(MA(CLOSE,13)-REF(MA(CLOSE,13),1))/REF(MA(CLOSE,13),1)>0 or 100*(筹码中期-REF(筹码中期,1))/REF(筹码中期,1)>0 or SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,5,1),10,1)>80 or SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,5,1)>80 or 3*SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1)-2*SMA(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1),3,1)>0 or CROSS(SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,5,1),10,1),SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,5,1));
Var3:=100*(MA(CLOSE,13)-REF(MA(CLOSE,13),1))/REF(MA(CLOSE,13),1)<0 AND 100*(筹码中期-REF(筹码中期,1))/REF(筹码中期,1)<0 AND 100*(CLOSE-筹码中期)/筹码中期<0;
STICKLINE(Var2 AND OPEN>=CLOSE,OPEN,CLOSE,7,0), ,colorred;
STICKLINE(Var2 AND OPEN<CLOSE,OPEN,CLOSE,7,1), ,colorred;
STICKLINE(Var2 AND OPEN>CLOSE,HIGH,OPEN,0.8,0), ,colorred;
STICKLINE(Var2 AND OPEN>CLOSE,LOW,CLOSE,0.8,0), ,colorred;
STICKLINE(Var2 AND OPEN<=CLOSE,HIGH,CLOSE,0.8,0), ,colorred;
STICKLINE(Var2 AND OPEN<=CLOSE,LOW,OPEN,0.8,0), ,colorred;
STICKLINE(Var3,OPEN,CLOSE,7,0), ,colorcyan;
STICKLINE(Var3 AND OPEN>CLOSE,OPEN,CLOSE,7,0), ,colorcyan;
STICKLINE(Var3 AND OPEN<CLOSE,OPEN,CLOSE,7,1), ,colorcyan;
STICKLINE(Var3 AND OPEN<=CLOSE,HIGH,LOW,0.8,0), ,colorcyan;
STICKLINE(Var3 AND OPEN>CLOSE,OPEN,HIGH,0.8,1), ,colorcyan;
STICKLINE(Var3 AND OPEN>CLOSE,LOW,CLOSE,0.8,0), ,colorcyan;