人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

您現(xiàn)在的位置:程序化交易>> 股票公式>> 同花順>> 同花順公式>>正文內(nèi)容

均線止盈線圖牛熊線主圖指標(biāo)公式[同花順公式]

相關(guān)標(biāo)簽:

 

同花順均線圖主圖指標(biāo)源碼

 

 

 

原理解析:


 

 

源碼:

ED1:=(-2*REF(C,2)+REF(C,1)+2*C);
ED2:=(-0.4*REF(C,4)-0.4*REF(C,3)-1.1*REF(C,2)+0.9*REF(C,1)+2*C);
ED3:=(-0.8*REF(C,4)-0.8*REF(C,3)-0.2*REF(C,2)+0.8*REF(C,1)+2*C);
JF1:=SMA(SMA(ED1,3,1),3,1);
JF2:=SMA(SMA(ED2,4,1),3,1);
JF3:=SMA(SMA(ED3,4,1),4,1);
止盈線:=EMA(JF1,7,2);
工作線:EMA(JF1,14,2),LINETHICK1,colorwhite;
生命線:EMA(JF1,25,2),LINETHICK1,coloryellow;
牛熊線:EMA(JF1,40,2),colorred,LINETHICK1;
DRAWICON(CROSS(ED2,JF2),L/1.057,8);
大盤指數(shù):INDEXC,NODRAW,ColorFFFF00;
PARTLINE(止盈線,止盈線>REF(止盈線,1),RGB(250,0,250),止盈線<=REF(止盈線,1),RGB(10,250,10)),LINETHICK2;
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),
EMA8,'∠45上升'),colorwhite;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.89),'底離'),colorred;
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.18),'頂離'),Color1AFF1A;
MA3:=MA(C,4);
X1:=REF(EMA(C,4),1);
X2:=(EMA(C,3)-X1)/X1*100;
N1:=BARSLAST(CROSS(X2,0));
N2:=BARSLAST(CROSS(0,X2));

