源码
N:=5;
n1:=13;
n2:=21 ;
n3:=55;
筹码短期: DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,N)/(AMOUNT/VOL/100)/100));
筹码中期: 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));
Var2:=100*(MA(CLOSE,8)-REF(MA(CLOSE,8),1))/REF(MA(CLOSE,8),1)>0 OR 100*(筹码中期-REF(筹码中期,1))/REF(筹码中期,1)>0 OR SMA(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5,1),10,1)>80 OR SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5,1)>80 OR 3*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,3,1)-2*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,3,1),3,1)>0 OR CROSS(SMA(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5,1),10,1),SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5,1));
Var3:=100*(MA(CLOSE,8)-REF(MA(CLOSE,8),1))/REF(MA(CLOSE,8),1)<0 AND 100*(筹码中期-REF(筹码中期,1))/REF(筹码中期,1)<0 AND 100*(CLOSE-筹码中期)/筹码中期<0;
STICKLINE(筹码短期<筹码中期,筹码中期,筹码短期,1,0),color00ff00,linethick2;
STICKLINE(筹码中期<筹码短期 ,筹码中期,筹码短期,1,0),colorred,linethick2;