通达信智能资金副图
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
卖点提示:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;
DRAWTEXT(CROSS(85,RSI1),20,'顶'),COLOR00FF00;
STICKLINE(卖点提示,0,20,3,0),COLOR00FF00;
VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
DRAWTEXT_FIX(1,0.50,5,0,'黑马优化指标☆杰☆'),COLOR00FFFF;
VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
VARD:=BARSCOUNT(CLOSE);{WWW.}
资金提示:(VARB< 20 AND VARC< 25 AND VARD> 50 AND AR<70)*30,LINETHICK2,COLOR0078FF;
BT1:=CROSS(RSI1,25);{WWW.}
DRAWTEXT(BT1,-80,'底'),COLOR0000FF;
STICKLINE(BT1,-100,-80,3,0),COLOR0000FF;
主力:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0000FF;
散户:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLORC87800;
BT2:=CROSS(主力,散户) AND 主力<-10;
DRAWICON(CROSS(RSI1,25),主力,26);
DRAWICON(CROSS(主力,散户) AND 主力<-10,主力,23);
BT:=FILTER(COUNT(BT1 OR BT2,3)>=2,3);
STICKLINE(BT,0,50,4,1),COLOR0000FF;
DRAWTEXT(BT,50,'金底'),COLOR0000FF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
LC赋值:1日前的收盘价
RSI1赋值:SMA(收盘价-LC和0较大值,6,1)/SMA(收盘价-LC的绝对值,6,1)*100
AR赋值:26的最高价-开盘价日累和/26的开盘价-最低价日累和*100
卖点提示赋值:85上穿RSI1*30,COLOR00FF00, 线宽为2
DRAWTEXT(85上穿RSI1,20,'顶'),COLOR00FF00
当满足条件卖点提示时,在0和20之间画柱状线
VARB:=SMA(收盘价-LC和0较大值,7,1)/SMA(收盘价-LC的绝对值,7,1)*100
当满足条件1时,在横轴0.50纵轴5位置书写文字
VARC:=SMA(收盘价-LC和0较大值,13,1)/SMA(收盘价-LC的绝对值,13,1)*100
VARD:=收盘价的有效数据周期数
输出{WWW.}
资金提示:(VARB< 20 AND VARC< 25 AND VARD> 50 AND AR<70)*30, 线宽为2,COLOR0078FF
BT1赋值:RSI1上穿25
当满足条件BT1时,在-80和'底'位置书写文字
当满足条件BT1时,在-100和-80之间画柱状线
输出主力:EMA( (收盘价-MA(收盘价,7))/MA(收盘价,7)*480,2)*5,LINETHICK1,COLOR0000FF
输出散户:EMA( (收盘价-MA(收盘价,11))/MA(收盘价,11)*480,7)*5, 线宽为2,COLORC87800
BT2赋值:主力上穿散户 AND 主力<-10
DRAWICON(RSI1上穿25,主力,26)
DRAWICON(主力上穿散户 AND 主力<-10,主力,23)
BT赋值:FILTER(统计3日满足BT1 OR BT2的天数>=2,3)
当满足条件BT时,在0和50之间画柱状线
当满足条件BT时,在50和'金底'位置书写文字