飞狐理想趋势主图指标
源码
理想: EMA(CLOSE,8),linethick2,colorred;
论坛: EMA(CLOSE,21);
STICKLINE(理想>论坛,论坛,理想,0.1,0);
STICKLINE(理想<论坛,理想,论坛,0.1,0);
趋势线: EMA(论坛,21),linethick2 , colorffff00;
DRAWTEXT(CROSS(理想,论坛)AND(理想*1.1<趋势线),理想,'买'),COLORRED;
Var2:=(REF(HIGH,1)+REF(LOW,1))/2;
Var5:=MA(CLOSE,28)+2*STD(CLOSE,28);
Var6:=(LOW+HIGH+CLOSE)/3;
Var7:=SUM(MAX(0,HIGH-REF(Var6,1)),28)/SUM(MAX(0,REF(Var6,1)-LOW),28)*100;
Var8:=REF(MA(Var7,3),2.2);
Var9:=CROSS(Var8,Var7) AND Var7>180;
Var10:=SMA(MAX(CLOSE-(REF(CLOSE,1)),0),8,1)/SMA(ABS(CLOSE-(REF(CLOSE,1))),8,1)*100;
Vat11:=SMA(MAX(CLOSE-(REF(CLOSE,1)),0),6,1)/SMA(ABS(CLOSE-(REF(CLOSE,1))),6,1)*100;
DRAWicon(FILTER(REF(Var10,1)>80 AND Var10<REF(Var10,1)or(CROSS(80,Vat11)or CROSS(Var2,Var5)or Var9)and o/c>1.008,5) and o/c>1.008 ,HIGH*1.03 ,2);
Var12:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
Var13:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
Var14:=LLV(LOW,3)=LLV(LOW,120) AND CLOSE/REF(CLOSE,1)>=1.06;
DRAWICON( Var12 AND Var13 AND Var14,LOW*0.99,0);
Var15:=(CLOSE-LLV(1.02*LOW,633))/(HHV(1.02*HIGH,633)-LLV(LOW,633))*120;
Var16:=CROSS(Var15,0);
DRAWtext(Var16 AND (OPEN>REF(HIGH,1)OR LOW/REF(LOW,1)<0.96) ,LOW,'★'),coloryellow;{61.6}