波峰波谷
Var2=MA(CLOSE, 10); Var4=MA(CLOSE, 30); Var6=(Var6-REF(Var6, 15))/REF(Var6,15)*100; Var8=EMA(Var7, 8); 反转STICKLINE(Var7>1*REF(Var7, 1), h,l,0.5,0), COLORRED; STICKLINE(Var7>1*REF(Var7, 1), o,c,5,1), COLORRED; 持币STICKLINE(Var7<1*REF(Var7, 1) AND Var9>1*REF(Var9, 1),h,l,0.5,0 ), COLORF00FF0; STICKLINE(Var7<1*REF(Var7, 1) AND Var9>1*REF(Var9, 1), o,c,5,1), COLORF00FF0; 平均价= EMA(平均价,13) - EMA(平均价,34); 移动均价=(均价差-移动均价)*5; A=forcast(forcast(A,31),10);
涨↑if(A<分水岭,A,分水岭),LINETHICK1,Color00FF00; {分=ma(c,6); ma18=ma(c,55); ma125=ma(c,250); TY=REF(TY,10)=HHV(TY,2*10+1); B1=BACKSET(B1,10+1); HD=REF(TY,10)=LLV(TY,2*10+1); B2=BACKSET(B2,10+1); LD=REF(C,BARSLAST(HD)); B=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ; t21IF(t11,AA,AA),ColorFF00FF,POINTDOT; STICKLINE(t11,AA,AA,9,0),ColorFF00FF;
波谷=((c-ref(ma6,1))/6+ma6)*1.004;
买进条件IF(买进条件,l,h),COLORWHITE,POINTDOT; STICKLINE(买进条件,h,l,0,1),colorwhite,linethick2; STICKLINE(买进条件,o,c,4,1),colorwhite,linethick2;
加码价=cross(c,加码价) and 加码价>ref(加码价,1);
黄加码:IF(加码条件,l,h),coloryellow,POINTDOT; STICKLINE(加码条件,h,l,0,1),coloryellow,linethick2; STICKLINE(加码条件,o,c,4,1),coloryellow,linethick2;