ihzx 发表于 2021-8-21 12:52:30

军师与将军挑战长线极限(飞狐)

<p>{军师与将军 0.9测试版 飞狐/通达信<br />
目标:<br />
挑战长线利润极限<br />
使用前提:<br />
要求您必须事先了解长线投资理念<br />
简介:<br />
1、黄格:军师,潜在行情的策划者,喜欢拿一把羽毛扇!<br />
2、红色:将军与他的千军万马,经常踏平一切战场!<br />
3、蓝线:神秘成本线,强弱分水岭。</p>
<p>参数:<br />
x 一般设置为60-120 代表成本均线的平滑度<br />
y 1 默认不要变</p>
<p>用法:<br />
找军师,设埋伏:X设置小一些(60左右),黄块儿呈扁平状效果最佳!<br />
找将军,踏平股市:X可以稍微大一些(60-120左右),红色就是持股的象征!<br />
}</p>
<p>a1:=cost(95);<br />
a2:=cost(85);<br />
a3:=cost(75);<br />
a4:=cost(65);<br />
a5:=cost(55);<br />
a6:=cost(45);<br />
a7:=cost(35);<br />
a8:=cost(25);<br />
a9:=cost(15);<br />
a10:=cost(10);<br />
a11:=cost(8);<br />
a12:=cost(6);<br />
a13:=cost(4);<br />
a14:=cost(2);</p>
<p>b1:ma(a1,x),colorgray;<br />
b2:ma(a2,x),colorgray;<br />
b3:ma(a3,x),colorgray;<br />
b4:ma(a4,x),colorgray;<br />
b5:ma(a5,x),colorgray;<br />
b6:ma(a6,x),colorgray;<br />
b7:ma(a7,x),colorgray;<br />
b8:ma(a8,x),colorgray;<br />
b9:ma(a9,x),colorgray;<br />
b10:ma(a10,x),colorgray;<br />
b11:ma(a11,x),colorgray;<br />
b12:ma(a12,x),colorgray;<br />
b13:ma(a13,x),colorgray;<br />
b14:ma(a14,x),colorgray;<br />
dis1:=a1-a14;<br />
dis2:=a2-a13;<br />
dis3:=a3-a12;<br />
dis4:=a4-a11;<br />
dis5:=a5-a10;<br />
dis6:=a6-a9;<br />
dis0:=(a1+a2+a3+a4+a5+a6)/6;<br />
dis00:ma(dis0,49),linethick3,colorblue;<br />
向下:=if(dis00&lt;ref(dis00,Y),1,0);<br />
一直向上:=if(dis00&gt;=ref(dis00,Y) and count(向下,50)&lt;30,1,0);<br />
红色将军:if(b14&gt;=ref(b14,y)and b13 &gt;= ref(b13,y) and b12 &gt;= ref(b12,y) and b11 &gt;= ref(b11,y) and b10 &gt;= ref(b10,y) and 一直向上,1,0),colorred,linethick0;<br />
stickline(红色将军,b14,b1,5,0),colorred;<br />
hahaha1:if(b1&gt;=ref(b1,y),1,0),linethick0;<br />
stickline(hahaha1,b1,b3,5,0),ColorC0A6D1;<br />
黄色军师:if(b1&lt;ref(b1,Y) and b14&gt;=ref(b14,Y) and b13&gt;ref(b13,Y) and b12&gt;ref(b12,Y) and b11&gt;ref(b11,Y)and count(红色将军,70)&lt;20 and count(红色将军,210)&lt;40 and(c/hhv(c,500)&lt;0.65 or c/hhv(c,1000)&lt;0.65 or c/hhv(c,1500)&lt;0.65 or c/hhv(c,2000)&lt;0.65),1,0),coloryellow,linethick0;<br />
stickline(黄色军师,b6,b11,4,0),coloryellow;<br />
军师在此:=if(黄色军师 and count(黄色军师,50)&lt;=1,1,0),coloryellow,linethick0;<br />
drawtext(军师在此,a14,'&gt;&gt;军师在此&lt;&lt;'),coloryellow;<br />
dis000:ma(dis0,49),linethick5,colorblue;<br />
abc:=ema(c,15),colorred,linethick1;<br />
stickline(c&lt;abc,h,l,0.4,2),COLORgreen;<br />
stickline(c&lt;abc,o,c,8,2),COLORgreen;<br />
stickline(c&gt;abc,h,l,0.4,0),colorred;<br />
stickline(c&gt;abc,o,c,8,0),colorred;</p>
<p><br />
<br />
&nbsp;</p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 军师与将军挑战长线极限(飞狐)