以下是分析家供求公式源码和使用说明
使用说明:
计算供求资金:首先,根据公式计算买入金额和主力卖出金额。然后将主力买入金额减去主力卖出金额,得到供求资金的数值。供求资金数值为正表示市场供需处于买方力量占优势,为负表示市场供需处于卖方力量占优势,为零表示供求平衡。
判断市场强弱:供求资金指标可以帮助判断市场的强弱程度。当供求资金为正时,意味着主力资金流入市场,买方力量较强,可能表明市场看涨情绪较高。相反,当供求资金为负时,意味着主力资金离开市场,卖方力量较强,可能表明市场看跌情绪较高。
预测变化:供求资金指标还可以用于预测趋势的变化。当供求资金从负值转为正值时,可能意味着市场情绪由看跌转为看涨,可能会引发市场的上涨趋势。相反,当供求资金从正值转为负值时,可能意味着市场情绪由看涨转为看跌,可能会引发市场的下跌趋势。
分析家供求资金公式源码:
JGV:=(L2_VOL(0,0)-L2_VOL(0,1))*VOL/10000000000;
DHV:=(L2_VOL(1,0)-L2_VOL(1,1))*VOL/10000000000;
ZHV:=(L2_VOL(2,0)-L2_VOL(2,1))*VOL/10000000000;
SHV:=(L2_VOL(3,0)-L2_VOL(3,1))*VOL/10000000000;
A:=JGV+DHV;
B:=SHV+ZHV;
NOTEXT供资金:=EMA(A,N)*N,COLORRED;
NOTEXT求资金:=EMA(B,N)*N,COLORGREEN;
供求资金:NOTEXT供资金-NOTEXT求资金,{NODRAW}COLORFF00FF;0;
N:=10;
JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
VAR1:=EMA(CLOSE,2)-EMA(CLOSE,89)*1;
VAR2:=EMA(VAR1,30)*1;
VAR3:=2*(VAR1-VAR2)*10*1;
VAR4:=POW(VAR3,3)*0.1+POW(VAR3,2)*1;
VAR5:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR6:=EMA(VAR5*0.97,3)*1;
VAR7:=(HIGH+LOW+CLOSE)/3*1;
VAR8:=(VAR7-MA(VAR7,14))/(0.015*AVEDEV(VAR7,14))*1;
VAR9:=IF(VAR3 0.015,VAR4,0)/45*1;
增量资金:VAR9,STICK,LINETHICK2,colorred;
IF(增量资金 REF(增量资金,1),增量资金,DRAWNULL),STICK,LINETHICK2,colorgreen;VAR10:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR11:=EMA(VAR10,100);
VAR12:=2*(VAR10-VAR11);
VAR13:=POW(VAR12,3)*0.1+POW(VAR12,1);
VAR1A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR1B:=EMA(VAR1A*0.97,3);
VAR1C:=(HIGH+LOW+CLOSE)/3;
VAR1D:=(VAR1C-MA(VAR1C,14))/(0.015*AVEDEV(VAR1C,14));
主力资金:IF(VAR12 0.1,VAR13,0)*5,LINETHICK1,coloryellow;
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
QJ5:=QJ1+QJ2;QJ6:=QJ3+QJ4;DD:=(QJ5-QJ6)/(QJ5+QJ6)*100;
DDZ:DD*17,LINETHICK1;
DDZ1:DD*13,LINETHICK1;
DRAWBAND(DDZ1,RGB(0,24,224),DDZ,RGB(255,0,0));
分析家供求资金公式截图