Multiple conditions don´t work correct
-
Hey, I created some strategies but noticed that when I use multiple conditions like for example:
Candle < SMA 200
Macd Main x>Signal LineIn a Backtest positions open even when the first condition isn´t true.
Connection is just basic with the orange line so nothing special.
Anyone else noticed that an can help me?
-
Can you please share the link to the project?
-
Sure
shared/jVAyO7xpb
-
The problem is that your blocks are working on candle ID 0 and the 'once per bar' block is not on top of the structure. That means you will see the 'final' result on the backtest. If you stop the backtest immediately before the conditions should be true and then take a look at it at a very slow speed, you will see conditions are met as per your settings. However, because the price changed its direction, then conditions are not met later and you only see a 'wrong' result. It was not wrong when market conditions were correct. The problem is only see the final result.
-
Ok thank you.
So I have to replace the “once per bar” and have to give the candle id a number? -
tried it, but didn´t workout as it should....
It opens positions far below the SMA 200 in a way I think it shouldn´t even be possible.shared/vjGUKb96e
-
Now the structure is working on closed candles, but obviously you need something in between. Could you please upload a screenshot showing what you exactly need?