Morning Star

If(Ref(OPEN-C,-2)>(Mov(Abs(OPEN-C),10,S)),
If(Ref(Abs(C-OPEN),-1)<(Mov(Abs(OPEN-C),10,S))/2,
If(Ref(C,-1)<Ref(C,-2),
If(Ref(OPEN,-1)<Ref(OPEN,-2),
If(C>Ref((OPEN+C)/2,-2),1,0),0),0),0),0)