看股吧 www.kanguba.com [今日大盘指数 欧美全球股市行情 股票公式查询网站] 手机APP下载 | 手机访问 | 加入收藏 | 保存到桌面
看股吧
看股吧股票网-今日大盘指数 欧美全球股市行情 股票公式查询网站
股票查询: 行情分析 DDX指标 走势点评 股票公告 大事 主力持仓 股权质押 分红 大小非 十大股东 股本结构 高管持股 研报 高管 主营 龙虎榜 股吧
当前位置: 看股吧 > 股票公式 > 公式编写
股票公式搜索:

把大知慧财神主图源码翻译成通达信主图源码

2020/1/16 18:18:03

公式编写说明:

大知慧财神主图源码:MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;马线:MA(牛线,6),COLORGREEN;Var0:=SMA(MAX(CLOSE-ref(c,1),0),12,1)/SMA(ABS(CLOSE-ref(c,1)),15,1)*100;DRAWTEXT(CROSS(82,Var0),high,'快卖'),colorwhite;DRAWTEXTABS(10,10,STKLABEL+' '+STKNAME+' '+BKNAME),COLOR00FFFF;s:=C-REF(C,1);DX:=100*EMA(EMA(s,6),6)/EMA(EMA(ABS(s),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.03,'拉升'),ColorFFDE00;da:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;db:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;DRAWTEXT(CROSS(da-db,0),L*0.95,'★B'),COLORRED;JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;DRAWTEXT(CROSS(84,JH),H*1.05,'☆S'),COLORGREEN;YC:=REF(CLOSE,1);止损价位:(YC*1.0035*97+0.2)/99.65,COLORRED,LINETHICK0;DRAWTEXTABS(CLOSE,25,'★ ======================'),COLORRED;DRAWTEXTABS(CLOSE,41,'操 '),COLORRED;DRAWTEXTABS(CLOSE,57,'盘 '),COLORRED;DRAWTEXTABS(CLOSE,73,'铁'),COLORRED;DRAWTEXTABS(CLOSE,89,'律'),COLORRED;DRAWTEXTABS(CLOSE,105,'★ ======================'),COLORRED;DRAWTEXTABS(CLOSE,41,' 买入条件 E13 CCI'),colorYellow;DRAWTEXTABS(CLOSE,57,' 买入时间 2:30以后' ),colorYellow;DRAWTEXTABS(CLOSE,73,' 止损价位 '+NUMTOSTR(止损价位)+'元'),colorYellow;DRAWTEXTABS(CLOSE,89,' 线上:工作 线下:休息'),color00FFFF;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日阻力:=2*E-LOW;明日支撑:=2*E-HIGH;明日突破:=E+(HIGH-LOW);明日反转:=E-(HIGH-LOW);今日阻力:=REF(明日阻力 , 1);今日支撑:=REF(明日支撑 , 1);DRAWTEXTABS(200,25,'今日阻力=:'+NUMTOSTR(今日阻力)),ColorFFFF00;DRAWTEXTABS(200,41,'今日支撑=:'+NUMTOSTR(今日支撑)),Colorred;DRAWTEXTABS(200,57,'明日突破=:'+NUMTOSTR(明日突破)),ColorFF00FF;DRAWTEXTABS(200,73,'明日阻力=:'+NUMTOSTR(明日阻力)),ColorFFFF00;DRAWTEXTABS(200,89,'明日支撑=:'+NUMTOSTR(明日支撑)),COLORRED;DRAWTEXTABS(200,105,'明日反转=:'+NUMTOSTR(明日反转)),COLORYellow;A:=HHV(HIGH,13)=HIGH AND HIGH>REF(HIGH,1);A1:=FILTER(A,12);B:=LLV(LOW,13)=LOW AND LOW<REF(LOW,1);B1:=FILTER(B,12);TS1:=BARSLAST(A1);箱顶:REF(HIGH,TS1) ,COLORFF00FF, LINETHICK0; STICKLINE(1,箱顶,箱顶,7,0),COLORFF00FF;TS2:=BARSLAST(B1);箱底:REF(LOW,TS2) ,COLORFFbb80, LINETHICK0;STICKLINE(1,箱底,箱底,7,0),COLORFFbb80;箱高:100*(箱顶-箱底)/箱底,LINETHICK0;均价:=(3*C+H+L+O)/6;VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)AND CLOSE>VAR2 AND CLOSE<VAR1;SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1)AND CLOSE<VAR2) OR (VAR1>VAR2 AND VAR1<REF(VAR1,1)AND VAR2<REF(VAR2,1) AND CLOSE<VAR2);;SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE<VAR2;XD1:=VAR1=VAR2 AND CLOSE<VAR2 OR (VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1)AND REF(VAR1,1)=REF(VAR2,1) AND CLOSE<VAR2);XD2:=VAR1=VAR2 AND CLOSE>VAR1;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和度:=IF(SAT>1,1,SAT)*100;IF BARSTATUS=2 AND SZ1 THEN BEGINDRAWTEXTABS(350,25,'调整结束短线介入'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ2 THEN BEGINDRAWTEXTABS(350,25,'上升通道走势良好'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ3 THEN BEGINDRAWTEXTABS(350,25,'股价偏离注意调整'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ4 THEN BEGINDRAWTEXTABS(350,25,'上升通道调整洗盘'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND SZ5 THEN BEGINDRAWTEXTABS(350,25,'转向特征注意离场'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND SZ6 THEN BEGINDRAWTEXTABS(350,25,'通道改变坚决离场'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND XD1 THEN BEGINDRAWTEXTABS(350,25,'下跌通道只宜观望'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND XD2 THEN BEGINDRAWTEXTABS(350,25,'短期底部准备进入'),COLORYELLOW;END;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 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORff7700;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORff9900;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,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,7,0) ,COLOR000055;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,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,7,0),color000055;stickline(var9Q,c,(o+c)/2,6,0),color000066;stickline(var9Q,c,(o+c)/2,5,0),color000077;stickline(var9Q,c,(o+c)/2,4,0),color000099;stickline(var9Q,c,(o+c)/2,3,0),color0000bb;stickline(var9Q,c,(o+c)/2,2,0),color0000dd;stickline(var9Q,c,(o+c)/2,1,0),color0000ff;varaQ:=c=hhv(c,4) and ref(c,1)=llv(c,4);stickline(varaQ,c,(o+c)/2,7,0),colorff11ff;stickline(varaQ,c,(o+c)/2,6,0),colorff33ff;stickline(varaQ,c,(o+c)/2,5,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)hhv(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,1);stickline(varcQ,o,(o+c)/2,7,0),color003300;

公式源码示例:

 MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;

牛线:WMA(MID,20),COLORRED;
马线:MA(牛线,6),COLORGREEN;
VAR0:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),15,1)*100;
文字1:=STRCAT(STRCAT(STRCAT(STRCAT(HYBLOCK,' '),GNBLOCK),' '),DYBLOCK);
S:=C-REF(C,1);
DX:=100*EMA(EMA(S,6),6)/EMA(EMA(ABS(S),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
YC:=REF(CLOSE,1);
止损价位:(YC*1.0035*97+0.2)/99.65,COLORRED,NODRAW;
E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
明日阻力:=2*E-LOW;
明日支撑:=2*E-HIGH;
明日突破:=E+(HIGH-LOW);
明日反转:=E-(HIGH-LOW);
今日阻力:=REF(明日阻力,1);
今日支撑:=REF(明日支撑,1);
A:=HHV(HIGH,13)=HIGH AND HIGH>REF(HIGH,1);A1:=FILTER(A,12);
B:=LLV(LOW,13)=LOW AND LOW<REF(LOW,1);B1:=FILTER(B,12);
TS1:=BARSLAST(A1);
箱顶:REF(HIGH,TS1)  ,COLORFF00FF, NODRAW;  
STICKLINE(1,箱顶,箱顶,1.5,0),COLORFF00FF;
TS2:=BARSLAST(B1);
箱底:REF(LOW,TS2)  ,COLORFFBB80,NODRAW;
STICKLINE(1,箱底,箱底,1.5,0),COLORFFBB80;
箱高:100*(箱顶-箱底)/箱底,NODRAW;
均价:=(3*C+H+L+O)/6;
VAR1:=WMA(均价,8);
VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;
SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)
AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;
SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;
SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)
AND CLOSE>VAR2 AND CLOSE<VAR1;
SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1!=REF(VAR1,1)
AND CLOSE<VAR2) OR (VAR1>VAR2 AND VAR1<REF(VAR1,1)
AND VAR2<REF(VAR2,1) AND CLOSE<VAR2);
SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE<VAR2;
XD1:=VAR1=VAR2 AND CLOSE<VAR2 OR (VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1)
AND REF(VAR1,1)=REF(VAR2,1) AND CLOSE<VAR2);
XD2:=VAR1=VAR2 AND CLOSE>VAR1;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:=IF(SAT>1,1,SAT)*100;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0,0 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0,0 ),COLOR0000FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFF7700;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.5,0 ),COLORFF9900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFBB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0 ),COLORFFCC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFDD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.5,0 ),COLORFFEE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.2,0 ),COLORFFFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.2,0) ,COLOR0000FF;
DRAWTEXT(CROSS(82,VAR0),HIGH,'快卖'),COLORWHITE;
DRAWTEXT(FILTER(买=1,5),LOW-0.03,'拉升'),COLORFFDE00;
DRAWTEXT(CROSS(DA-DB,0),L*0.95,'★B'),COLORRED;
DRAWTEXT(CROSS(84,JH),H*1.05,'☆S'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,文字1),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,'★ ======================'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,'操'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.18,0,'盘'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.24,0,'铁'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.30,0,'律'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.36,0,'★ ======================'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.03,0.12,0,'买入条件    E13 CCI'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.03,0.18,0,'买入时间    2:30以后'),COLORYELLOW;
文字2:=STRCAT(STRCAT('止损价位    ',CON2STR(止损价位,2)),'元');
DRAWTEXT_FIX(ISLASTBAR,0.03,0.24,0,文字2),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.03,0.30,0,'线上:工作   线下:休息'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.25,0.06,0,STRCAT('今日阻力=:',CON2STR(今日阻力,2))),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.25,0.12,0,STRCAT('今日支撑=:',CON2STR(今日支撑,2))),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.25,0.18,0,STRCAT('明日突破=:',CON2STR(明日突破,2))),COLORFF00FF;
DRAWTEXT_FIX(ISLASTBAR,0.25,0.24,0,STRCAT('明日阻力=:',CON2STR(明日阻力,2))),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR,0.25,0.30,0,STRCAT('明日支撑=:',CON2STR(明日支撑,2))),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.25,0.36,0,STRCAT('明日反转=:',CON2STR(明日反转,2))),COLORYELLOW;
文字3:=IF(ISLASTBAR AND SZ3,'股价偏离注意调整',IF(ISLASTBAR AND SZ2,'上升通道走势良好',IF(ISLASTBAR AND SZ1,'调整结束短线介入','')));
文字4:=IF(ISLASTBAR AND XD1,'下跌通道只宜观望',IF(ISLASTBAR AND SZ6,'通道改变坚决离场',IF(ISLASTBAR AND SZ5,'转向特征注意离场',IF(ISLASTBAR AND SZ4,'上升通道调整洗盘',''))));
DRAWTEXT_FIX(ISLASTBAR,0.4,0.06,0,文字3),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.4,0.06,0,文字4),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND XD2,0.4,0.06,0,'短期底部准备进入'),COLORYELLOW;

看股吧公 式 ww w.kanguba.com

其它股票公式列表
看股吧查股导航:个股行情分析查询 股票DDX指标查询 走势点评 股票公告查询 大事提醒 股权质押查询 股票分红查询 解禁查询 高管持股 高管查询
香江控股 600162+2.20% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
东宝生物 300239+2.19% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
皇庭国际 000056+2.19% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
海亮股份 002203+2.18% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
洛阳钼业 603993+2.17% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
四川长虹 600839+2.17% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
爱康科技 002610+2.17% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
红塔证券 601236+2.16% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
光大证券 601788+2.15% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
洲际油气 600759+2.15% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
看股网力求但不保证数据的完全准确,不对因网站全部内容或部分内容而引致的盈亏承担任何责任,本站所有内容仅供参考。
本站不提供任何股票服务,站内广告不代表看股吧的观点,由此引起的一切法律责任均与本站无关,请股民自行识别判断,谨慎投资,预防上当受骗!
联系我们:nlfen9@hotmail.com
手机版(手机访问当前页面) | 手机APP下载 | 电脑端(适合电脑或大屏用户) | 备案号:沪ICP备2024045114号-121