OPEN-SOURCE SCRIPT
AI Kernel Regression Strategy

How to Use This Strategy
Paste the Code: Open the Pine Editor, paste the code, and click "Add to chart".
Look for Reversals:
BUY Signal: The price dipped below the green band (oversold) and snapped back up. The script identifies this as a high-probability bounce.
SELL Signal: The price spiked above the red band (overbought) and snapped back down.
Adjust the "Lookback Window":
In the settings (gear icon), if you change Lookback Window to a higher number (e.g., 15-20), the lines become smoother (better for trends).
If you lower it (e.g., 3-5), it becomes very reactive (better for scalping).
Important Note on "Repainting"
This script uses a technique called Regression. In live trading, it works perfectly (the signal appears when the candle closes). However, be aware that "AI" scripts like this are heavy on calculations. If you refresh your browser, the historical lines might shift slightly to fit the data better. Always wait for the candle to close before taking the trade to ensure the signal is locked in.
Paste the Code: Open the Pine Editor, paste the code, and click "Add to chart".
Look for Reversals:
BUY Signal: The price dipped below the green band (oversold) and snapped back up. The script identifies this as a high-probability bounce.
SELL Signal: The price spiked above the red band (overbought) and snapped back down.
Adjust the "Lookback Window":
In the settings (gear icon), if you change Lookback Window to a higher number (e.g., 15-20), the lines become smoother (better for trends).
If you lower it (e.g., 3-5), it becomes very reactive (better for scalping).
Important Note on "Repainting"
This script uses a technique called Regression. In live trading, it works perfectly (the signal appears when the candle closes). However, be aware that "AI" scripts like this are heavy on calculations. If you refresh your browser, the historical lines might shift slightly to fit the data better. Always wait for the candle to close before taking the trade to ensure the signal is locked in.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。