公式量能柱自動生成,無未來,使用方法圖上有解,源碼獻(xiàn)上股友共享。 【超級量能】(副圖) jv:=AMOUNT/10000; 成交金額:=jv/1000,colorffffff; VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN)))); 成交:=VOL; 買盤:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))); 賣盤:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
買賣差:=(買盤 + 賣盤)/100000; DDX:=(賣盤-買盤)/(買盤+賣盤)*100/CAPITAL; D1:=EMA(ABS(DDX),60); D2:=MAX(DDX/D1+7.5,7.5); 量能值:-MIN(DDX/D1,10)*5,POINTDOT,COLOR0000ff; 高位賣:(買盤-賣盤)/(買盤),COLOR00ff00,POINTDOT; 低位買:(買賣差/成交金額),COLORff00ff,POINTDOT;
STICKLINE(低位買>0,0,低位買,6,1),COLORff00ff; STICKLINE(低位買<0,0,低位買,6,0),COLORffff00; STICKLINE(高位賣>0,0,高位賣,6,1),COLOR00ff00; STICKLINE(高位賣<0,0,高位賣,6,0),COLOR00ff00; STICKLINE(量能值>0,0,量能值,5,0),COLOR0000ff; STICKLINE(量能值<0,0,量能值,5,0),COLORff0000;
|