通达信【资金决策】副图指标 源码附图
亿:AMOUNT/100000000,COLORFF00FF,NODRAW;
资金:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入亿:IF(CLOSE>OPEN,资金*(HIGH-LOW),IF(CLOSE< OPEN,资金*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;
流出亿:IF(CLOSE>OPEN,0-资金*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE< OPEN,0-资金*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;
额亿:流入亿+流出亿,COLORFFFF00,NODRAW;
决策:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;
分界:0;
主力:=(CLOSE*2+HIGH+LOW+O)/4;
散户:=EMA(主力,11)-EMA(主力,22);
量比:=EMA(散户,5);
轴:0;
STICKLINE(决策>0 AND 决策>REF(决策,1),0,决策,4,0)COLOR0D0C6A;
STICKLINE(决策>0 AND 决策>REF(决策,1),0,决策,3,0)COLOR0D06AA;
STICKLINE(决策>0 AND 决策>REF(决策,1),0,决策,1.5,0)COLOR2108C1;
STICKLINE(决策>0 AND 决策>REF(决策,1),0,决策,0.5,0)COLOR9F5DFF;
STICKLINE(决策>0 AND 决策< REF(决策,1),0,决策,4,0)COLOR22736F;
STICKLINE(决策>0 AND 决策< REF(决策,1),0,决策,3,0)COLOR22AAD5;
STICKLINE(决策>0 AND 决策< REF(决策,1),0,决策,1.5,0)COLOR10C7BF;
STICKLINE(决策>0 AND 决策< REF(决策,1),0,决策,0.5,0)COLOR80FFFF;
STICKLINE(决策< 0 AND 决策< REF(决策,1),0,决策,4,0)COLOR1B7411;
STICKLINE(决策< 0 AND 决策< REF(决策,1),0,决策,3,0)COLOR17A715;
STICKLINE(决策< 0 AND 决策< REF(决策,1),0,决策,1.5,0)COLOR08D306;
STICKLINE(决策< 0 AND 决策< REF(决策,1),0,决策,0.5,0)COLOR40FF00;
STICKLINE(决策< 0 AND 决策>REF(决策,1),0,决策,4,0)COLOR080E71;
STICKLINE(决策< 0 AND 决策>REF(决策,1),0,决策,3,0)COLOR0B0E8C;
STICKLINE(决策< 0 AND 决策>REF(决策,1),0,决策,1.52,0)COLOR0905B0;
STICKLINE(决策< 0 AND 决策>REF(决策,1),0,决策,0.5,0)COLOR0204F2;
量:(-2)*(散户-量比)*5,COLOR00FF00,LINETHICK3;
量1:2*(散户-量比)*5,COLORMAGENTA,LINETHICK3;
DRAWTEXT(CROSS(0,决策),0,'卖');
DRAWICON(CROSS(决策,0),0,5);
DRAWICON(CROSS(0,决策),0,6);
DRAWTEXT(CROSS(决策,0),0,'买');
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出亿:成交额/100000000,COLORFF00FF,NODRAW
资金赋值:成交额/((最高价-最低价)*2-收盘价-开盘价的绝对值)
流入输出亿:IF(收盘价>开盘价,资金*(最高价-最低价),IF(收盘价< 开盘价,资金*((最高价-开盘价)+(收盘价-最低价)),成交额/2))/100000000,画红色,NODRAW
流出输出亿:IF(收盘价>开盘价,0-资金*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价< 开盘价,0-资金*(最高价-最低价),0-成交额/2))/100000000,COLOR00FF00,NODRAW
额输出亿:流入亿+流出亿,COLORFFFF00,NODRAW
决策赋值:收盘价的1日简单移动平均-收盘价的6日简单移动平均,NODRAW
输出分界:0
主力赋值:(收盘价*2+最高价+最低价+O)/4
散户赋值:主力的11日指数移动平均-主力的22日指数移动平均
量比赋值:散户的5日指数移动平均
输出轴:0
STICKLINE(决策>0 AND 决策>1日前的决策,0,决策,4,0)COLOR0D0C6A
STICKLINE(决策>0 AND 决策>1日前的决策,0,决策,3,0)COLOR0D06AA
STICKLINE(决策>0 AND 决策>1日前的决策,0,决策,1.5,0)COLOR2108C1
STICKLINE(决策>0 AND 决策>1日前的决策,0,决策,0.5,0)COLOR9F5DFF
STICKLINE(决策>0 AND 决策< 1日前的决策,0,决策,4,0)COLOR22736F
STICKLINE(决策>0 AND 决策< 1日前的决策,0,决策,3,0)COLOR22AAD5
STICKLINE(决策>0 AND 决策< 1日前的决策,0,决策,1.5,0)COLOR10C7BF
STICKLINE(决策>0 AND 决策< 1日前的决策,0,决策,0.5,0)COLOR80FFFF
STICKLINE(决策< 0 AND 决策< 1日前的决策,0,决策,4,0)COLOR1B7411
STICKLINE(决策< 0 AND 决策< 1日前的决策,0,决策,3,0)COLOR17A715
STICKLINE(决策< 0 AND 决策< 1日前的决策,0,决策,1.5,0)COLOR08D306
STICKLINE(决策< 0 AND 决策< 1日前的决策,0,决策,0.5,0)COLOR40FF00
STICKLINE(决策< 0 AND 决策>1日前的决策,0,决策,4,0)COLOR080E71
STICKLINE(决策< 0 AND 决策>1日前的决策,0,决策,3,0)COLOR0B0E8C
STICKLINE(决策< 0 AND 决策>1日前的决策,0,决策,1.52,0)COLOR0905B0
STICKLINE(决策< 0 AND 决策>1日前的决策,0,决策,0.5,0)COLOR0204F2
输出量:(-2)*(散户-量比)*5,COLOR00FF00, 线宽为3
量1:2*(散户-量比)*5,画洋红色, 线宽为3
DRAWTEXT(0上穿决策,0,'卖')
DRAWICON(决策上穿0,0,5)
DRAWICON(0上穿决策,0,6)
DRAWTEXT(决策上穿0,0,'买')