N:=9;{股票公式-股票指标www.gs6699.com}
趋势开始:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
股票指标公式:=(CLOSE>OPEN,趋势开始*(HIGH-LOW),IF(CLOSE<OPEN,趋势开始*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2))*0.70828;
通达信:=(CLOSE>OPEN,0-趋势开始*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE< OPEN,0-趋势开始*(HIGH-LOW),0-VOL/2))*0.63275;
ggee6:=(股票指标公式+通达信);
ggee7:=IF((DATE > 17374085120),0,1);
AVPRICE:=((CLOSE + OPEN + LOW + HIGH)/(4))*(ggee7);
ggee1:=(ggee6)*(AVPRICE);
A:=(SUM(ggee1,N) + 0.001)/(SUM(ggee6,N) + 0.001);
ggee2:=(((AVPRICE - A))/(MAX(AVPRICE,A)))*(ggee7);
STICKLINE((ggee2 > 0),0,ggee2,3,0),COLORRED;
STICKLINE((ggee2 < 0),0,ggee2,3,0),COLORFF0000;
ggee3:(CLOSE-MA(A,55))/MA(A,55)*100,COLORYELLOW,STICK,LINETHICK3;
IF(ggee3<=0,ggee3,0),COLORWHITE,STICK,LINETHICK3;
ggee5:(CLOSE-MA(A,34))/MA(A,34)*100,COLORFF00FF,STICK,LINETHICK3;
IF(ggee5<=0,ggee5,0),COLORFFFF33,STICK,LINETHICK3;
ggee4:(CLOSE-MA(A,13))/MA(A,13)*100,COLORRED,STICK,LINETHICK3;
IF(ggee4<=0,ggee4,0),COLORBLUE,STICK,LINETHICK3;
BBSS2:=REF(HIGH,1)*1.1;
BBSS3:=HIGH*1.1;
BBSS4:=(BBSS3*VOL+BBSS2*(CAPITAL-VOL))/CAPITAL;
BBSS5:=REF(LOW,1)*0.9;
BBSS6:=LOW*0.9;
BBSS7:=(BBSS6*VOL+BBSS5*(CAPITAL-VOL))/CAPITAL;
BBSS8:=EMA(BBSS7,30);
BBSS9:=EMA(BBSS4,30);
趋势开始0:=BBSS9-2;
趋势开始1:=IF(CLOSE<=BBSS8,趋势开始0,BBSS9);
趋势开始2:=趋势开始1*2.5;
趋势开始3:=趋势开始0*2.5;
STICKLINE(趋势开始2=趋势开始3,ggee5,0,4,1),COLOR66FF99;
wewe1:MA(ggee4,20)+1.618*STD(ggee3,20),COLOR0099FF,LINETHICK2;
wewe2:MA(ggee4,20)-1.618*STD(ggee3,20),COLOR0099FF,LINETHICK2;
wewe3:ggee4,COLOR00FF00;