EMA crossover with First Candle


I am writing a code where the condition is:

EMA(5) and EMA(13) should both cross today's first 5 minute bar and the (bar's) closing price should be above EMA(5) and EMA(13).

Any idea how to achieve this? Please help.

Thanks in advance.


This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.