Toptrade v3.0

change the name from livermore to toptrade
## Toptrade v3.0 - Label Offset Improvement
### 🎯 Overview
This release fixes the label positioning issue that caused trading signal labels to appear too far from the K-line charts, especially on high-priced instruments like QQQ.
---
## 📋 Changes
### ✨ New Features
- **Configurable Label Offset**: Added a new input parameter `labelOffsetMultiplier` (default: 0.3) that allows users to adjust the distance between trading signal labels and K-lines
- Range: 0.1 - 2.0
- Step: 0.1
- Tooltip: "Relative multiplier to ATR for calculating label distance from K-line"
### 🐛 Bug Fixes
- **Fixed Label Offset Calculation**: Replaced the fixed offset formula `atrValue * 1.5 + 50` with a more adaptive `atrValue * labelOffsetMultiplier`
- **Problem**: The previous formula caused labels to appear too far from K-lines on high-priced instruments (e.g., QQQ with large ATR values)
- **Solution**: Removed the fixed `+50` offset and made the multiplier configurable, allowing the offset to scale appropriately with different instrument types
---
## 📊 Impact
### Before
- QQQ (ATR = 5): Offset = 5 × 1.5 + 50 = **57.5 points** ❌ Too far
- SPY (ATR = 3): Offset = 3 × 1.5 + 50 = **54.5 points** ❌ Too far
### After
- QQQ (ATR = 5, multiplier = 0.3): Offset = 5 × 0.3 = **1.5 points** ✅ Appropriate
- SPY (ATR = 3, multiplier = 0.3): Offset = 3 × 0.3 = **0.9 points** ✅ Appropriate
---
## 🔧 Configuration
### Recommended Settings by Instrument Type
| Instrument Type | Recommended Multiplier | Notes |
|----------------|------------------------|-------|
| High-priced stocks (QQQ, SPY, AAPL) | 0.2 - 0.4 | Default 0.3 works well |
| Mid-priced stocks | 0.4 - 0.6 | Adjust based on ATR |
| Low-priced stocks | 0.6 - 1.0 | May need higher multiplier |
| Cryptocurrencies | 0.1 - 0.5 | Depends on price level |
| Forex pairs | 0.3 - 0.5 | Usually stable |
---
## 📝 Technical Details
### Modified Code Sections
1. **Input Parameters** (Line ~56)
- Added: `labelOffsetMultiplier` input parameter
2. **Buy Signal Label Positioning** (Line ~209)
- Changed from: `labelOffset = atrValue * 1.5 + 50`
- Changed to: `labelOffset = atrValue * labelOffsetMultiplier`
3. **Sell Signal Label Positioning** (Line ~242)
- Changed from: `labelOffset = atrValue * 1.5 + 50`
- Changed to: `labelOffset = atrValue * labelOffsetMultiplier`
---
---
## 📚 Related Files
- `toptradev3.0.pine` - Main indicator script
نص برمجي للمستخدمين المدعوين فقط
يمكن فقط للمستخدمين الذين تمت الموافقة عليهم من قبل المؤلف الوصول إلى هذا البرنامج النصي. ستحتاج إلى طلب الإذن والحصول عليه لاستخدامه. يتم منح هذا عادةً بعد الدفع. لمزيد من التفاصيل، اتبع تعليمات المؤلف أدناه أو اتصل ب jinshanwang731 مباشرة.
لا توصي TradingView بالدفع مقابل برنامج نصي أو استخدامه إلا إذا كنت تثق تمامًا في مؤلفه وتفهم كيفية عمله. يمكنك أيضًا العثور على بدائل مجانية ومفتوحة المصدر في نصوص مجتمعنا.
تعليمات المؤلف
إخلاء المسؤولية
نص برمجي للمستخدمين المدعوين فقط
يمكن فقط للمستخدمين الذين تمت الموافقة عليهم من قبل المؤلف الوصول إلى هذا البرنامج النصي. ستحتاج إلى طلب الإذن والحصول عليه لاستخدامه. يتم منح هذا عادةً بعد الدفع. لمزيد من التفاصيل، اتبع تعليمات المؤلف أدناه أو اتصل ب jinshanwang731 مباشرة.
لا توصي TradingView بالدفع مقابل برنامج نصي أو استخدامه إلا إذا كنت تثق تمامًا في مؤلفه وتفهم كيفية عمله. يمكنك أيضًا العثور على بدائل مجانية ومفتوحة المصدر في نصوص مجتمعنا.