
X_1:=2500;
X_2:=25;
X_3:=REF(LOW,1);
X_4:=REF(LLV(LOW,X_1),X_2);
X_5:=SMA(ABS(LOW-X_3),3,1)/SMA(MAX(LOW-X_3,0),3,1)*100;
X_6:=EMA(IF(CLOSE*1.2,X_5*10,X_5/10),3);
X_7:=LLV(LOW,300);
X_8:=HHV(X_6,300);
X_9:=IF(LLV(LOW,90),1,0);
X_10:=EMA(IF(LOW<=X_7,(X_6+X_8*2)/2,0),3)/618*X_9;
X_11:=ZIG(3,5);
X_12:=REFDATE(X_4,DATE);
X_13:=X_12=LOW AND (CLOSE-LOW>0-CLOSE OR OPEN-LOW>CLOSE-OPEN);
X_14:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
X_15:=ZIG(3,10);
X_16:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
X_17:=BARSLAST(X_15<REF(X_15,1));
X_18:=IF(X_15>REF(X_15,1),COUNT(X_14,X_17),0);
XG:X_10 AND X_13 AND (X_16 AND X_18=1);