主图指标源码:
PREVCLOSE1 := REF(CLOSE, 1);
PREVCLOSE2 := REF(CLOSE, 2);
O1: (SUM(EMA(MAX((CLOSE + LOW) / 2, LLV((CLOSE + LOW) / 2, 10)), 1) / 3, 3)), COLOR00FFFF, LINETHICK1;
O2: EMA(O1, 3), COLORFF00FF, LINETHICK1;
O3: EMA(O2, 3), COLOR00FF00, LINETHICK1;
MA_SHORT := MA(CLOSE, 5);
MA_LONG := MA(CLOSE, 20);
AAA := CROSS(O1, O2) AND CROSS(O2, O3) AND CROSS(O1, O3) AND MA_SHORT > MA_LONG
AND V > MA(V, 10) * 0.5;
DRAWICON(AAA, O1 * 0.95, 17);
PEAK1 := (CLOSE > PREVCLOSE1) AND (CLOSE > PREVCLOSE2) AND V > REF(V, 1)
AND ((CLOSE - PREVCLOSE1) / PREVCLOSE1 < 0.1);
VAR2 := REF(PEAK1, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR3 := REF(VAR2, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR4 := REF(VAR3, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR5 := REF(VAR4, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR6 := REF(VAR5, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR7 := REF(VAR6, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR8 := REF(VAR7, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR9 := REF(VAR8, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VARA := REF(VAR9, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VARB := REF(VARA, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VARC := REF(VARB, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VARD := (CLOSE > PREVCLOSE1) AND (CLOSE > PREVCLOSE2);
VARE := REF(VARD, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VARF := REF(VARE, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR10 := REF(VARF, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR11 := REF(VAR10, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR12 := REF(VAR11, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR13 := REF(VAR12, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR14 := REF(VAR13, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR15 := REF(VAR14, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR16 := REF(VAR15, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR17 := REF(VAR16, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR18 := REF(VAR17, 1) AND (CLOSE = PREVCLOSE1) AND (CLOSE = PREVCLOSE2);
VAR19 := REF((VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18), 1)
AND PEAK1 AND MA_SHORT > MA_LONG AND V > REF(V, 1);
DRAWICON(FILTER(VAR19 = 1, 5), LOW * 0.995, 9);
VAR1A := REF((PEAK1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC), 1)
AND VARD AND MA_SHORT > MA_LONG AND V > REF(V, 1)
AND (HIGH / CLOSE < 1.05)
AND (ATAN((MA_SHORT / REF(MA_SHORT, 1) - 1) * 100) > 0.1);
STICKLINE(VAR1A, PREVCLOSE1, PREVCLOSE2, 3.2, 0), COLORFF3300;
STICKLINE(VAR1A, PREVCLOSE1, PREVCLOSE2, 2.7, 0), COLORFF5500;
STICKLINE(VAR1A, PREVCLOSE1, PREVCLOSE2, 2.1, 0), COLORFF7700;
STICKLINE(VAR1A, PREVCLOSE1, PREVCLOSE2, 1.5, 0), COLORFF9900;
STICKLINE(VAR1A, PREVCLOSE1, PREVCLOSE2, 0.9, 0), COLORFFBB00;
STICKLINE(VAR1A, PREVCLOSE1, PREVCLOSE2, 0.3, 0), COLORFFDD00;
DRAWICON(FILTER(VAR1A = 1 AND (CLOSE / MA_LONG > 1.2), 5), HIGH * 1.03, 15);
DRAWICON(FILTER(VAR1A = 1 AND (CLOSE / MA_SHORT > 1.1) AND (MACD.DIF > MACD.DEA), 5), HIGH * 1.008, 16);
指标解读:
PREVCLOSE1 := REF(CLOSE, 1);和PREVCLOSE2 := REF(CLOSE, 2);
MA_SHORT := MA(CLOSE, 5);和MA_LONG := MA(CLOSE, 20);
首先看PEAK1 := (CLOSE > PREVCLOSE1) AND (CLOSE > PREVCLOSE2) AND V > REF(V, 1) AND ((CLOSE - PREVCLOSE1)/PREVCLOSE1 < 0.1);,
VAR1A := REF((PEAK1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC), 1) AND VARD AND MA_SHORT > MA_LONG AND V > REF(V, 1) AND (HIGH/CLOSE < 1.05) AND (ATAN((MA_SHORT/REF(MA_SHORT, 1)- 1)*100) > 0.1);,
声明:所有展示信息仅供参考,仅用于本文描述一种心理状态或思维过程说明,不构成任何投资具体行动或建议的推荐!
本号力求但不保证信息的精确性和完整性,发布的信息如有不准确或误导之处,本号概不负责,亦不承担任何法律责任。
阅读者据此信息操作,风险自担,后果自负!
本号秉承分享精神,鼓励和欢迎读者之间进行知识、信息和观点的交流与共享。