通达信大盘红豆量指标
VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入亿:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+ (CLOSE-
LOW)),AMOUNT/2.1))/100000000,COLORRED,NODRAW;
流出亿:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-
LOW),0-AMOUNT/1.9))/100000000,COLOR00FF00,NODRAW;
额亿:流入亿+流出亿,COLORFFFF00,NODRAW;
{线:=MA(CLOSE,1)-MA(CLOSE,12),NODRAW;}
YUWEI:=MA(CLOSE,1)-MA(CLOSE,12),NODRAW;
{量:(线),VOLSTICK;}{股票指标网}
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1
),0,YUWEI,3.6,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,3.6,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,3.6,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,3.6,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.5,0)COLOR0905B0;
STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR0204F2;
STICKLINE(YUWEI>0 AND YUWEI>REF(
YUWEI,1)*2,0,YUWEI,3.6,0),COLOR3F00FF;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1)*2,0,YUWEI,3,0),COLORFF10FF;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1)*2,0,YUWEI,1.5,0),COLORFF50FF;
STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1)*2,0,YUWEI,0.3,0),COLORFF80FF;
DRAWTEXT(CROSS(0,YUWEI),0.1,'卖')COLOR00FF00;
DRAWTEXT(CROSS(YUWEI,0),-0.1,'买') COLORDD00FF,LINETHICK3;
红豆:YUWEI,LINETHICK;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:成交额/((最高价-最低价)*2-收盘价-开盘价的绝对值)
输出
流入亿:IF(收盘价>开盘价,VAR1*(最高价-最低价),IF(收盘价<开盘价,VAR1*((最高价-开盘价)+ (收盘价-
最低价)),成交额/2.1))/100000000,画红色,NODRAW
输出
流出亿:IF(收盘价>开盘价,0-VAR1*((最高价-收盘价)+(开盘价- 最低价)),IF(收盘价<开盘价,0-VAR1*(最高价-
最低价),0-成交额/1.9))/100000000,COLOR00FF00,NODRAW
输出
额亿:流入亿+流出亿,COLORFFFF00,NODRAW
{线赋值:收盘价的1日简单移动平均-收盘价的12日简单移动平均,NODRAW
}
YUWEI赋值:收盘价的1日简单移动平均-收盘价的12日简单移动平均,NODRAW
输出
{量:(线),成交量STICK
}{股票指标网}
STICKLINE(YUWEI>0 AND YUWEI>1
日前的YUWEI,0,YUWEI,3.6,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,3.6,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
(YUWEI,1),0,YUWEI,3.6,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,3.6,0)COLOR080E71
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,3,0)COLOR0B0E8C
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,1.5,0)COLOR0905B0
STICKLINE(YUWEI<0 AND YUWEI>1日前的YUWEI,0,YUWEI,0.5,0)COLOR0204F2
STICKLINE(YUWEI>0 AND YUWEI>1日前的
YUWEI*2,0,YUWEI,3.6,0),COLOR3F00FF
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI*2,0,YUWEI,3,0),COLORFF10FF
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI*2,0,YUWEI,1.5,0),COLORFF50FF
STICKLINE(YUWEI>0 AND YUWEI>1日前的YUWEI*2,0,YUWEI,0.3,0),COLORFF80FF
DRAWTEXT(0上穿YUWEI,0.1,'卖')COLOR00FF00
DRAWTEXT(YUWEI上穿0,-0.1,'买') COLORDD00FF, 线宽为3
输出
红豆:YUWEI,LINETHICK