Detecting bar close or bar open before/after current 2MA cross help ?

 

Hello everybody,

Its my first quistion here, im not too much good in this :), but i hope someone can help me coding this.

lest say MA1 crossed MA2 from down to up direction at XXX price . how i can know if for example the next 15minute bar has been opned above the cross price after cross time occured.?

lest say MA1 crossed MA2 from up to down direction at XXX price . how i can know if for example the next 15minute bar has been opned below the cross price after cross time occured.?

also im pleased to get info about about last 10 bars when cross occured like witch one is lowst between them and wich is highest.

Best regards.

irina.

Reason: