|
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); AA:=REF(MACD,1)<MACD AND MACD>0; TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),13); HD :=HIGH-REF(HIGH,1); LD :=REF(LOW,1)-LOW; DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),13); DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),13); PDI:= DMP*100/TR; MDI:= DMM*100/TR; ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,5); ADXR:=EXPMEMA(ADX,5); BB:=ADX>30 AND ADX<60 AND ADX>ADXR AND MDI>N; MAVOL21:=MA(VOL,21); MAVOL55:=MA(VOL,55); CC:=MAVOL21>MAVOL55; JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3)); DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01); JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01))); CYC5:=IF(JJJT,0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5),EMA((HIGH+LOW+CLOSE)/3,5)); CYC13:=IF(JJJT,0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13),EMA((HIGH+LOW+CLOSE)/3,13)); CYC34:=IF(JJJT,0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34),EMA((HIGH+LOW+CLOSE)/3,34)); CYC∞:=IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120)); DD:=CYC13>CYC34 AND CYC34>CYC∞; EE:=VOL/CAPITAL*100>HS AND VOL/CAPITAL*100<15; AA AND BB AND CC AND DD AND EE; |
|