5天净流入公式叠加到额亿公式上
aa:=vol/((high-low)*2-abs(close-open));
买量:=if(close>open,aa*(high-low),if(close<open,aa*((high-open)+(close-low)),vol/2)),linethick0,colorred;
卖量:=if(close>open,0-aa*((high-close)+(open-low)),if(close<open,0-aa*(high-low),0-vol/2)),linethick0,colorcyan;
进出量:=买量+卖量,color00ffff;
五日内净流入:sum(进出量,5);
{额亿公式}
总亿:amount/100000000,colorff00ff,nodraw;
var1:=amount/((high-low)*2-abs(close-open));
流入亿:if(close>open,var1*(high-low),if(close<open,var1*((high-open)+ (close-low)),amount/2))/100000000,colorred,nodraw;
流出亿:if(close>open,0-var1*((high-close)+(open- low)),if(close<open,0-var1*(high-low),0-amount/2))/100000000,color00ff00,nodraw;
额亿:流入亿+流出亿,colorffff00,nodraw;
{线:=ma(close,1)-ma(close,6),nodraw;}
yuwei:=ma(close,1)-ma(close,6),nodraw;
分界:0;
stickline(yuwei>0 and yuwei>ref(yuwei,1),0,yuwei,4,0)color0d0c6a;
stickline(yuwei>0 and yuwei>ref(yuwei,1),0,yuwei,3,0)color0d06aa;
stickline(yuwei>0 and yuwei>ref(yuwei,1),0,yuwei,1.5,0)color2108c1;
stickline(yuwei>0 and yuwei>ref(yuwei,1),0,yuwei,0.5,0)color9f5dff;
stickline(yuwei>0 and yuwei<ref(yuwei,1),0,yuwei,4,0)color22736f;
stickline(yuwei>0 and yuwei<ref(yuwei,1),0,yuwei,3,0)color22aad5;
stickline(yuwei>0 and yuwei<ref(yuwei,1),0,yuwei,1.5,0)color10c7bf;
stickline(yuwei>0 and yuwei<ref(yuwei,1),0,yuwei,0.5,0)color80ffff;
stickline(yuwei<0 and yuwei<ref(yuwei,1),0,yuwei,4,0)color1b7411;
stickline(yuwei<0 and yuwei<ref(yuwei,1),0,yuwei,3,0)color17a715;
stickline(yuwei<0 and yuwei<ref(yuwei,1),0,yuwei,1.5,0)color08d306;
stickline(yuwei<0 and yuwei<ref(yuwei,1),0,yuwei,0.5,0)color40ff00;
stickline(yuwei<0 and yuwei>ref(yuwei,1),0,yuwei,4,0)color080e71;
stickline(yuwei<0 and yuwei>ref(yuwei,1),0,yuwei,3,0)color0b0e8c;
stickline(yuwei<0 and yuwei>ref(yuwei,1),0,yuwei,1.52,0)color0905b0;
stickline(yuwei<0 and yuwei>ref(yuwei,1),0,yuwei,0.5,0)color0204f2;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
AA赋值:成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
买量赋值:IF(收盘价>开盘价,AA*(最高价-最低价),IF(收盘价<开盘价,AA*((最高价-开盘价)+(收盘价-最低价)),成交量/2)),LINETHICK0,画红色
卖量赋值:IF(收盘价>开盘价,0-AA*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价<开盘价,0-AA*(最高价-最低价),0-成交量/2)),LINETHICK0,画青色
进出量赋值:买量+卖量,COLOR00FFFF
输出
五日内净流入:5的进出量日累和
输出{额亿公式}
总亿:成交额/100000000,COLORFF00FF,NODRAW
VAR1赋值:成交额/((最高价-最低价)*2-收盘价-开盘价的绝对值)
输出
流入亿:IF(收盘价>开盘价,VAR1*(最高价-最低价),IF(收盘价<开盘价,VAR1*((最高价-开盘价)+ (收盘价-最低价)),成交额/2))/100000000,画红色,NODRAW
输出
流出亿:IF(收盘价>开盘价,0-VAR1*((最高价-收盘价)+(开盘价- 最低价)),IF(收盘价<开盘价,0-VAR1*(最高价-最低价),0-成交额/2))/100000000,COLOR00FF00,NODRAW
输出
额亿:流入亿+流出亿,COLORFFFF00,NODRAW
{线赋值:收盘价的1日简单移动平均-收盘价的6日简单移动平均,NODRAW
}
YUWEI赋值:收盘价的1日简单移动平均-收盘价的6日简单移动平均,NODRAW
输出
分界:0
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,4,0)COLOR0D0C6A
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,3,0)COLOR0D06AA
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,1.5,0)COLOR2108C1
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI,0,YUWEI,0.5,0)COLOR9F5DFF
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,4,0)COLOR22736F
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,3,0)COLOR22AAD5
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,1.5,0)COLOR10C7BF
STICKLINE(YUWEI>0 AND YUWEI<1日前的YUWEI,0,YUWEI,0.5,0)COLOR80FFFF
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,4,0)COLOR1B7411
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,3,0)COLOR17A715
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,1.5,0)COLOR08D306
STICKLINE(YUWEI<0 AND YUWEI<1日前的YUWEI,0,YUWEI,0.5,0)COLOR40FF00
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,4,0)COLOR080E71
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,3,0)COLOR0B0E8C
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,1.52,0)COLOR0905B0
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,0.5,0)COLOR0204F2