Apprentice can you code a EA that opens a position at a certain time and a certain weekday and does a mandatory exit after [n]bars?
For instance,
Trading time = 8 to 17 MEZ
TF = M15 & H1
EntryTime = "16:15"
DayOfEntry = Thu or Fri
Mandatory Exit point = [192]bars past Entry
EntrySignal:
if EntryTime and DayOfEntry
and
max(close[1], close[2], close[3], close[4], close[5]) >
min(open[1], open[2], open[3], open[4], open[5])
and
highH1[1] < highH1[3] then Sell
Exit: either Stop or Target have met or the [n]bar-mandatory close triggers
Can you do that? I'd need each trading day of the week to select and just one point of time to put in manualy and an option to enter the number of [n]bars.
Thank you very much!