Moreover p-Signal v2.2 allows to catch "winning" combinations with help of alerts. When alert is active, you'll receive a notification if combination exists after bar was closed. There are two combinations in this version: “High” and “Straight”. The “Straight” combination is less frequent, but stronger than "High" .
It is Important ! For correct operation T should not exceed the values of hourly time frames! Otherwise use P-Signal v1.2 !
More information about this can be found on my website https:\\p-signal.com.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.