Add strategy version v5 for backtesting; update README with backtesting guide

This commit is contained in:
root
2025-10-18 20:27:23 +02:00
parent 41c60bf967
commit 8ae4a9148a
2 changed files with 146 additions and 6 deletions

View File

@@ -34,6 +34,7 @@ This repo contains multiple versions; v4 is the stable baseline and `v4+` adds o
- `Bullmania_Money_Line_v4_plus.pine` — v4-compatible but with optional filters and quality-of-life features (Pine v6).
- `Bullmania_Money_Line_v5.pine` — v1 + optional MACD confirmation gate and optional timeframe profiles (Single mode or auto profile by chart TF).
- `Bullmania_Money_Line_v6.pine` — v5 + optional RSI confirmation gate (SuperTrend + RSI combo).
- `Bullmania_Money_Line_Strategy_v5.pine` — Strategy version of v5 for backtesting with entry/exit rules, optional SL/TP.
## How it works (all versions)
- Money Line is derived from a mid-price `(high + low) / 2` and `ATR(atrPeriod)` scaled by `multiplier`.
@@ -170,12 +171,12 @@ ATR Period ≈ round(T / timeframe_minutes)
Keep Multiplier roughly stable and fine-tune by small increments; HA candles allow slightly tighter settings than regular candles.
## How to use in TradingView
1) Open TradingView → Pine Editor.
2) New blank script.
3) Copy the contents of the desired `.pine` file and paste.
4) Save and “Add to chart”.
5) Open Inputs to adjust parameters.
## Backtesting with Strategy Version
For automated testing of different settings, use `Bullmania_Money_Line_Strategy_v5.pine`:
- Load it as a strategy in TradingView.
- In the Strategy Tester, set date ranges and use "Optimize" to sweep parameters like ATR Period, Multiplier, or MACD lengths.
- Review performance metrics (win rate, profit factor) to find optimal combos.
- Note: Indicators (like v5/v6) show signals but don't backtest; strategies do.
## Changelog
- v6 — v5 + optional RSI confirmation gate (buy requires RSI < overbought; sell requires RSI > oversold). Combines with MACD if enabled.