抄底黄柱红球源码 副图/预警 通达信 贴图
M60:=MA(C,7);
M120:=MA(C,34);
DRAWBAND(M60,RGB(90,0,0),M120,RGB(0,90,0));
MA5:MA(CLOSE,5),COLORFFFFFF;
MA10:MA(CLOSE,10),COLOR00FFFF;
MA14:MA(CLOSE,14)COLORYELLOW,DOTLINE;
MA20:MA(C,20),COLORFF00FF;
MA25:MA(C,25),DOTLINE;
MA30:MA(C,30),COLORCYAN;
MA60:MA(C,60),COLORGREEN;
MA120:MA(CLOSE,120),COLORWHITE;
MA250:MA(CLOSE,250),COLORBLUE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
BDGD:=C=HHV(C,13);{}
GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;
高点:REF(C,GDSJ),COLORFF00FF,POINTDOT;
突破:CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,NODRAW;
STICKLINE(GDSJ<=6,高点,高点,3,0),COLORFF00FF;
DRAWTEXT(突破,LOW,'↑'),COLOR00FFFF;
BDDD:=C=LLV(C,13);
DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;
低点:REF(C,DDSJ),COLOR00FF00,POINTDOT;
STICKLINE(DDSJ<=6,低点,低点,3,0),COLOR00FF00;
{}
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
{}
XS:=MA(LOW,5)*(1-5/100),LINETHICK0;
XS1:=MA(HIGH,5)*(1+5/100);
DRAWTEXT(CROSS(XS1,C),H*1.01,'砸'),COLORRED;
{}
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);
小股民:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
庄家:=EMA(0.667*REF(小股民,1)+0.333*小股民,2)*VAR3;
DRAWTEXT(CROSS(小股民,庄家) AND 小股民<30,L-0.05,'←低吸'),COLORLIRED;
DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,H+0.05,'←高抛')COLORRED;
B1:=REF(CLOSE,1);{}
WR:=-100*(HHV(HIGH,28)-CLOSE)/(HHV(HIGH,28)-LLV(LOW,28));
DRAWICON(FILTER(CROSS(WR,(0 - 81)),10),B1,13);
DRAWICON(FILTER(CROSS((0 -19),WR),10),H*1.02,15);
DRAWTEXT(FILTER(CROSS(WR,(0 - 81)),21),L*0.99,' W&R'),COLORRED;
DRAWTEXT(FILTER(CROSS(0 -19,WR),21),H*1.01,' W&R'),COLORGREEN;
MA18:=MA(C,18);
跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);
DRAWTEXT(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),LOW*0.96,'跟'),COLOR7F52AF;
STICKLINE(C>REF(C,1)*1.097,C,O,2,0)COLORMAGENTA,LINETHICK2;
STICKLINE(C<REF(C,1)*0.901,C,O,2,0)COLORGREEN,LINETHICK1;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
M60赋值:C的7日简单移动平均
M120赋值:C的34日简单移动平均
DRAWBAND(M60,RGB(90,0,0),M120,RGB(0,90,0))
输出MA5:收盘价的5日简单移动平均,COLORFFFFFF
输出MA10:收盘价的10日简单移动平均,COLOR00FFFF
输出MA14:收盘价的14日简单移动平均画黄色,DOTLINE
输出MA20:C的20日简单移动平均,COLORFF00FF
输出MA25:C的25日简单移动平均,DOTLINE
输出MA30:C的30日简单移动平均,画青色
输出MA60:C的60日简单移动平均,画绿色
输出MA120:收盘价的120日简单移动平均,画白色
MA250:收盘价的250日简单移动平均, 画蓝色
DRAWKLINE(最高价,开盘价,最低价,收盘价)
BDGD赋值:C=13日内C最高值
{}
GDSJ赋值:上次FILTER(0.8上穿BDGD,2距今天数)+1
输出高点:GDSJ日前的C,COLORFF00FF,POINTDOT
输出突破:CROSS(C,1日前的高点),COLOR00FFFF,POINTDOT,NODRAW
当满足条件GDSJ<=6时,在高点和高点之间画柱状线
当满足条件突破时,在最低价和'↑'位置书写文字
BDDD赋值:C=13日内C最低值
DDSJ赋值:上次FILTER(0.8上穿BDDD,2距今天数)+1
输出低点:DDSJ日前的C,COLOR00FF00,POINTDOT
当满足条件DDSJ<=6时,在低点和低点之间画柱状线
{}
A3赋值:(C-9日内L最低值)/(9日内H最高值-9日内L最低值)*100
A3的3日[1日权重]移动平均
A4的3日[1日权重]移动平均
A6赋值:3*A4-2*A5
A7赋值:C-1日前的C
A8赋值:100*A7的6日指数移动平均,6)/EMA(EMA(A7的绝对值,6),6)
买赋值:2日内A8最低值=7日内A8最低值 AND 统计2日满足A8<0的天数 AND CROSS(A8,A8的2日简单移动平均)
DRAWTEXT(买=1的5过滤,最低价-0.05,'↖买进'),画黄色
当满足条件买时,在开盘价和收盘价之间画柱状线
{}
XS赋值:最低价的5日简单移动平均*(1-5/100),LINETHICK0
XS1赋值:最高价的5日简单移动平均*(1+5/100)
DRAWTEXT(XS1上穿C,H*1.01,'砸'),画红色
{}
VAR2赋值:(2*收盘价+最高价+最低价)/4
如果YEAR>=2099 AND MONTH>2返回0否则返回1
VAR4赋值:5日内最低价最低值
VAR5赋值:4日内最高价最高值
小股民赋值:EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3
庄家赋值:E0.667*1日前的小股民+0.333*小股民的2日简单移动平均*VAR3
DRAWTEXT(小股民上穿庄家 AND 小股民<30,L-0.05,'←低吸'),COLORLIRED
DRAWTEXT(庄家上穿小股民 AND 小股民>70,H+0.05,'←高抛')画红色
B1赋值:1日前的收盘价
{}
WR赋值:-100*(28日内最高价最高值-收盘价)/(28日内最高价最高值-28日内最低价最低值)
DRAWICON(FILTER(CROSS(WR,(0 - 81)),10),B1,13)
DRAWICON(FILTER(CROSS((0 -19),WR),10),H*1.02,15)
DRAWTEXT(FILTER(CROSS(WR,(0 - 81)),21),L*0.99,' W&R'),画红色
DRAWTEXT(FILTER(0 -19上穿WR,21),H*1.01,' W&R'),画绿色
MA18赋值:C的18日简单移动平均
跟赋值:IF(MA18>=3日前的MA18 AND 收盘价上穿MA18,1,0)
DRAWTEXT(MA18>=3日前的MA18 AND 收盘价上穿MA18,最低价*0.96,'跟'),COLOR7F52AF
STICKLINE(C>1日前的C*1.097,C,O,2,0)画洋红色, 线宽为2
STICKLINE(C<1日前的C*0.901,C,O,2,0)画绿色,LINETHICK1