短线买卖(主图)源码:
var0:=if(date<=1901120,1,0);
drawgbk(close>0,colorrgb(180,180,180),colorrgb(1,1,1),1);
上市日期年:ref(year,barscount(close)-1),linethick0,colorff;
月:ref(month,barscount(close)-1),linethick0,colorff00ff;
日:ref(day,barscount(close)-1),linethick0,colorffff;
drawtext(sysparam(2)=barpos,close,'证券代码:'+stklabel),align4,colorff;
drawtext(barpos=sysparam(2),high,' 所属板块:'+blkname+'发行价'+numtostr(finance(51),2)+'元'+'发行量'+numtostr(finance(52),2)+'万股'+'\n'+'总股本'+numtostr(finance(1),0)+'万股'+'流通a股'+numtostr(finance(7),0)+'万股'+'净资产'+numtostr(finance(35),2)+'亿元'+'每股收益'+numtostr(finance(33),2)+'元'+'每股未分配'+numtostr(finance(32),2)+'元'+'市盈率'+numtostr(dynainfo(39),2)+'%'+'投资收益'+numtostr(finance(24),2)+'元'+'股东总数'+numtostr(finance(50),0)+'户'),align4,color222222;
急速超跌:=(close-ma(close,34))/ma(close,34)*100<-14;
var1:=(close>ref(close,1) and close>ref(close,2))*var0;
var2:=(ref(var1,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
var3:=(ref(var2,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
var4:=(ref(var3,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
var5:=(ref(var4,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
var6:=(ref(var5,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
var7:=(ref(var6,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
var8:=(ref(var7,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
var9:=(ref(var8,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
vara:=(ref(var9,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
varb:=(ref(vara,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
varc:=(ref(varb,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
红色持股:stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),7,0),coloraa;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),6,0),colorbb;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),5,0),colorcc;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),4,0),colordd;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),3,0),coloree;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),2,0),colorff;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),1,0),colorff;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,close,ref(close,1),0,0),colorff;
stickline(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,low,high,0.1,0),colorff;
vard:=(close<ref(close,1) and close<ref(close,2))*var0;
vare:=(ref(vard,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
varf:=(ref(vare,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
var10:=(ref(varf,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
var11:=(ref(var10,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
var12:=(ref(var11,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
var13:=(ref(var12,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
var14:=(ref(var13,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
var15:=(ref(var14,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
var16:=(ref(var15,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
var17:=(ref(var16,1) and close<=ref(close,1) and close>=ref(close,2))*var0;
var18:=(ref(var17,1) and close>=ref(close,1) and close<=ref(close,2))*var0;
青色观望:stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),7,0),coloraaaa00;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),6,0),colorbbbb00;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),5,0),colorcccc00;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),4,0),colordddd00;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),3,0),coloreeee00;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),2,0),colorffff00;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),1,0),colorffff00;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,close,ref(close,1),0,0),colorffff00;
stickline(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,low,high,0.1,0),colorffff00;
var19:=((ref(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,1)) and var1)*var0;
黄色短买:stickline(var19,ref(close,1),ref(close,2),7,0),color33aacc;
stickline(var19,ref(close,1),ref(close,2),6,0),color33bbcc;
stickline(var19,ref(close,1),ref(close,2),5,0),color33cccc;
stickline(var19,ref(close,1),ref(close,2),4,0),color33ddcc;
stickline(var19,ref(close,1),ref(close,2),3,0),color33eecc;
stickline(var19,ref(close,1),ref(close,2),2,0),color33ffcc;
stickline(var19,ref(close,1),ref(close,2),1,0),color33ffcc;
drawtext(var19,ref(close,1),'←短买'),color33ffcc;
var1a:=((ref(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,1)) and vard)*var0;
品红离场:stickline(var1a,ref(close,1),ref(close,2),7,0),colorff33ff;
stickline(var1a,ref(close,1),ref(close,2),6,0),colorff44ff;
stickline(var1a,ref(close,1),ref(close,2),5,0),colorff55ff;
stickline(var1a,ref(close,1),ref(close,2),4,0),colorff66ff;
stickline(var1a,ref(close,1),ref(close,2),3,0),colorff77ff;
stickline(var1a,ref(close,1),ref(close,2),2,0),colorff88ff;
stickline(var1a,ref(close,1),ref(close,2),1,0),colorff99ff;
drawtext(var1a,ref(close,1)+0.1,'←离场'),colorff99ff;
ma3:=ma(close,3);
ytsl:=(3*close+low+open+high)/6;
辰星线:(20*ytsl+19*ref(ytsl,1)+18*ref(ytsl,2)+17*ref(ytsl,3)+16*ref(ytsl,4)+15*ref(ytsl,5)+14*ref(ytsl,6)+13*ref(ytsl,7)+12*ref(ytsl,8)+11*ref(ytsl,9)+10*ref(ytsl,10)+9*ref(ytsl,11)+8*ref(ytsl,12)+7*ref(ytsl,13)+6*ref(ytsl,14)+5*ref(ytsl,15)+4*ref(ytsl,16)+3*ref(ytsl,17)+2*ref(ytsl,18)+ref(ytsl,20))/211*var0,colorff;
牵牛线:ma(close,26)*var0,colorff00ff;
等待:=if(ma3>辰星线,辰星线,ma3);
partline(等待>ref(等待,1),等待),linethick2,colorff;
partline(辰星线>ref(辰星线,1),辰星线),linethick2,colorff;
partline(辰星线<ref(辰星线,1),辰星线),colorff00;
partline(牵牛线>ref(牵牛线,1),牵牛线),linethick2,colorff00ff;
partline(牵牛线<ref(牵牛线,1),牵牛线),color669933;
aa:=forcast(close,21);
bb:=forcast(close,111);
中轨:=ma(close,26)*var0;
上轨:=中轨+std(close,20)*var0;
下轨:=中轨-std(close,20)*var0;
上极限:(中轨+2*std(close,20))*var0,colorffff;
下极限:(中轨-2*std(close,20))*var0,colorffff00;
cj1:=cross(aa,bb)*var0;
d2:=ema(辰星线,2);
d3:=ema(d2,2);
k1:=ema(d3,2);
k2:=ema(k1,2);
k3:=ema(k2,2);
hzd:=ma(辰星线,3);
cj2:=cross(辰星线,k3);
ytyh1:=(close-llv(low,60))/(hhv(high,60)-llv(low,60))*100;
ytyh2:=sma(ytyh1,3,1);
ytyh3:=sma(ytyh2,9,1);
ytyh4:=cross(ytyh3,ytyh2);
ytyh5:=ytyh3>80 or ytyh2>80;
ytyh6:=ytyh4 and ytyh5;
ytyh7:=ema(amount/vol/100,3);
ytyh8:=ema(ytyh7,89);
ytyh9:=ema(ytyh7,89)*0.8;
vra:=ytyh9*0.8;
vrb:=low<vra and close>ref(close,1)*1.02;
短买:if(var19,1,0),linethick0,coloryellow;
离场:if(var1a,1,0),linethick0,colorff33ff;
上一指标公式:macd短线公式详解 飞狐macd
下一指标公式:趋势转折.ALG公式详解 飞狐趋势ALG
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文短线买卖主图公式详解 飞狐买卖仅供学习研究。