OPEN-SOURCE SCRIPT
AetherEdge - Personal WinRate Coach

🖊️ Overview
AE-PWRC is a self-coaching tool that logs your past trade outcomes, learns which market regimes you tend to win in, and displays personalized advice like "You win ~70% in range / low-volatility regimes" in the HUD. Because Pine has no buttons, trades are entered as date-times in the settings. It also displays your historical win rate for the current regime in real time, helping suppress impulsive entries.
🔶 Key Features
Manual trade logging: up to 10 wins and 10 losses via date-time inputs
Auto regime categorization: 3 axes × 3 levels (trend, volatility, RSI state)
Personal win-rate learning: aggregates your actual rates per category
Auto-generated advice: surfaces the most striking category as a coaching message
"Here & now" real-time assessment: your past win rate for the current regime
Chart markers for logged trades visualizing where they occurred
Integrated HUD with overall win rate, per-category rates, and recommendations
🧠 Technical Architecture
Since Pine lacks button UIs, this tool adopts input.time date-time logging. After entering win/loss times, each bar checks time <= ts < time_close to identify the matching bar, snapshots the three-axis state (trend direction, volatility level, RSI state), and increments the win/loss bucket. Advice generation extracts, per axis, the category with the largest absolute deviation from 50% (with ≥3 samples), and the axis with the maximum deviation provides the headline. The current-regime assessment sums each axis's current-category past win rates into a "here & now" verdict.
⚙️ Recommended Settings & Tuning Guide
The key step is logging trades. In settings, paste trade date-times into Win/Loss slots: right-click a bar on the chart → "Set indicator parameters" → paste the time. Slots left at the default (2000-01-01) are ignored. Default category thresholds: High-Vol 1.2, Low-Vol 0.7. Trend EMA 20/60 sets range-detection sensitivity; lower Fast EMA for looser range classification.
💡 How to Use in Practice
Start by logging recent trades (~10 wins, ~10 losses). The HUD's COACH ADVICE then shows "you tend to win/lose in this kind of regime," objectively reflecting your trading patterns. In live trading, check HERE & NOW for your past win rate in the current regime — green (≥55%) means aggressive consideration, red (≤45%) means caution or skip. The more trades logged, the more accurate the advice. Update with fresh trades roughly monthly.
⚠️ Important Notes
This is a small-sample personal-statistics tool, not a deep ML agent. With few samples the noise is large; reliable advice needs at least 10–20 logged trades. "Log more trades for advice" in the HUD indicates insufficient samples. Pine doesn't support clickable buttons by design, so trade logging uses date-time inputs — slightly cumbersome but the most practical approach in Pine.
🚨 Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial or investment advice. No win rate guarantees future profit, and past performance does not indicate future results. All trading decisions are made at your own risk.
AE-PWRC is a self-coaching tool that logs your past trade outcomes, learns which market regimes you tend to win in, and displays personalized advice like "You win ~70% in range / low-volatility regimes" in the HUD. Because Pine has no buttons, trades are entered as date-times in the settings. It also displays your historical win rate for the current regime in real time, helping suppress impulsive entries.
🔶 Key Features
Manual trade logging: up to 10 wins and 10 losses via date-time inputs
Auto regime categorization: 3 axes × 3 levels (trend, volatility, RSI state)
Personal win-rate learning: aggregates your actual rates per category
Auto-generated advice: surfaces the most striking category as a coaching message
"Here & now" real-time assessment: your past win rate for the current regime
Chart markers for logged trades visualizing where they occurred
Integrated HUD with overall win rate, per-category rates, and recommendations
🧠 Technical Architecture
Since Pine lacks button UIs, this tool adopts input.time date-time logging. After entering win/loss times, each bar checks time <= ts < time_close to identify the matching bar, snapshots the three-axis state (trend direction, volatility level, RSI state), and increments the win/loss bucket. Advice generation extracts, per axis, the category with the largest absolute deviation from 50% (with ≥3 samples), and the axis with the maximum deviation provides the headline. The current-regime assessment sums each axis's current-category past win rates into a "here & now" verdict.
⚙️ Recommended Settings & Tuning Guide
The key step is logging trades. In settings, paste trade date-times into Win/Loss slots: right-click a bar on the chart → "Set indicator parameters" → paste the time. Slots left at the default (2000-01-01) are ignored. Default category thresholds: High-Vol 1.2, Low-Vol 0.7. Trend EMA 20/60 sets range-detection sensitivity; lower Fast EMA for looser range classification.
💡 How to Use in Practice
Start by logging recent trades (~10 wins, ~10 losses). The HUD's COACH ADVICE then shows "you tend to win/lose in this kind of regime," objectively reflecting your trading patterns. In live trading, check HERE & NOW for your past win rate in the current regime — green (≥55%) means aggressive consideration, red (≤45%) means caution or skip. The more trades logged, the more accurate the advice. Update with fresh trades roughly monthly.
⚠️ Important Notes
This is a small-sample personal-statistics tool, not a deep ML agent. With few samples the noise is large; reliable advice needs at least 10–20 logged trades. "Log more trades for advice" in the HUD indicates insufficient samples. Pine doesn't support clickable buttons by design, so trade logging uses date-time inputs — slightly cumbersome but the most practical approach in Pine.
🚨 Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial or investment advice. No win rate guarantees future profit, and past performance does not indicate future results. All trading decisions are made at your own risk.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。