神奇布林线,成功率90%[其他软件公式]
相关标签:
{布林线}
MID :MA(CLOSE,21),colorwhite;
UPPER:MID + 1.96*STDDEV(CLOSE,21),coloryellow;
LOWER:MID - 1.96*STDDEV(CLOSE,21),coloryellow;
UP:MID + 2.56*STDDEV(CLOSE,21),colorff00ff;
LOOW:MID - 2.56*STDDEV(CLOSE,21),colorff00ff;
{上升趋势}
stickline(c>=mid,mid,up,6,0),color330066;
{下降趋势}
stickline(c<mid,mid,loow,6,0),Color545454;
mid,colorwhite;
upper,coloryellow;
up,colorff00ff;
lower,coloryellow;
loow,colorff00ff;
开口:=up-loow;
相离:=c-mid;
drawtext(c>=mid and ref(开口,1)=hhv(开口,20),upper,'减仓'),color00FF00;
drawtext(c>=mid and ref(相离,1)=llv(相离,5),mid,'加仓');
股价多头:=c>ma(c,5) and ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20);
drawtext(FILTER(股价多头,20),loow*0.95,'开始建仓'),colorred;
drawicon(FILTER(股价多头,20),lower,1),colorred;
drawtext(cross(mid,c),up,'空仓观望'),coloryellow;
drawicon(cross(mid,c),upper,2),coloryellow;
{K线}
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,5.2,0),color070084;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,4,0),color0000A3;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,3.5,0),color0000B7;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,3,0),color0000CD;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,2.5,0),color0000E9;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,2,0),color0754E9;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,1.5,0),color076EF3;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,1,0),color077BF3;
STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),color077BF3;
STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),color077BF3;
STICKLINE((CLOSE = OPEN and c>ref(c,1)),CLOSE,OPEN,5.2,0),color070084;
STICKLINE((CLOSE = OPEN and c>ref(c,1)),CLOSE,OPEN,4,0),color0000A3;
STICKLINE((CLOSE = OPEN and c>ref(c,1)),CLOSE,OPEN,3.5,0),color0000B7;
STICKLINE((CLOSE = OPEN and c>ref(c,1)),CLOSE,OPEN,3,0),color0000CD;
STICKLINE((CLOSE = OPEN and c>ref(c,1)),CLOSE,OPEN,2.5,0),color0000E9;
STICKLINE((CLOSE = OPEN and c>ref(c,1)),CLOSE,OPEN,2,0),color0754E9;
STICKLINE((CLOSE = OPEN and c>ref(c,1)),CLOSE,OPEN,1.5,0),color076EF3;
STICKLINE((CLOSE = OPEN and c>ref(c,1)),CLOSE,OPEN,1,0),color077BF3;
STICKLINE((CLOSE = OPEN and c>ref(c,1)),OPEN,LOW,1,0),color077BF3;
STICKLINE((CLOSE = OPEN and c>ref(c,1)),CLOSE,HIGH,1,0),color077BF3;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,5.2,0),colorFF5B00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,4,0),colorFF6C00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,3.5,0),colorFF7B00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,3,0),colorFF9C00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,2.5,0),colorFFBE00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,2,0),colorFFCC00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,1,0),colorFFFF00;
STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),colorFFFF00;
STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),colorFFFF00;
STICKLINE((OPEN = CLOSE and c<ref(c,1)),CLOSE,OPEN,5.2,0),colorFF5B00;
STICKLINE((OPEN = CLOSE and c<ref(c,1)),CLOSE,OPEN,4,0),colorFF6C00;
STICKLINE((OPEN = CLOSE and c<ref(c,1)),CLOSE,OPEN,3.5,0),colorFF7B00;
STICKLINE((OPEN = CLOSE and c<ref(c,1)),CLOSE,OPEN,3,0),colorFF9C00;
STICKLINE((OPEN = CLOSE and c<ref(c,1)),CLOSE,OPEN,2.5,0),colorFFBE00;
STICKLINE((OPEN = CLOSE and c<ref(c,1)),CLOSE,OPEN,2,0),colorFFCC00;
STICKLINE((OPEN = CLOSE and c<ref(c,1)),CLOSE,OPEN,1,0),colorFFFF00;
STICKLINE((OPEN = CLOSE and c<ref(c,1)),CLOSE,LOW,1,0),colorFFFF00;
STICKLINE((OPEN = CLOSE and c<ref(c,1)),OPEN,HIGH,1,0),colorFFFF00;
通达信版本:
通达信的
MID2 :=MA(CLOSE,21),COLORWHITE;
UPPER2:=MID2 + 1.96*STD(CLOSE,21),COLORYELLOW;
LOWER2:=MID2 - 1.96*STD(CLOSE,21),COLORYELLOW;
UP2:=MID2 + 2.56*STD(CLOSE,21),COLORFF00FF;
LOOW2:=MID2 - 2.56*STD(CLOSE,21),COLORFF00FF;
{上升趋势}
STICKLINE(C>=MID2,MID2,UP2,2,0),COLOR330066;
{下降趋势}
STICKLINE(C<MID2,MID2,LOOW2,2,0),COLOR545454;
MID:MID2,COLORWHITE;
UPPER:UPPER2,COLORYELLOW;
UP:UP2,COLORFF00FF;
LOWER:LOWER2,COLORYELLOW;
LOOW:LOOW2,COLORFF00FF;
开口:=UP-LOOW;
相离:=C-MID;
DRAWTEXT(C>=MID AND REF(开口,1)=HHV(开口,20),UPPER,'减仓'),COLOR00FF00;
DRAWTEXT(C>=MID AND REF(相离,1)=LLV(相离,5),MID,'加仓');
股价多头:=C>MA(C,5) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20);
DRAWTEXT(FILTER(股价多头,20),LOOW*0.95,'开始建仓'),COLORRED;
DRAWICON(FILTER(股价多头,20),LOWER,1),COLORRED;
DRAWTEXT(CROSS(MID,C),UP,'空仓观望'),COLORYELLOW;
DRAWICON(CROSS(MID,C),UPPER,2),COLORYELLOW;
{K线}
{STICKLINE((CLOSE > OPEN),CLOSE,OPEN,5.2,0),COLOR070084;}
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,4,1),COLOR0000A3;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,3.5,0),COLOR000033;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,3,0),COLOR000066;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,2.0,0),COLOR000099;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,1.0,0),COLOR0000FF;
STICKLINE((CLOSE > OPEN),CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE((CLOSE > OPEN),OPEN,LOW,0.3,0),COLORRED;
STICKLINE((CLOSE > OPEN),CLOSE,HIGH,0.3,0),COLORRED;
{STICKLINE((CLOSE = OPEN AND C>REF(C,1)),CLOSE,OPEN,5.2,0),COLOR070084;}
STICKLINE((CLOSE = OPEN AND C>REF(C,1)),CLOSE,OPEN,4,1),COLOR0000A3;
STICKLINE((CLOSE = OPEN AND C>REF(C,1)),CLOSE,OPEN,3.5,0),COLOR0000B7;
STICKLINE((CLOSE = OPEN AND C>REF(C,1)),CLOSE,OPEN,3,0),COLOR0000CD;
STICKLINE((CLOSE = OPEN AND C>REF(C,1)),CLOSE,OPEN,2.0,0),COLOR0000E9;
STICKLINE((CLOSE = OPEN AND C>REF(C,1)),CLOSE,OPEN,1.5,0),COLOR0754E9;
STICKLINE((CLOSE = OPEN AND C>REF(C,1)),CLOSE,OPEN,1.0,0),COLOR076EF3;
STICKLINE((CLOSE = OPEN AND C>REF(C,1)),CLOSE,OPEN,0.5,0),COLOR077BF3;
STICKLINE((CLOSE = OPEN AND C>REF(C,1)),OPEN,LOW,0.3,0),COLOR0000CD;
STICKLINE((CLOSE = OPEN AND C>REF(C,1)),CLOSE,HIGH,0.3,0),COLOR0000CD;
{STICKLINE((OPEN > CLOSE),CLOSE,OPEN,5.2,0),COLORFF5B00;}
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,4,1),COLORFF6C00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,3.5,0),COLORFF7B00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,2,0),COLORFF9C00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,1.5,0),COLORFFBE00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,1,0),COLORFFCC00;
STICKLINE((OPEN > CLOSE),CLOSE,OPEN,0.5,0),COLORFFFF00;
STICKLINE((OPEN > CLOSE),CLOSE,LOW,0.3,0),COLORFF9C00;
STICKLINE((OPEN > CLOSE),OPEN,HIGH,0.3,0),COLORFF9C00;
{STICKLINE((OPEN = CLOSE AND C<REF(C,1)),CLOSE,OPEN,5.2,0),COLORFF5B00;}
STICKLINE((OPEN = CLOSE AND C<REF(C,1)),CLOSE,OPEN,4,1),COLORFF6C00;
STICKLINE((OPEN = CLOSE AND C<REF(C,1)),CLOSE,OPEN,3.5,0),COLORFF7B00;
STICKLINE((OPEN = CLOSE AND C<REF(C,1)),CLOSE,OPEN,2,0),COLORFF9C00;
STICKLINE((OPEN = CLOSE AND C<REF(C,1)),CLOSE,OPEN,1.5,0),COLORFFBE00;
STICKLINE((OPEN = CLOSE AND C<REF(C,1)),CLOSE,OPEN,1,0),COLORFFCC00;
STICKLINE((OPEN = CLOSE AND C<REF(C,1)),CLOSE,OPEN,0.5,0),COLORFFFF00;
STICKLINE((OPEN = CLOSE AND C<REF(C,1)),CLOSE,LOW,0.3,0),COLORFF9C00;
STICKLINE((OPEN = CLOSE AND C<REF(C,1)),OPEN,HIGH,0.3,0),COLORFF9C00;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容