I need the EA code for morning star and the evening star?

As per the above query

Morning Star 

TREND(CLOSE,4)=DOWN AND
REF(OPEN,3)>REF(CLOSE,3) AND
REF(OPEN,2)>REF(CLOSE,2) AND
REF(CLOSE,1)>REF(OPEN,1) AND
REF(CLOSE,3)>REF(OPEN,2) AND
REF(OPEN,1)>REF(OPEN,2)


Evening Star 

TREND(CLOSE,4)=UP AND
REF(OPEN,3)<REF(CLOSE,3) AND
REF(OPEN,2)<REF(CLOSE,2) AND
REF(CLOSE,1)<REF(OPEN,1) AND
REF(CLOSE,3)<REF(OPEN,2) AND
REF(OPEN,1)<REF(OPEN,2)


1 Like

Can you explain this code?