Close positions if candle closes below the low of the day
-
HI, I run into trouble getting this working. It's simple really.

First is:
If there's buy position open
Second is condition:
If the candle closes (On body close no wick included) bellow the current painting daily candle (meaning it has the low and the high)
Third:
Positions are closed.Surely, this does not work. I think the condition is the problem but idk why. And i don't have any more idea how i could i get the low of the day or the high of the day.
-
Can you please show an image in which condition 2 can happen? I guess a M15 bar can never close below the current daily bar.
-
Come to think of it its true. I should do something like this:
Once i take trade a current high or low of the day is taken as a variable. And then if the 15min candle closes above that variable trade would close.
God thing i got the logic right, but i have no idea how to take variable or make this work. -
I would understand it if you mean yesterday's high/low. Then it is possible that an M15 bar today crosses it up or down. That would make sense, but not on today's daily bar. If that is whay you are asking for, I can give you a hand, but I need you to be sure before that.
