OPEN-SOURCE SCRIPT
Telah dikemas kini

GreenyyP Leverage Vortex v6

494
Function Summary of “GreenyyP Leverage Vortex v6”

General Settings
Input fields for long and short base prices

Configurable leverage factor

Adjustable line length and label offset

Toggles for chart labels and scale display

Separate switch to show/hide base-price lines

Individually Toggleable Levels
Each level can be turned on or off independently under the Long/Short groups:

L1, L2, L3 (percentage deviations from the entry price)

TP (Take Profit)

SL (Stop Loss)

Automatic Stop-Loss Correction
SL percentages are processed with math.abs()

Ensures SL lines always plot below (for Long) or above (for Short) the base price regardless of input sign

Drawing Logic
All lines and labels redraw every 10 bars to keep the chart clean

Previous labels are deleted before drawing new ones

Lines are drawn with a width of 2 for clear visibility

Base-Price Lines & Labeling
Optional solid lines for Long and Short base prices

White price labels for each base line

Percentage or short text labels (e.g. “L1: 5%”, “TP: 20%”, “SL: 5%”) with configurable transparency

With these features, you get fully customizable level-plotting, automatic SL handling, and clear visual cues directly on your chart.
Nota Keluaran
## 🌀 GreenyyP Leverage Vortex v6.01 – Feature Overview

### 📜 Version History
| Version | Änderungen |
|--------|------------|
| v6.01 | Separated Long and Short leverage settings for directional flexibility. Updated documentation with clean Markdown formatting for TradingView publishing. |
| v6.00 | Initial public release with toggleable levels, auto SL handling, and customizable chart visuals. |

---

### ⚙️ General Settings
- Input fields for **Long and Short base prices**
- **Individually adjustable leverage factors** for Long and Short positions
- Configurable **line length** and **label offset**
- Toggles for:
- **Chart labels**
- **Scale display**
- **Base-price line visibility**

---

### 🎯 Toggleable Levels for Long & Short
Each level can be activated independently:

- **L1, L2, L3** – % deviation from entry price
- **TP** – Take Profit
- **SL** – Stop Loss

---

### 🛡️ Automatic Stop-Loss Correction
- SL values handled using `math.abs()` for reliable placement:
- **Long trades** → SL always drawn **below** the base price
- **Short trades** → SL always drawn **above** the base price
- Input sign does not affect outcome

---

### 🖊️ Drawing Logic
- Lines and labels **refresh every 10 bars** to keep the chart clean
- **Previous labels auto-deleted** before redraw
- Lines rendered using **width = 2** for visual clarity

---

### 📌 Base-Price Line Display & Labels
- Optional **solid lines** for Long and Short base prices
- Clear, **white price labels** for base levels
- Short labels like:
- `L1: 5%`
- `TP: 20%`
- `SL: 5%`
- Label transparency fully customizable

---

### ✨ Benefits
A clean, dynamic plotting tool tailored for leveraged traders:
- Precise entry zone planning
- Direction-specific leverage configuration
- Automated risk control via SL logic
- Clean, readable chart visuals

Ideal for traders who want control, clarity, and performance in volatile setups.
Nota Keluaran
### 🔔 Static Alerts (v6.02)
- Alerts can be manually created for L1–L3, TP, and SL levels
- Trigger when price crosses a **fixed plotted level**
- **Do not update automatically** when inputs (base price, % levels) change
- ⚠️ After any adjustments to input values, existing alerts **must be deleted and recreated** to reflect new conditions

### 📜 Version History
| Version | Änderungen |
|--------|------------|
| v6.02 | ➕ Added **static alert system** for active levels (L1–L3, TP, SL). Alerts trigger based on fixed chart conditions and do not auto-update with input changes.<br>⚠️ **Important:** If you modify base prices or percentage levels, you must manually reset any existing alerts. |
| v6.01 | 🔧 Introduced **separate leverage configuration** for Long and Short trades. Refined documentation and formatting for TradingView publishing. |
| v6.00 | 🛠️ Initial public release with toggleable levels, auto SL logic, and clean visual chart integration. |
Nota Keluaran
## 🌀 GreenyyP Leverage Vortex v6.03 – Feature Overview

### 📜 Version History
| Version | Updates |
|--------|---------|
| v6.03 | 🔁 **Added Liquidation Levels** for Long and Short positions with display and alert support.<br>
🧠 Calculation based on leverage and margin buffer.<br>
📢 Alerts available for liquidation lines.
<br>🖍️ Improved label grouping and visual structure
.<br>🐞 **Bugfix:** Resolved issue with lines and labels not updating consistently |
| v6.02 | ➕ Introduced **static alerts** for L1–L3, TP, SL. Alerts require manual reset when inputs change. |
| v6.01 | 🔧 Added **separate leverage configuration** for Long and Short entries. |
| v6.00 | 🛠️ Initial release with toggleable levels, auto SL logic, and clean chart visuals. |

