通达信公式1号主图
布林:=HHV(HHV(L,14),60);
阻力区:=EMA(EMA(布林,16)-2*STD(布林,16),3);
阻力区1:=EMA(EMA(布林,14)+2*STD(布林,14),18);
DRAWBAND(阻力区,RGB(99,99,99),阻力区1,RGB(99,99,99));
{四线开花}
【4】:MA(CLOSE,250),COLORBLUE,LINETHICK3;
【3】:MA(CLOSE,120),COLORCYAN,LINETHICK3;
【2】:MA(CLOSE,60),COLORGREEN,LINETHICK3;
【1】:MA(CLOSE,20),COLORLIRED,LINETHICK3;
{神秘线}
V0:=VOL*(O+C+H+L)/4;
SM:EMA(V0,21)/EMA(VOL,21),COLOR987654,LINETHICK0;
{量能评台突破}
PT:IF(HHVBARS(V,35),REF(C,HHVBARS(V,35)),C),COLOR7F017F,LINETHICK0;
{N日涨幅}
N1:=BARSLAST(CROSS(C,MA(C,6)));
N2:=BARSLAST(CROSS(MA(C,6),C));
N:IF(N1<N2,N1+1,0),COLORBLUE,NODRAW;
ZF%:(C-REF(C,N))/REF(C,N)*100,COLORRED,NODRAW;
{三色K线}
STICKLINE(C>=SM AND C>=O,OPEN,CLOSE,3,1),COLORRED;
STICKLINE(C>=SM AND C>=O,LOW,MIN(O,C),0,1),COLORRED;
STICKLINE(C>=SM AND C>=O,MAX(O,C),HIGH,0,1),COLORRED;
STICKLINE(C>=SM AND C<O,C,O,3,0),COLORCYAN;
STICKLINE(C>=SM AND C<O,C,O,1,0),COLORCYAN;
STICKLINE(C>=SM AND C<O,L,HIGH,0,1),COLORCYAN;
STICKLINE(C<SM AND C>=O,OPEN,CLOSE,3,1),COLORWHITE;
STICKLINE(C<SM AND C>=O,LOW,MIN(O,C),0,1),COLORWHITE;
STICKLINE(C<SM AND C>=O,MAX(O,C),HIGH,0,1),COLORWHITE;
STICKLINE(C<SM AND C<O,C,O,3,0),COLORWHITE;
STICKLINE(C<SM AND C<O,C,O,1,0),COLORWHITE;
STICKLINE(C<SM AND C<O,L,HIGH,0,1),COLORWHITE;
{立桩量}
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
STICKLINE(V2>=1 AND OPEN<CLOSE,OPEN,CLOSE,5,1),COLORYELLOW;
STICKLINE(V2>=1 AND OPEN>CLOSE,OPEN,CLOSE,5,0),COLORCYAN;
{涨跌停K线}
涨跌:=REF(C,1);
涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0);
STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((涨跌-C)*100/涨跌>=(10-0.01*100/涨跌),1,0);
STICKLINE(跌停,OPEN,CLOSE,4,0),COLORBLUE;
STICKLINE(跌停,H,L,0,1),COLORBLUE;
{立桩量金箍}
STICKLINE(V2>=1,O,(C+O)/2,6,0),COLOR003333;
STICKLINE(V2>=1,O,(C+O)/2,5,0),COLOR116666;
STICKLINE(V2>=1,O,(C+O)/2,4,0),COLOR229999;
STICKLINE(V2>=1,O,(C+O)/2,3,0),COLOR33CCCC;
STICKLINE(V2>=1,O,(C+O)/2,2,0),COLOR44FFFF;
MA10:MA(CLOSE,10),COLORYELLOW,LINETHICK1;
MA5:MA(CLOSE,5),COLORWHITE,LINETHICK1;
{信号系统}
买入1:DRAWICON(CROSS(【1】,【2】),【2】*0.98,5);
买入2:DRAWICON(CROSS(【1】,【3】),【3】*0.98,5);
买入3:DRAWICON(CROSS(【1】,【4】),【4】*0.98,5);
买入4:DRAWICON(CROSS(【2】,【3】),【3】*0.98,9);
买入5:DRAWICON(CROSS(【2】,【4】),【4】*0.98,9);
买入6:DRAWICON(CROSS(【3】,【4】),【4】*0.98,135);
{买入7:DRAWICON(CROSS(MA5,MA10),MA10*0.98,1);
买入8:DRAWICON(CROSS(MA5,【1】),【1】*0.976,1);
买入9:DRAWICON(CROSS(MA5,【2】),【2】*0.972,1);
买入10:DRAWICON(CROSS(MA5,【3】),【3】*0.968,1);
买入11:DRAWICON(CROSS(MA5,【4】),【4】*0.964,1);};
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
布林赋值:14日内L最高值,60)
阻力区赋值:布林的16日指数移动平均-2*布林的16估算标准差,3)
阻力区1:=布林的14日指数移动平均+2*布林的14估算标准差,18)
DRAWBAND(阻力区,RGB(99,99,99),阻力区1,RGB(99,99,99))
输出
{四线开花}
【4】:收盘价的250日简单移动平均, 画蓝色, 线宽为3
输出
【3】:收盘价的120日简单移动平均,画青色, 线宽为3
输出
【2】:收盘价的60日简单移动平均,画绿色, 线宽为3
输出
【1】:收盘价的20日简单移动平均,COLORLIRED, 线宽为3
{神秘线}
V0赋值:成交量*(O+C+H+L)/4
输出
SM:V0的21日指数移动平均/成交量的21日指数移动平均,COLOR987654,LINETHICK0
输出
{量能评台突破}
PT:IF(HHVBARS(V,35),REF(C,HHVBARS(V,35)),C),COLOR7F017F,LINETHICK0
{N日涨幅}
N1赋值:上次CROSS(C,C的6日简单移动平均距今天数)
N2赋值:上次CROSS(C的6日简单移动平均,C距今天数)
如果N1输出
ZF%:(C-N日前的C)/N日前的C*100,画红色,NODRAW
当满足条件C>=SM AND C>=O时,在开盘价和收盘价之间画柱状线
STICKLINE(C>=SM AND C>=O,最低价,O和C的较小值,0,1),画红色
STICKLINE(C>=SM AND C>=O,O和C较大值,最高价,0,1),画红色
当满足条件C>=SM AND C当满足条件C>=SM AND C当满足条件C>=SM AND C当满足条件C=O时,在开盘价和收盘价之间画柱状线
STICKLINE(C=O,最低价,O和C的较小值,0,1),画白色
STICKLINE(C=O,O和C较大值,最高价,0,1),画白色
当满足条件C当满足条件C当满足条件C
{立桩量}
V2赋值:IF( 到最后交易的周期=1,成交量*240/FROM开盘价/1日前的成交量-1,成交量/1日前的成交量-1)
当满足条件V2>=1 AND 开盘价<收盘价时,在开盘价和收盘价之间画柱状线
当满足条件V2>=1 AND 开盘价>收盘价时,在开盘价和收盘价之间画柱状线
{涨跌停K线}
涨跌赋值:1日前的C
涨停赋值:IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0)
当满足条件涨停时,在开盘价和收盘价之间画柱状线
当满足条件涨停时,在H和L之间画柱状线
跌停赋值:IF((涨跌-C)*100/涨跌>=(10-0.01*100/涨跌),1,0)
当满足条件跌停时,在开盘价和收盘价之间画柱状线
当满足条件跌停时,在H和L之间画柱状线
{立桩量金箍}
STICKLINE(V2>=1,O,(C+O)/2,6,0),COLOR003333
STICKLINE(V2>=1,O,(C+O)/2,5,0),COLOR116666
STICKLINE(V2>=1,O,(C+O)/2,4,0),COLOR229999
STICKLINE(V2>=1,O,(C+O)/2,3,0),COLOR33CCCC
STICKLINE(V2>=1,O,(C+O)/2,2,0),COLOR44FFFF
输出
MA10:收盘价的10日简单移动平均,画黄色,LINETHICK1
输出
MA5:收盘价的5日简单移动平均,画白色,LINETHICK1
输出
{信号系统}
买入1:DRAWICON(【1】上穿【2】,【2】*0.98,5)
输出
买入2:DRAWICON(【1】上穿【3】,【3】*0.98,5)
输出
买入3:DRAWICON(【1】上穿【4】,【4】*0.98,5)
输出
买入4:DRAWICON(【2】上穿【3】,【3】*0.98,9)
输出
买入5:DRAWICON(【2】上穿【4】,【4】*0.98,9)
输出
买入6:DRAWICON(【3】上穿【4】,【4】*0.98,135)
输出
{买入7:DRAWICON(MA5上穿MA10,MA10*0.98,1)
输出
买入8:DRAWICON(MA5上穿【1】,【1】*0.976,1)
输出
买入9:DRAWICON(MA5上穿【2】,【2】*0.972,1)
输出
买入10:DRAWICON(MA5上穿【3】,【3】*0.968,1)
输出
买入11:DRAWICON(MA5上穿【4】,【4】*0.964,1)
}