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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。