input:x(50,1,111);
input:y(1,1,111);
控盘筹码:if((0.1-winner(c/1.1))*100<0,(0.1-winner(c/1.1))*200,0),coloryellow,linethick0,colorblue;
stickline(控盘筹码<0,0,控盘筹码,1,0),colorblue;
-120,colorgray;
乖离率:(c-ma(c,250))/ma(c,250)*100;
n1:=barslast(cross(c,MA(c,250)));
n2:=barslast(cross(MA(c,250),c));
长期趋势:if(n1
n3:=barslast(cross(c,MA(c,20)));
n4:=barslast(cross(MA(c,20),c));
{落井下石}
醍醐灌顶:=if(c/llv(c,500)>8 or c/llv(c,1000)>20.5 and c>ema(c,60) and c>ema(c,437),1,0),colorgreen,linethick0;
stickline(醍醐灌顶,长涨幅,长涨幅*0.93,5,0),colorwhite;
醍醐灌顶1:=if(c/llv(c,1900)>20.5 or c/llv(c,1000)>20.5 and c>ema(c,60) and c>ema(c,437),1,0),colorgreen,linethick0;
stickline(醍醐灌顶1,长涨幅,长涨幅*0.94,3,0),colorred;
////////////////
买入区域:if((乖离率<-26 and ema(c,37)
stickline(买入区域,-乖离率*乖离率/7,0,3,0),coloryellow;
stickline(乖离率<-35,-乖离率*乖离率/7,0,3,0),colorred;
0,colorblue,linethick1;
股龄:(BARSCOUNT(close)),colorwhite,linethick0;
买入求和:if(股龄<300,sum(买入区域,70),sum(买入区域,233)),colorgreen,linethick0;
{军师}
{成本}
a1:=cost(95);
a2:=cost(85);
a3:=cost(75);
a4:=cost(65);
a5:=cost(55);
a6:=cost(45);
a9:=cost(15);
a10:=cost(10);
a11:=cost(8);
a12:=cost(6);
a13:=cost(4);
a14:=cost(2);
b1:=ma(a1,x);
b2:=ma(a2,x);
b3:=ma(a3,x);
b4:=ma(a4,x);
b5:=ma(a5,x);
b6:=ma(a6,x);
b9:=ma(a9,x);
b10:=ma(a10,x);
b11:=ma(a11,x);
b12:=ma(a12,x);
b13:=ma(a13,x);
b14:=ma(a14,x);
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
一直向上:=if(count(向下,60)<30,1,0);
{ Gupang.com 股-旁-网_飞狐股票指标公式}
红色将军:=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);
绿色军师:=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)<35,1,0);
副军师在此:=if(绿色军师 and count(绿色军师,50)<=1,1,0);
黄色军师:=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)<35 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);
军师在此:=if(黄色军师 and count(黄色军师,50)<=1,1,0);
副军师统计:=count(绿色军师,160);
副军师统计:if(副军师统计>0 and 绿色军师=1,副军师统计,0),colorgray,linethick0;
军师统计:=count(黄色军师,160);
军师统计:if(军师统计>0 and 黄色军师=1,军师统计,0),colorgray,linethick0;
partline(军师统计>0 or 副军师统计>0,副军师统计*2),colorred,linethick2;
{峰回路转}
DRAWTEXT(ISLASTBAR,1.3,'胜算:83%;'),colorFF00FF;
CHECK1:=CHECKUSER(1);
VAR2:=REF(CLOSE,1);
VAR3:=(SMA(MAX(CLOSE-VAR2,0),6,1))/(SMA(Abs(CLOSE-VAR2),6,1))*100;
VAR4:=(SMA(MAX(CLOSE-VAR2,0),12,1))/(SMA(ABS(CLOSE-VAR2),12,1))*100;
VAR5:=(BARSLAST(VAR4<20))<=3 AND CROSS(VAR3,VAR4);
VAR6:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100<-12.5;
VAR7:=LLV(LOW,5);
VAR8:=HHV(HIGH,5);
VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*100,4);
VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);
VARB:=REF(CLOSE,1);
VARC:=(SMA(MAX(CLOSE-VARB,0),7,1))/(SMA(ABS(CLOSE-VARB),7,1))*100;
VARD:=(SMA(MAX(CLOSE-VARB,0),13,1))/(SMA(ABS(CLOSE-VARB),13,1))*100;
VARE:=(BARSLAST(VARD<20))<=3 AND CROSS(VARC,VARD);
VARF:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100<-12.5;
VAR10:=LLV(LOW,5);
VAR11:=HHV(HIGH,5);
VAR12:=EMA((CLOSE-VAR10)/(VAR11-VAR10)*100,4);
VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);
VAR14:=1;
VAR15:=REF(CLOSE,1);
VAR16:=(SMA(MAX(CLOSE-VAR15,0),7,1))/(SMA(ABS(CLOSE-VAR15),7,1))*100;
VAR17:=(SMA(MAX(CLOSE-VAR15,0),13,1))/(SMA(ABS(CLOSE-VAR15),13,1))*100;
VAR18:=(BARSLAST(VAR17<20))<=3 AND CROSS(VAR16,VAR17);
VAR19:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100<-12.5;
VAR1A:=LLV(LOW,5);
VAR1B:=HHV(HIGH,5);
VAR1C:=EMA((CLOSE-VAR1A)/(VAR1B-VAR1A)*100,4);
VAR1D:=EMA(0.667*REF(VAR1C,1)+0.333*VAR1C,2);
VAR1E:=REF(CLOSE,1);
VAR1F:=(SMA(MAX(CLOSE-VAR1E,0),6,1))/(SMA(ABS(CLOSE-VAR1E),6,1))*100;
VAR20:=(SMA(MAX(CLOSE-VAR1E,0),12,1))/(SMA(ABS(CLOSE-VAR1E),12,1))*100;
VAR21:=(BARSLAST(VAR20<20))<=3 AND CROSS(VAR1F,VAR20);
VAR22:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100<-12.5;
VAR23:=LLV(LOW,5);
VAR24:=HHV(HIGH,5);
VAR25:=EMA((CLOSE-VAR23)/(VAR24-VAR23)*100,4);
VAR26:=EMA(0.667*REF(VAR25,1)+0.333*VAR25,2);
VAR27:=REF(CLOSE,1);
VAR28:=(SMA(MAX(CLOSE-VAR27,0),7,1))/(SMA(ABS(CLOSE-VAR27),7,1))*100;
VAR29:=(SMA(MAX(CLOSE-VAR27,0),13,1))/(SMA(ABS(CLOSE-VAR27),13,1))*100;
VAR2A:=(BARSLAST(VAR29<20))<=3 AND CROSS(VAR28,VAR29);
VAR2B:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100<-12.5;
VAR2C:=LLV(LOW,5);
VAR2D:=HHV(HIGH,5);
VAR2E:=EMA((CLOSE-VAR2C)/(VAR2D-VAR2C)*100,4);
VAR2F:=EMA(0.667*REF(VAR2E,1)+0.333*VAR2E,2);
VAR30:=DMA(EMA(CLOSE,12),SUM(vol,5)/3/CAPITAL);
VAR31:=(CLOSE-VAR30)/VAR30*100;
柳暗花明:VAR2A AND VAR2B AND CROSS(VAR2E,VAR2F) AND VAR2E<=25 OR VAR21 AND VAR22 AND CROSS(VAR25,VAR26) AND VAR25<=25 OR VAR18 AND VAR19 AND CROSS(VAR1C,VAR1D) AND VAR1C<=25 OR VARE AND VARF AND CROSS(VAR12,VAR13) AND VAR12<=25 OR VAR5 AND VAR6 AND CROSS(VAR9,VARA) AND VAR9<=25 OR REF(VAR31,1)<-35 AND VAR31>REF(VAR31,1) AND REF(VAR31,1)2.5,linethick0,colorFF;
DRAWICON(柳暗花明,-280,3);
stickline(柳暗花明,200,0,6,0),colorgray;