So add MTF function and alert for the buy and sell (in the MTF shift set to 0 , if repaint then set shift to 1) the blue line is linear regression trend
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 publications is governed by House rules. 您可以收藏它以在圖表上使用。