I need some help with code for exiting EOD, i.e. 1559.
This is a 15 min EMA 9/39 crossover, and I want to add the condition for exiting the position at the end of the day.
Here is the code so far. Can anyone please help with the code for exiting EOD if the averages don't cross? TIA.
CODE:
Please log in to see this code.