最强大阳不破主图指标公式
发布日期: 2025-08-29 | 阅读量:19
多空线: SMA((O + C + H + L) / 4, 3, 1), COLORRED;
IF(多空线 > REF(多空线, 1), 多空线, DRAWNULL), COLORMAGENTA, LINETHICK5;
IF(多空线 < REF(多空线, 1), 多空线, DRAWNULL), COLORGREEN, LINETHICK5;
DRAWKLINE(H,O,L,C);
阳涨幅 := 7 ;
阳倍量 := 1 ; { 微信公众号:程序化指标 }
大阳线 := C >= REF(C, 1) * (1 + 阳涨幅 / 100) AND VOL > REF(VOL, 1) * 阳倍量 ;
DRAWTEXT(CURRBARSCOUNT < 100 AND 大阳线, L * 0.98, '阳'), COLOR00FFFF;
高不破价 := REF(C, BARSLAST(大阳线)); { 大阳收盘价,压力 }
低不破价 := REF(L, BARSLAST(大阳线)); { 大阳最低价,支撑 }
大阳不破 := CURRBARSCOUNT < 100 AND BARSLAST(大阳线) < 11 AND (LLV(L, BARSLAST(大阳线)) > 低不破价 OR LLV(L, BARSLAST(大阳线)) = 低不破价);
STICKLINE(大阳不破, 低不破价 * 0.9995, 低不破价, 4, 0), COLORGREEN;
STICKLINE(大阳不破, REF((C - L) / 2 + L, BARSLAST(大阳线)), REF((C - L) / 2 + L, BARSLAST(大阳线)), 4, 0), COLORWHITE { 微信公众号:程序化指标 };
STICKLINE(大阳不破, 高不破价, 高不破价, 4, 0), COLORRED;
STICKLINE(大阳线, O, C, 2, 0), COLORYELLOW;
DRAWTEXT(BARSLAST(大阳线) = 1 AND 大阳不破, 低不破价 * 0.98, '1'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 2 AND 大阳不破, 低不破价 * 0.98, '2'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 3 AND 大阳不破, 低不破价 * 0.98, '3'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 4 AND 大阳不破, 低不破价 * 0.98, '4'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 5 AND 大阳不破, 低不破价 * 0.98, '5'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 6 AND 大阳不破, 低不破价 * 0.98, '6'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 7 AND 大阳不破, 低不破价 * 0.98, '7'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 8 AND 大阳不破, 低不破价 * 0.98, '8'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 9 AND 大阳不破, 低不破价 * 0.98, '9'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 10 AND 大阳不破, 低不破价 * 0.98, '10'), COLORGREEN;
IF(多空线 > REF(多空线, 1), 多空线, DRAWNULL), COLORMAGENTA, LINETHICK5;
IF(多空线 < REF(多空线, 1), 多空线, DRAWNULL), COLORGREEN, LINETHICK5;
DRAWKLINE(H,O,L,C);
阳涨幅 := 7 ;
阳倍量 := 1 ; { 微信公众号:程序化指标 }
大阳线 := C >= REF(C, 1) * (1 + 阳涨幅 / 100) AND VOL > REF(VOL, 1) * 阳倍量 ;
DRAWTEXT(CURRBARSCOUNT < 100 AND 大阳线, L * 0.98, '阳'), COLOR00FFFF;
高不破价 := REF(C, BARSLAST(大阳线)); { 大阳收盘价,压力 }
低不破价 := REF(L, BARSLAST(大阳线)); { 大阳最低价,支撑 }
大阳不破 := CURRBARSCOUNT < 100 AND BARSLAST(大阳线) < 11 AND (LLV(L, BARSLAST(大阳线)) > 低不破价 OR LLV(L, BARSLAST(大阳线)) = 低不破价);
STICKLINE(大阳不破, 低不破价 * 0.9995, 低不破价, 4, 0), COLORGREEN;
STICKLINE(大阳不破, REF((C - L) / 2 + L, BARSLAST(大阳线)), REF((C - L) / 2 + L, BARSLAST(大阳线)), 4, 0), COLORWHITE { 微信公众号:程序化指标 };
STICKLINE(大阳不破, 高不破价, 高不破价, 4, 0), COLORRED;
STICKLINE(大阳线, O, C, 2, 0), COLORYELLOW;
DRAWTEXT(BARSLAST(大阳线) = 1 AND 大阳不破, 低不破价 * 0.98, '1'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 2 AND 大阳不破, 低不破价 * 0.98, '2'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 3 AND 大阳不破, 低不破价 * 0.98, '3'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 4 AND 大阳不破, 低不破价 * 0.98, '4'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 5 AND 大阳不破, 低不破价 * 0.98, '5'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 6 AND 大阳不破, 低不破价 * 0.98, '6'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 7 AND 大阳不破, 低不破价 * 0.98, '7'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 8 AND 大阳不破, 低不破价 * 0.98, '8'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 9 AND 大阳不破, 低不破价 * 0.98, '9'), COLORGREEN;
DRAWTEXT(BARSLAST(大阳线) = 10 AND 大阳不破, 低不破价 * 0.98, '10'), COLORGREEN;