---

### ⚙️ General Settings
- Input fields for **Long and Short base prices**
- **Individual leverage** configuration per side
- Configurable **margin buffer** for liquidation logic
- Adjustable **line length** and **label offset**
- Toggles for:
- Level visibility
- Labels
- Base lines
- Liquidation levels

---

### 📉 Liquidation Logic & Alerts (v6.03)
- Calculated based on:
- Long: `Entry * (1 - 1/Leverage + Margin)`
- Short: `Entry * (1 + 1/Leverage - Margin)`
- 🔴 Liquidation lines with distinct styling
- Alert toggles:
- `🔔 Long Liquidation Alert`
- `🔔 Short Liquidation Alert`
- ⚠️ *Note:* Changing base price, leverage, or margin requires manual alert reset

---

### 🎯 Level Groups (Long & Short)
Fully toggleable setup:

**Long Side:**
- L1 – Impulse
- L2 – Confirmation
- L3 – Breakout
- TP / SL – Take Profit / Stop Loss

**Short Side:**
- S1 – Impulse
- S2 – Confirmation
- S3 – Breakout
- TP / SL – Take Profit / Stop Loss

Levels plotted based on % deviations and leverage, with full labeling

---

### 🔔 Static Alert System (v6.02+)
- Alerts available for all levels: L1–L3, TP, SL, LiQ
- 🚨 Manual alert creation required
- ⚠️ Alerts are **not auto-updating** — must be reconfigured when inputs change

---

### 🖊️ Drawing & Labeling Logic
- **Redraws every 10 bars** to keep visuals clean
- ✅ Labels now automatically removed before refresh (**v6.03 bugfix**)
- Line width set to 2 for optimal visibility
- Labels include value + % deviation and support transparency

---

### 🎨 Visual Styling
- Long Levels: Cyan, Lime, Deep Green
- Short Levels: Yellow, Orange, Red
- TP = Green, SL = Red
- LiQ Lines = Red
- Entry Lines = Black

---

### ✨ Benefits
A precision-built indicator for leveraged traders:
- Full customization and control
- Visual clarity with grouped alerts and color styling
- Liquidation logic for directional planning
- Stable chart updates with cleaned label behavior

Your all-in-one plotting engine — now bug-free and LiQ-ready 🚀

---

### 💡 Suggestions Welcome!
This script is actively evolving — and trader feedback is essential!

If you have ideas for new features, visual improvements, alert types, or risk tools you'd like to see integrated, feel free to share them.

📬 Let’s make it better together!

Nota Keluaran
### 📜 Version History
| Version | Updates |
|--------|---------|
| v6.04 |
🏷️ **Entry labels** added for Long and Short base prices, showing live price and leverage info
📈 **Real-time level calculation** via `request.security()` for accurate multi-timeframe data
🧮 **Dynamic percentage-based level spacing**, calculated with leverage for improved precision
🎨 **Custom label background colors** added per level (L1–L3, TP, SL), Long and Short separately
⚡ **Persistent label system** refreshes on each tick, with cleanup logic using arrays
🐞 **Bugfix:** Label redraw behavior corrected — ensures reliable updates without ghost artifacts
Nota Keluaran
### 📜 Version History

| Version | Changes |
|--------|---------|
| v6.09 | 🎯 **Customizable threshold values for emoji display in labels** – now respond to user-defined conditions instead of fixed logic
| v6.08 | 🧰 **Improved script performance** – optimized calculations and more efficient handling of label drawing and updates
| v6.07 | 🏷️ **Refined label design** – more precise placement, adjusted font size, and structured layout for better readability
| v6.06 | 🧮 **Bugfix for Short label difference** – price deviation between entry and level is now calculated correctly
| v6.05 | 🔔 **Updated alert logic** – alerts now trigger on **candle High or Low** depending on Long/Short direction, no longer only on candle close

Thanks to everyone who pointed out bugs.
If you would like to see additional features, please don't hesitate to contact me. Also, if you discover any bugs, please let me know. You are the best
Nota Keluaran
| v6.10 | 🚀 **Functional Enhancements & Visual Refinements**
• 🎯 **TP input mode reworked** – now there's only one input field per direction (Long/Short) with a dropdown option for "%" or absolute price; the calculation automatically adapts to the selected mode
• 🔔 **Alert logic synced with TP value** – TP alerts now automatically reflect the active value based on input mode
⚠️ *Note:* The alert must be **manually recreated** each time the TP input changes to ensure the updated value is applied
• 🎨 **Label styling improved** – refined gradient colors and matching font colors for enhanced readability

🐞 **Bugfixes**
• Liquidation label corrected – minor issues with text formatting and value display have been resolved

👀 **What’s Coming Next**
Something big is in the works for the next version — stay tuned!

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.