Here is my first message on the Node-Red forum.
I would like to improve my flow. I have one switch called "Buy or Sell" that push a trade into two differents functions called"Buy" and the other called "Sell". You can see the image attached.
My issue is the following, I would like that as long as the trade goes to the same function, no action done by the flow. If the trade goes into the other function, activate the flow.
In practice, I can explain it that way: A first "buy" trade enters into the function "Buy", so as long as my information entering into the flows is a "buy" no action will be made. If suddenly, one "sell" trade is coming the flow get activated, and will be locked until a "buy" trade appear.
Thank you very much for your support.