v5: add timeframe profiles with auto/override + default per-timeframe ATR/Multiplier; README updated
This commit is contained in:
48
README.md
48
README.md
@@ -1,5 +1,27 @@
|
||||
# Bullmania Money Line
|
||||
|
||||
## Bullmania Money Line v2 (strategy)
|
||||
|
||||
`Bullmania_Money_Line_v2.pine` is a TradingView Strategy version of the original indicator with built-in backtesting.
|
||||
|
||||
- Convert the original Money Line into a strategy with entries on trend flips.
|
||||
- Long/Short toggles and date range filter for backtests.
|
||||
- Commission/slippage controls via strategy() header.
|
||||
- Two sizing modes: Percent of equity (qty computed from equity and price) or fixed quantity.
|
||||
- Optional Money Line-based stop and ATR-multiple take profit.
|
||||
|
||||
How to use:
|
||||
1. Open the file in TradingView Pine Editor and click Add to chart.
|
||||
2. In the Inputs tab, set your ATR Period and Multiplier just like v1.
|
||||
3. Set backtest range (Start/End date) and toggles (Enable Longs/Shorts).
|
||||
4. Choose sizing mode: Percent of equity (qty_percent) or Fixed contracts (qty).
|
||||
5. Optionally enable Money Line as Stop and ATR-based Take Profit.
|
||||
|
||||
Notes:
|
||||
- Entries occur on trend flips (when the Money Line switches from down to up for longs and vice versa for shorts).
|
||||
- Exits are managed using `strategy.exit` with the Money Line as trailing stop when enabled. TP is optional.
|
||||
- Default initial capital is 10,000 and commission is 0.1% with 1 tick slippage; adjust as needed.
|
||||
|
||||
ATR-based trend line and flip signals for TradingView (Pine v6). The indicator draws a “Money Line” that trails price and flips direction when price crosses it. Green dots mark bullish flips (trend turns up), red dots mark bearish flips (trend turns down).
|
||||
|
||||
This repo contains multiple versions; v4 is the stable baseline and `v4+` adds optional filters, alerts, and per-timeframe profiles while preserving v4 defaults (off by default).
|
||||
@@ -10,6 +32,7 @@ This repo contains multiple versions; v4 is the stable baseline and `v4+` adds o
|
||||
- `Bullmania_Money_Line_v3.pine` — Historical variant.
|
||||
- `Bullmania_Money_Line_v4.pine` — v1 + optional noise reduction (confirmation bars, ATR buffer). Tagged `v4.0.0`.
|
||||
- `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).
|
||||
|
||||
## How it works (all versions)
|
||||
- Money Line is derived from a mid-price `(high + low) / 2` and `ATR(atrPeriod)` scaled by `multiplier`.
|
||||
@@ -154,10 +177,35 @@ Keep Multiplier roughly stable and fine-tune by small increments; HA candles all
|
||||
5) Open Inputs to adjust parameters.
|
||||
|
||||
## Changelog
|
||||
- v5 — v1 + optional MACD gate (buy dot requires MACD line > signal; sell dot requires MACD line < signal). Adds optional timeframe profiles: choose "Single" or "Profiles by timeframe". Profiles buckets: Minutes, Hours, Daily, Weekly/Monthly with independent ATR Period and Multiplier. Defaults keep v1 behavior.
|
||||
- v4+ — Pine v6 variant with optional ADX/MTF/session/cooldown, calc source toggle, EMA trend filter, anti-chop (CHOP, retest, min body), gated markers, and per-timeframe profiles.
|
||||
- v4.0.0 — Adds Flip confirmation bars and Flip buffer (×ATR). Defaults keep v1 behavior. Tag: `v4.0.0`.
|
||||
- v1 — Initial baseline.
|
||||
|
||||
## v5 timeframe profiles (quick guide)
|
||||
In `Bullmania_Money_Line_v5.pine` you can switch "Parameter Mode" between:
|
||||
- Single — one global ATR Period and Multiplier (same as v1 behavior).
|
||||
- Profiles by timeframe — separate inputs per bucket with auto-selection from chart TF or via "Profile Override":
|
||||
- Minutes (<= 59m)
|
||||
- Hours (>= 1h and < 1d)
|
||||
- Daily (>= 1d and < 1w)
|
||||
- Weekly/Monthly (>= 1w)
|
||||
|
||||
Inputs added in v5 when profiles are enabled:
|
||||
- ATR Period (Minutes/Hours/Daily/Weekly-Monthly)
|
||||
- Multiplier (Minutes/Hours/Daily/Weekly-Monthly)
|
||||
- Profile Override: Auto, or force a specific bucket
|
||||
- Optional: show active profile label on the chart
|
||||
|
||||
Note: Only ATR Period and Multiplier are profiled in v5; filters remain limited to the optional MACD confirmation gate.
|
||||
|
||||
### Default values (v5 profiles)
|
||||
Out of the box defaults meant to be robust across popular markets; adjust per symbol/volatility:
|
||||
- Minutes: ATR 12, Multiplier 3.3
|
||||
- Hours: ATR 10, Multiplier 3.0
|
||||
- Daily: ATR 10, Multiplier 2.8
|
||||
- Weekly/Monthly: ATR 7, Multiplier 2.5
|
||||
|
||||
## Notes
|
||||
- v4 is designed to reduce whips without changing the core Money Line logic.
|
||||
- Optional future add-ons (can be toggled if requested):
|
||||
|
||||
Reference in New Issue
Block a user