短线、中线、长线一体指标公式
发布日期: 2025-08-20 | 阅读量:44
价格波幅:= HHV(HIGH,9) - LLV(LOW,9);
上方阻力:= HHV(HIGH,9) - CLOSE;
下方支撑:= CLOSE - LLV(LOW,9);
压强比:= 上方阻力 / 价格波幅 * 100 - 70;
相对位置:= (CLOSE - LLV(LOW,60)) / (HHV(HIGH,60) - LLV(LOW,60)) * 100;
中枢价:= (2*CLOSE + HIGH + LOW) / 4;
动量强度:= SMA(下方支撑 / 价格波幅 * 100, 3, 1);
极值低点:= LLV(LOW,34);
动能摆动:= 动量强度 - SMA(压强比, 9, 1);
超买强度:= IF(动能摆动 > 100, 动能摆动 - 100, 0);
极值高点:= HHV(HIGH,34);
量能放大:= 超买强度 * 2;
主力动能:= EMA((中枢价 - 极值低点) / (极值高点 - 极值低点) * 100, 13);
动能趋势:= EMA(0.667*REF(主力动能,1) + 0.333*主力动能, 2);
位置均线:= SMA(相对位置, 20, 1);
动量背离:= SMA(量能放大, 2, 1) - 量能放大;
趋势背离:= 动能趋势 - 主力动能;
快线压:= (HHV(HIGH,9) - CLOSE) / 价格波幅 * 100 - 70;
慢线压:= SMA(快线压, 9, 1) + 100;
快线支:= (CLOSE - LLV(LOW,9)) / 价格波幅 * 100;
慢线支:= SMA(快线支, 3, 1);
全周期支:= SMA(慢线支, 3, 1) + 100;
强弱差值:= 全周期支 - 慢线压;
信号强度:= IF(强弱差值 > 40, 强弱差值 - 40, 0);
RSV短期:= (CLOSE - LLV(LOW,35)) / (HHV(HIGH,35) - LLV(LOW,35)) * 100;
K短期:= SMA(RSV短期, 13, 1);
D短期:= SMA(K短期, 13, 1);
RSV长期:= (CLOSE - LLV(LOW,140)) / (HHV(HIGH,140) - LLV(LOW,140)) * 100;
K长期:= SMA(RSV长期, 46, 1);
D长期:= SMA(K长期, 46, 1);
STICKLINE(主力动能 - 动能趋势 > 0, 主力动能, 动能趋势, 8, 0), COLOR4080FF;
STICKLINE(主力动能 - 动能趋势 < 0, 主力动能, 动能趋势, 8, 0), COLORGREEN;
STICKLINE(EMA(D短期,3) > REF(EMA(D短期,3),1), EMA(D短期,3), REF(EMA(D短期,3),1), 8, 0), COLORRED;
STICKLINE(EMA(D短期,3) < REF(EMA(D短期,3),1), EMA(D短期,3), REF(EMA(D短期,3),1), 8, 0), COLORBLUE;
STICKLINE(EMA(D长期,3) > REF(EMA(D长期,3),5), EMA(D长期,3), REF(EMA(D长期,3),5), 8, 0), COLORFFFFFF;
STICKLINE(EMA(D长期,3) < REF(EMA(D长期,3),5), EMA(D长期,3), REF(EMA(D长期,3),5), 8, 0), COLORFFCC00;
上方阻力:= HHV(HIGH,9) - CLOSE;
下方支撑:= CLOSE - LLV(LOW,9);
压强比:= 上方阻力 / 价格波幅 * 100 - 70;
相对位置:= (CLOSE - LLV(LOW,60)) / (HHV(HIGH,60) - LLV(LOW,60)) * 100;
中枢价:= (2*CLOSE + HIGH + LOW) / 4;
动量强度:= SMA(下方支撑 / 价格波幅 * 100, 3, 1);
极值低点:= LLV(LOW,34);
动能摆动:= 动量强度 - SMA(压强比, 9, 1);
超买强度:= IF(动能摆动 > 100, 动能摆动 - 100, 0);
极值高点:= HHV(HIGH,34);
量能放大:= 超买强度 * 2;
主力动能:= EMA((中枢价 - 极值低点) / (极值高点 - 极值低点) * 100, 13);
动能趋势:= EMA(0.667*REF(主力动能,1) + 0.333*主力动能, 2);
位置均线:= SMA(相对位置, 20, 1);
动量背离:= SMA(量能放大, 2, 1) - 量能放大;
趋势背离:= 动能趋势 - 主力动能;
快线压:= (HHV(HIGH,9) - CLOSE) / 价格波幅 * 100 - 70;
慢线压:= SMA(快线压, 9, 1) + 100;
快线支:= (CLOSE - LLV(LOW,9)) / 价格波幅 * 100;
慢线支:= SMA(快线支, 3, 1);
全周期支:= SMA(慢线支, 3, 1) + 100;
强弱差值:= 全周期支 - 慢线压;
信号强度:= IF(强弱差值 > 40, 强弱差值 - 40, 0);
RSV短期:= (CLOSE - LLV(LOW,35)) / (HHV(HIGH,35) - LLV(LOW,35)) * 100;
K短期:= SMA(RSV短期, 13, 1);
D短期:= SMA(K短期, 13, 1);
RSV长期:= (CLOSE - LLV(LOW,140)) / (HHV(HIGH,140) - LLV(LOW,140)) * 100;
K长期:= SMA(RSV长期, 46, 1);
D长期:= SMA(K长期, 46, 1);
STICKLINE(主力动能 - 动能趋势 > 0, 主力动能, 动能趋势, 8, 0), COLOR4080FF;
STICKLINE(主力动能 - 动能趋势 < 0, 主力动能, 动能趋势, 8, 0), COLORGREEN;
STICKLINE(EMA(D短期,3) > REF(EMA(D短期,3),1), EMA(D短期,3), REF(EMA(D短期,3),1), 8, 0), COLORRED;
STICKLINE(EMA(D短期,3) < REF(EMA(D短期,3),1), EMA(D短期,3), REF(EMA(D短期,3),1), 8, 0), COLORBLUE;
STICKLINE(EMA(D长期,3) > REF(EMA(D长期,3),5), EMA(D长期,3), REF(EMA(D长期,3),5), 8, 0), COLORFFFFFF;
STICKLINE(EMA(D长期,3) < REF(EMA(D长期,3),5), EMA(D长期,3), REF(EMA(D长期,3),5), 8, 0), COLORFFCC00;
