主力散户资金博弈指标公式源码
发布日期: 2025-08-27 | 阅读量:39
成交额: AMOUNT / 100000000, COLORFF00FF, NODRAW;
资金力 := AMOUNT / ((H - L) * 2 - ABS(C - O));
流入额: IF(C > O, 资金力 * (H - L), IF(C < O, 资金力 * ((H - O) + (C - L)), AMOUNT / 2)) / 100000000, COLORRED, NODRAW;
流出额: IF(C > O, -资金力 * ((H - C) + (O - L)), IF(C < O, -资金力 * (H - L), -AMOUNT / 2)) / 100000000, COLOR00FF00, NODRAW;
净额: 流入额 + 流出额, COLORFFFF00, NODRAW;
决策: MA(C, 1) - MA(C, 6), NODRAW;
分界: 0;
主力价 := (C * 2 + H + L + O) / 4;
散户线 := EMA(主力价, 11) - EMA(主力价, 22);
量能均 := EMA(散户线, 5);
STICKLINE(决策 > 0 AND 决策 > REF(决策, 1), 0, 决策, 4, 0), COLOR0D0C6A;
STICKLINE(决策 > 0 AND 决策 > REF(决策, 1), 0, 决策, 3, 0), COLOR0D06AA;
STICKLINE(决策 > 0 AND 决策 > REF(决策, 1), 0, 决策, 1.5, 0), COLOR2108C1;
STICKLINE(决策 > 0 AND 决策 > REF(决策, 1), 0, 决策, 0.5, 0), COLOR9F5DFF;
STICKLINE(决策 > 0 AND 决策 < REF(决策, 1), 0, 决策, 4, 0), COLOR22736F;
STICKLINE(决策 > 0 AND 决策 < REF(决策, 1), 0, 决策, 3, 0), COLOR22AAD5;
STICKLINE(决策 > 0 AND 决策 < REF(决策, 1), 0, 决策, 1.5, 0), COLOR10C7BF;
STICKLINE(决策 > 0 AND 决策 < REF(决策, 1), 0, 决策, 0.5, 0), COLOR80FFFF;
STICKLINE(决策 < 0 AND 决策 < REF(决策, 1), 0, 决策, 4, 0), COLOR1B7411;
STICKLINE(决策 < 0 AND 决策 < REF(决策, 1), 0, 决策, 3, 0), COLOR17A715;
STICKLINE(决策 < 0 AND 决策 < REF(决策, 1), 0, 决策, 1.5, 0), COLOR08D306;
STICKLINE(决策 < 0 AND 决策 < REF(决策, 1), 0, 决策, 0.5, 0), COLOR40FF00;
STICKLINE(决策 < 0 AND 决策 > REF(决策, 1), 0, 决策, 4, 0), COLOR080E71;
STICKLINE(决策 < 0 AND 决策 > REF(决策, 1), 0, 决策, 3, 0), COLOR0B0E8C;
STICKLINE(决策 < 0 AND 决策 > REF(决策, 1), 0, 决策, 1.5, 0), COLOR0905B0;
STICKLINE(决策 < 0 AND 决策 > REF(决策, 1), 0, 决策, 0.5, 0), COLOR0204F2;
空量: (-2) * (散户线 - 量能均) * 5, COLOR00FF00, LINETHICK3;
多量: 2 * (散户线 - 量能均) * 5, COLORMAGENTA, LINETHICK3;