X3:=CROSS(X2,0) OR CROSS(0,X2);
STICKLINE(N1<N2,REF(MA3,N1),REF(MA3,N1),9,3),Color1EFFFF,LINETHICK2;
STICKLINE(N2<N1,REF(MA3,N2),REF(MA3,N2),9,3),ColorFFFFFF,LINETHICK2;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),ColorFFFF1E;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),ColorFFFF1E;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,10,0 ),COLORff7700;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLORff9900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORffbb00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,10,0) ,COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;
var9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2); STICKLINE(var9Q,C,(O+C)/2,10,0),ColorAA00AA;
STICKLINE(var9Q,C,(O+C)/2,8,0),ColorBF00BF;
STICKLINE(var9Q,C,(O+C)/2,6,0),ColorD500D5;
STICKLINE(var9Q,C,(O+C)/2,4,0),ColorEC00EC;
STICKLINE(var9Q,C,(O+C)/2,3,0),ColorFF02FF;
STICKLINE(var9Q,C,(O+C)/2,2,0),ColorFF15FF;
STICKLINE(var9Q,C,(O+C)/2,1,0),ColorFF37FF;
varaQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4); STICKLINE(varaQ,C,(O+C)/2,10,0),colorff11ff;
STICKLINE(varaQ,C,(O+C)/2,8,0),colorff33ff;
STICKLINE(varaQ,C,(O+C)/2,6,0),colorff55ff;
STICKLINE(varaQ,C,(O+C)/2,4,0),colorff77ff;
STICKLINE(varaQ,C,(O+C)/2,3,0),colorff99ff;
STICKLINE(varaQ,C,(O+C)/2,2,0),colorffbbff;
STICKLINE(varaQ,C,(O+C)/2,1,0),colorffddff;
varbQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<>HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2); STICKLINE(varbQ,C,(O+C)/2,10,0),color333333;
STICKLINE(varbQ,C,(O+C)/2,8,0),color555555;
STICKLINE(varbQ,C,(O+C)/2,6,0),color777777;
STICKLINE(varbQ,C,(O+C)/2,4,0),color999999;
STICKLINE(varbQ,C,(O+C)/2,3,0),colorbbbbbb;
STICKLINE(varbQ,C,(O+C)/2,2,0),colordddddd;
STICKLINE(varbQ,C,(O+C)/2,1,0),colorffffff;
varcQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1); STICKLINE(varcQ,O,(O+C)/2,10,0),Color00A8A8;
STICKLINE(varcQ,O,(O+C)/2,8,0),Color00BDBD;
STICKLINE(varcQ,O,(O+C)/2,6,0),Color00D2D2;
STICKLINE(varcQ,O,(O+C)/2,4,0),Color00ECEC;
STICKLINE(varcQ,O,(O+C)/2,3,0),Color00FFFF;
STICKLINE(varcQ,O,(O+C)/2,2,0),Color15FFFF;
STICKLINE(varcQ,O,(O+C)/2,1,0),Color33FFFF;
vardQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);STICKLINE(vardQ,O,(O+C)/2,10,0),colorff1100;
STICKLINE(vardQ,O,(O+C)/2,8,0),colorff3300;
STICKLINE(vardQ,O,(O+C)/2,6,0),colorff5500;
STICKLINE(vardQ,O,(O+C)/2,4,0),colorff7700;
STICKLINE(vardQ,O,(O+C)/2,3,0),colorff9900;
STICKLINE(vardQ,O,(O+C)/2,2,0),colorffbb00;
STICKLINE(vardQ,O,(O+C)/2,1,0),colorffdd00;
C3:=REF(C,1);
漲停:IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0),Color2DFFFF;
STICKLINE(漲停,OPEN,CLOSE,10,0),Color00CACA;
STICKLINE(漲停,OPEN,CLOSE,8,0),Color00E3E3;
STICKLINE(漲停,OPEN,CLOSE,6,0),Color02FFFF;
STICKLINE(漲停,OPEN,CLOSE,4,0),Color2DFFFF;
跌停:IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0),Color33FF33;
STICKLINE(跌停,OPEN,CLOSE,10,0),Color00BB00;
STICKLINE(跌停,OPEN,CLOSE,8,0),Color00DD00;
STICKLINE(跌停,OPEN,CLOSE,6,0),Color00FF00;
STICKLINE(跌停,OPEN,CLOSE,4,0),Color1EFF1E;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
低吸:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(FILTER(低吸=1,5),LOW-0.19,'▲'),ColorFF26FF;TIPTEXT(ISNULL(REFX(&CLOSE,1)),0,' www.kzuj.com.cn '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花順程序化交易');


 

公式導(dǎo)入教程: 【通達(dá)信公式源碼導(dǎo)入方法教程】 【同花順公式源碼導(dǎo)入方法教程】 【大智慧新一代公式源碼導(dǎo)入方法教程

 

 

有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友

可聯(lián)系技術(shù)人員 QQ: 1145508240  點(diǎn)擊這里給我發(fā)消息進(jìn)行 有償 編寫!不貴!點(diǎn)擊查看價(jià)格!

 


【字體: 】【打印文章】【查看評(píng)論

相關(guān)文章

    沒有相關(guān)內(nèi)容
  主站蜘蛛池模板: 韩国久久 | 香蕉国产精品 | 黄色在线观看国产 | 午夜资源站 | 欧美特黄一区二区三区 | 国产日本在线播放 | 日韩精品国产自在欧美 | 99在线视频免费观看 | 抽搐videos| 亚洲综合在线观看一区www | 日韩一区二区不卡中文字幕 | 欧美成人免费全部观看天天性色 | 91精品久久久久久久99蜜桃 | 小明永久播放平台领域2015 | 成年人黄视频在线观看 | 国产青草视频 | 小明永久播放平台领域2015 | 伦理在线看 | 日韩欧美一区二区中文字幕 | 日韩中文字幕视频在线 | 18岁以下禁止看很黄的视频 | 久久综合视频网 | 97夜夜澡人人爽人人喊中国片 | 波多野结衣日韩 | 色视网站| 国产91在线 | 亚洲 | 午夜刺激爽爽视频免费观看 | 一色屋精品亚洲香蕉网站 | 最新黄色网址在线观看 | 亚洲午夜在线播放 | 两个人免费视频www 两个人看的www中文字幕 | 欧美一区精品 | wwwxx欧美| 色原网站| 操美女在线 | 国产成人系列 | 午夜爽视频 | 亚洲黄色一级 | 可以免费看的黄色片 | 男人最爱看的网站 | 日批免费网站 |