Figuring out the previous candle if it is bear/bull in this situation.
-
I have attached my project:
https://fxdreema.com/shared/UB9ciWVUdWhat I want to find out is, if my current candle[1] is bear, I want to store what the next candle will be.
So far I have created a flag so if candle[1] is bear, it goes into a checker to see if the next candle[1] will be bear or bull.However when backtesting, it doesn't work. I think there's somethign wrong with my logic. Can anyone help?
Thanks.
-
Thats a fairly complex project. I think if you share just the relevant section, you'll have more chance of getting feedback.
-
The section is in the "check for breakout" area
-
@yoloyacht Shouldn't the variable in block 1478 be 'supbreakout' instead of 'resbreakout'?
-
@l-andorrà caught that earlier this morning but still didn’t achieve what I wanted.
Any ideas on how to go about it? I’m considering scraping that method
-
@yoloyacht Honestly, I don't see any 'fault' in your logic so probably the strategy is not especially effective.