If yesterday's close is above EMA I want to enter long at the open and exit on the close of the same day.
From what I gather I need to use intra day data. I have followed the example below:
But the problem I am getting is that the exit price is from the previous bars close rather than the current bars close.
Any suggestions would be much appreciated.
Comment