If you like the script and if it helped you to get some money ;) some donations are welcomed:
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.
So, the buy signal should be at the D candle for bearish trends and sell at D candle for bullish?
I've just discovered DeMark's materials and it's a bit confusing at first.
What does the different colors in your script means? Ex: lime-greenish, dark red candles etc