Just had a quick question that I can use some help with.
Tried looking around in the forums and elsewhere and couldn't find exactly what I was looking for.
I want to setup and back-test a strategy where any given futures instrument's price touches a given EMA and a trade is entered at that point.
The first condition is that the trades will be long/buy if current candle is green, and short/sell if red.
In addition, once the trade is entered, there is a given ATM applied to the trade.
Moreover, trades are restricted to specific days of the week AND times of the day.
Also, only one entry and done for the given time-of-day windows (more in point #4 below).
Lastly, trades need to be closed by/before market close (US).
So for example...
1- Instrument = ES
2- EMA = 18 period
3- Days that the trade is to be executed = Tuesdays & Fridays
4- Hours to be traded
= 1 hour into the US open (9:30 am to 10:30 am EST)
= Last half hour of US close (3:30 pm to 4:30 pm EST)
= 1 hour into London open (3 am to 4 am EST)
****P.S. - only one entry per given time window...even if trade is entered and closed out by the ATM before given time window ends
5- ATM to be applied = ATM_Example_1
6- Chart time frame = 1 hour
So to summarize, if the candle is green and the price touches the 18 period EMA, I want the strategy to enter a long trade and apply the given ATM.
The opposite for red candles (short when price touches the EMA).
Trades are only on the given times of the day and the given days.
Appreciate any help I can hopefully get.
Thank you
Comment