Comment entrer/sortir d'une position à la clôture d'une barre ?
2 réponses
G
Il y a 4 semaines #289986
How to Enter/Exit Positions on Bar Close? In builder and algowizard. thanks

tomas262
il y a 3 semaines #289989
Bonjour,
this is not possible to do. A simple workaround would be to make a multi-timeframe setup. Lets say you get a signal from H1 and run it on M1 timeframe.
Setup your condition with using BarMinute[1] == 59… that is the closest you can enter because at :00 it will be a new bar (open)
G
il y a 3 semaines #289996
@tomas262 thanks for that. However, I cant get it to work still. Say, my main chart is the Daily Close and I want to enter as close to the Daily close as possible in my backtests. How can i go about this? I m not able to get the BarMinute, BarHour implementation done properly it seems cos i come up with 0 trades
Affichage de 2 réponses de 1 à 2 (sur un total de 2)