飛狐軍師與將軍挑戰(zhàn)長線指標(biāo)公式
- 指標(biāo)類別: 飛狐指標(biāo)公式
- 授權(quán)方式: 免費版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)分類: 趨勢
- 畫線方法: 主圖
- 日期:2018-10-14 來源:互聯(lián)網(wǎng)
飛狐軍師與將軍挑戰(zhàn)長線指標(biāo)公式:含有未來函數(shù)
	a1:=cost(95);
	 a2:=cost(85);
	 a3:=cost(75);
	 a4:=cost(65);
	 a5:=cost(55);
	 a6:=cost(45);
	 a7:=cost(35);
	 a8:=cost(25);
	 a9:=cost(15);
	 a10:=cost(10);
	 a11:=cost(8);
	 a12:=cost(6);
	 a13:=cost(4);
	 a14:=cost(2);
	x:=70;
	y:=1;
	b1:ma(a1,x),colorgray;
	 b2:ma(a2,x),colorgray;
	 b3:ma(a3,x),colorgray;
	 b4:ma(a4,x),colorgray;
	 b5:ma(a5,x),colorgray;
	 b6:ma(a6,x),colorgray;
	 b7:ma(a7,x),colorgray;
	 b8:ma(a8,x),colorgray;
	 b9:ma(a9,x),colorgray;
	 b10:ma(a10,x),colorgray;
	 b11:ma(a11,x),colorgray;
	 b12:ma(a12,x),colorgray;
	 b13:ma(a13,x),colorgray;
	 b14:ma(a14,x),colorgray;
	 dis1:=a1-a14;
	 dis2:=a2-a13;
	 dis3:=a3-a12;
	 dis4:=a4-a11;
	 dis5:=a5-a10;
	 dis6:=a6-a9;
	 dis0:=(a1+a2+a3+a4+a5+a6)/6;
	 dis00:ma(dis0,49),linethick3,colorblue;
	 向下:=if(dis00<ref(dis00,Y),1,0);
	 一直向上:=if(dis00>=ref(dis00,Y) and count(向下,50)<30,1,0);
	 紅色將軍:if(b14>=ref(b14,y)and b13 >= ref(b13,y) and b12 >= ref(b12,y) and b11 >= ref(b11,y) and b10 >= ref(b10,y) and 一直向上,1,0),colorred,linethick0;
	 stickline(紅色將軍,b14,b1,5,0),colorred;
	 hahaha1:if(b1>=ref(b1,y),1,0),linethick0;
	 stickline(hahaha1,b1,b3,5,0),ColorC0A6D1;
	 黃色軍師:if(b1<ref(b1,Y) and b14>=ref(b14,Y) and b13>ref(b13,Y) and b12>ref(b12,Y) and b11>ref(b11,Y)and count(紅色將軍,70)<20 and count(紅色將軍,210)<40 and(c/hhv(c,500)<0.65 or c/hhv(c,1000)<0.65 or c/hhv(c,1500)<0.65 or c/hhv(c,2000)<0.65),1,0),coloryellow,linethick0;
	 stickline(黃色軍師,b6,b11,4,0),coloryellow;
	 軍師在此:=if(黃色軍師 and count(黃色軍師,50)<=1,1,0),coloryellow,linethick0;
	 drawtext(軍師在此,a14,'>>軍師在此<<'),coloryellow;
	 dis000:ma(dis0,49),linethick5,colorblue;
	 abc:=ema(c,15),colorred,linethick1;
	 stickline(c<abc,h,l,0.4,2),COLORgreen;
	 stickline(c<abc,o,c,8,2),COLORgreen;
	 stickline(c>abc,h,l,0.4,0),colorred;
	 stickline(c>abc,o,c,8,0),colorred;
飛狐軍師與將軍挑戰(zhàn)長線指標(biāo)公式實例圖解:
	 
 
飛狐軍師與將軍挑戰(zhàn)長線指標(biāo)公式



