通达信分时神线
赚钱1:=(BARSLAST(((HOUR = 9) AND (MINUTE = 31))) + 1);
赚钱2:=SUM(CLOSE*VOL,BARSCOUNT(C))/SUM(VOL,BARSCOUNT(C));
赚钱3:=(SUM((CLOSE * VOL),0) / SUM(VOL,0));
赚钱4:=(((SETCODE = 0) OR (SETCODE = 1)) AND (CLOSE < 500));
均价:=IF(赚钱4,赚钱2,赚钱3),COLORYELLOW;
赚钱11:=MA((REF(MAX(H,REF(C,1)),1)-REF(MIN(L,REF(C,1)),1))/REF(C,2)*100,5)/4;
赚钱12:=(赚钱11 * 1.3);
赚钱15:=((CLOSE > REF(CLOSE,1)) AND ((CLOSE / 均价) > (1 + (赚钱11 / 100))));
赚钱16:=((CLOSE < REF(CLOSE,1)) AND ((CLOSE / 均价) < (1 - (赚钱11 / 100))));
HH1:=((REF(SUM(赚钱15,0),1) = 0) AND (SUM(赚钱15,0) = 1));
LL1:=((REF(SUM(赚钱16,0),1) = 0) AND (SUM(赚钱16,0) = 1));
赚钱19:=(SUM(HH1,0) * CROSS(COUNT((CLOSE < REF(CLOSE,1)),BARSLAST(HH1)),0.5));
赚钱20:=(SUM(LL1,0) * CROSS(COUNT((CLOSE > REF(CLOSE,1)),BARSLAST(LL1)),0.5));
CS1:CONST(SUM(IF(赚钱19,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;
CB1:CONST(SUM(IF(赚钱20,REF(CLOSE,1),DRAWNULL),0)),COLORLIMAGENTA,LINETHICK1;
HH2:=CROSS(SUM((赚钱15 AND (CLOSE > (CS1 * (1 + (赚钱12 / 100))))),0),0.5);
LL2:=CROSS(SUM((赚钱16 AND (CLOSE < (CB1 * (1 - (赚钱12 / 100))))),0),0.5);
赚钱25:=(SUM(HH2,0) * CROSS(COUNT((CLOSE < REF(CLOSE,1)),BARSLAST(HH2)),0.5));
赚钱26:=(SUM(LL2,0) * CROSS(COUNT((CLOSE > REF(CLOSE,1)),BARSLAST(LL2)),0.5));
CS2:CONST(SUM(IF(赚钱25,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;
CB2:CONST(SUM(IF(赚钱26,REF(CLOSE,1),DRAWNULL),0)),COLORLIMAGENTA,LINETHICK1;
DRAWICON((HH1 OR HH2),(CLOSE * 1.001),2);
{股票指标网}
DRAWICON((LL1 OR LL2),(CLOSE * 0.988),1);
DRAWICON((赚钱20 OR 赚钱26),(REF(C,1) * 0.988),7);
DRAWICON((赚钱19 OR 赚钱25),(REF(CLOSE,1) * 1.001),8);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
赚钱1赋值:(上次((HOUR = 9距今天数 AND (MINUTE = 31))) + 1)
赚钱2赋值:SUM(收盘价*成交量,C的有效数据周期数)/SUM(成交量,C的有效数据周期数)
赚钱3赋值:(SUM((收盘价 * 成交量),0) / SUM(成交量,0))
赚钱4赋值:(((SETCODE = 0) OR (SETCODE = 1)) AND (收盘价 < 500))
如果赚钱4返回赚钱2否则返回赚钱3
赚钱11:=MA((REF(MAX(H,REF(C,1)),1)-REF(MIN(L,REF(C,1)),1))/REF(C,2)*100,5)/4
赚钱12:=(赚钱11 * 1.3)
赚钱15:=((收盘价 > 1日前的收盘价) AND ((收盘价 / 均价) > (1 + (赚钱11 / 100))))
赚钱16:=((收盘价 < 1日前的收盘价) AND ((收盘价 / 均价) < (1 - (赚钱11 / 100))))
HH1赋值:((REF(0的赚钱15日累和,1) = 0) AND (0的赚钱15日累和 = 1))
LL1赋值:((REF(0的赚钱16日累和,1) = 0) AND (0的赚钱16日累和 = 1))
赚钱19:=(0的HH1日累和 * CROSS(COUNT((收盘价 < 1日前的收盘价),上次HH1距今天数),0.5))
赚钱20:=(0的LL1日累和 * CROSS(COUNT((收盘价 > 1日前的收盘价),上次LL1距今天数),0.5))
输出CS1:CONST(SUM(IF(赚钱19,1日前的收盘价,DRAWNULL),0)),画绿色,LINETHICK1
输出CB1:CONST(SUM(IF(赚钱20,1日前的收盘价,DRAWNULL),0)),COLORLIMAGENTA,LINETHICK1
HH2赋值:CROSS(SUM((赚钱15 AND (收盘价 > (CS1 * (1 + (赚钱12 / 100))))),0),0.5)
LL2赋值:CROSS(SUM((赚钱16 AND (收盘价 < (CB1 * (1 - (赚钱12 / 100))))),0),0.5)
赚钱25:=(0的HH2日累和 * CROSS(COUNT((收盘价 < 1日前的收盘价),上次HH2距今天数),0.5))
赚钱26:=(0的LL2日累和 * CROSS(COUNT((收盘价 > 1日前的收盘价),上次LL2距今天数),0.5))
输出CS2:CONST(SUM(IF(赚钱25,1日前的收盘价,DRAWNULL),0)),画绿色,LINETHICK1
输出CB2:CONST(SUM(IF(赚钱26,1日前的收盘价,DRAWNULL),0)),COLORLIMAGENTA,LINETHICK1
DRAWICON((HH1 OR HH2),(收盘价 * 1.001),2)
{股票指标网}
DRAWICON((LL1 OR LL2),(收盘价 * 0.988),1)
DRAWICON((赚钱20 OR 赚钱26),(1日前的C * 0.988),7)
DRAWICON((赚钱19 OR 赚钱25),(1日前的收盘价 * 1.001),8)