波段操作与朋友聚餐(副图,源码,示例帖图)
2015-2-13 21:26:00点击:
云指标公式网
Var1:=(2*CLOSE+HIGH+LOW)/4;
Var2:=LLV(LOW,34);
Var3:=HHV(HIGH,34);
xx:EMA((Var1-Var2)/(Var3-Var2)*100,13);
yy:EMA(0.667*REF(xx,1)+0.333*xx,2) ;
STICKLINE(CROSS(xx,20) AND yy<xx,xx+19,xx-10,4,0),COLORRED;
DRAWTEXT(CROSS(xx,20) AND yy<xx,xx-5,'开宴');
STICKLINE(yy<xx,xx,yy,4,0),COLORRED;
朋友到来:IF(CROSS(xx,yy) AND xx<20 ,30,0),COLORRED;
朋友离去:IF(FILTER(CROSS(YY,XX) AND xx>80 ,3),60,90),COLORGREEN;
Var2:=LLV(LOW,34);
Var3:=HHV(HIGH,34);
xx:EMA((Var1-Var2)/(Var3-Var2)*100,13);
yy:EMA(0.667*REF(xx,1)+0.333*xx,2) ;
STICKLINE(CROSS(xx,20) AND yy<xx,xx+19,xx-10,4,0),COLORRED;
DRAWTEXT(CROSS(xx,20) AND yy<xx,xx-5,'开宴');
STICKLINE(yy<xx,xx,yy,4,0),COLORRED;
朋友到来:IF(CROSS(xx,yy) AND xx<20 ,30,0),COLORRED;
朋友离去:IF(FILTER(CROSS(YY,XX) AND xx>80 ,3),60,90),COLORGREEN;