How to compare the price of two discontinuous candles? seek help!
-
I want to implement a process to compare the prices of a and B, in order to take some action when condition C passes.
Please help. It may be a very simple question. I'm sorry I didn't succeed.
These three candles don't need to be continuous, just happen in a period of time, such as 4 hours. Because I don't need it to be continuous.

这是我的尝试:
https://fxdreema.com/shared/7ZztT3Tac
Thanks in advance! -
@ghq
Hi, the 2 first branches of your project are correct, not the 3rd one I think.
I prefer to work with double values, like this :
https://fxdreema.com/shared/AY2pjlGRc -
However this way you don't have any time limitation between each event, so if one happened 3 months before another, it will still be taken as a signal.
-
Thank you. The setting of variables here is very interesting. These are very enlightening.
I see what you mean. I'd like to come up with some ideas about the effective period and the cancellation of settings later.
-
@seb-0 oh,But how can I compare the price between A and B? I mean:A price>B price. or B price > A price
-
@ghq
No problem.
You could do it this way then :
https://fxdreema.com/shared/AwD6kncwe