PROTECTED SOURCE SCRIPT
Telah dikemas kini Lot Size Calculator (SL Percentage) - Futures

⚠️ IMPORTANT DISCLAIMER
This indicator is provided for educational and informational purposes only. The author assumes no responsibility for any financial losses, code errors, calculation mistakes, or trading decisions based on this tool. Use at your own risk and responsibility. Always manually verify calculations before opening real positions.
Contract size calculations are based on standard full-size futures contracts, not micro contracts (even though micro contracts are supported for identification).
Description
Money management tool for automatic calculation of optimal contract size (lot size) in futures trading. Supports over 50 futures instruments with pre-configured tick sizes and pip values for CME and other exchanges.
Supported Instruments
Currency Futures: 6J, 6E, 6B, 6A, 6C, 6S, 6N
Index Futures: ES, NQ, YM, RTY, MES, MNQ, MYM, M2K, NKD
Energy: CL, NG, HO, RB, QM
Metals: GC, SI, HG, MGC, SIL
Agricultural: ZC, ZS, ZW, HE, LE, ZO, ZR, ZM, ZL
Interest Rates: ZN, ZB, ZT, ZF
Crypto: MBT, MET
Others: VX
Main Parameters
Equity [USD]: Total available capital
Risk [%]: Maximum risk percentage per trade
Stop Loss [%]: Percentage distance of stop loss
Risk/Reward Ratio: Ratio to calculate take profit
Entry Price: Entry price (0 = current price)
Stop Loss Modes
Percentage Stop Loss (Use SL in % = ON):
Automatically calculates SL level as percentage from entry price
Example: Entry 100, SL 2% → Long SL at 98, Short SL at 102
Manual Stop Loss (Use SL in % = OFF):
Enter exact stop loss price directly
Greater precision for specific technical levels (support/resistance)
Interactive feature: You can drag the red stop loss line directly on the chart to modify the level in real-time
How to Use
Set equity and risk % according to your trading plan
Choose direction (Long/Short) and stop loss (percentage or price)
Enter entry price (optional)
Read the CONTRACT SIZE in the green table
Verify levels Entry/SL/TP on the graphic lines
Output
Information table with all parameters and highlighted CONTRACT SIZE
Graphic lines: Entry (blue), Stop Loss (red), Take Profit (green)
Configurable alerts with calculated values
Advantages
✅ Automatic calculation of optimal size
✅ Precise tick sizes for each instrument
✅ Systematic risk management
✅ Clear visual interface
✅ Multi-asset support on futures
Warnings
⚠️ Always verify that the instrument is recognized (no orange warning)
⚠️ Manually check calculations before trading
⚠️ Test in demo before using with real money
⚠️ Update regularly for any contract modifications
⚠️ DISCLAIMER IMPORTANTE
Questo indicatore è fornito esclusivamente a scopo educativo e informativo. L'autore non si assume alcuna responsabilità per eventuali perdite finanziarie, errori nel codice, calcoli errati o decisioni di trading basate su questo strumento. L'utilizzo è a proprio rischio e responsabilità. Si raccomanda di verificare sempre manualmente i calcoli prima di aprire posizioni reali.
I calcoli della dimensione del contratto sono basati su contratti futures standard full-size, non micro contratti (anche se i micro contratti sono supportati per l'identificazione).
Descrizione
Strumento di money management per il calcolo automatico della dimensione ottimale del contratto (lot size) nel trading di futures. Supporta oltre 50 strumenti futures con tick size e pip value pre-configurati per mercati CME e altri exchange.
Strumenti Supportati
Currency Futures: 6J, 6E, 6B, 6A, 6C, 6S, 6N
Index Futures: ES, NQ, YM, RTY, MES, MNQ, MYM, M2K, NKD
Energy: CL, NG, HO, RB, QM
Metals: GC, SI, HG, MGC, SIL
Agricultural: ZC, ZS, ZW, HE, LE, ZO, ZR, ZM, ZL
Interest Rates: ZN, ZB, ZT, ZF
Crypto: MBT, MET
Altri: VX
Parametri Principali
Equity [USD]: Capitale totale disponibile
Risk [%]: Percentuale massima di rischio per trade
Stop Loss [%]: Distanza percentuale dello stop loss
Risk/Reward Ratio: Rapporto per calcolare il take profit
Entry Price: Prezzo di entrata (0 = prezzo corrente)
Modalità Stop Loss
Stop Loss Percentuale (Use SL in % = ON):
Calcola automaticamente il livello SL come percentuale dal prezzo di entrata
Esempio: Entry 100, SL 2% → SL Long a 98, SL Short a 102
Stop Loss Manuale (Use SL in % = OFF):
Inserisci direttamente il prezzo esatto dello stop loss
Maggiore precisione per livelli tecnici specifici (supporti/resistenze)
Funzione interattiva: Puoi trascinare direttamente la linea rossa dello stop loss sul grafico per modificare il livello in tempo reale
Come Usare
Imposta equity e risk % secondo il tuo piano di trading
Scegli direzione (Long/Short) e stop loss (percentuale o prezzo)
Inserisci entry price (opzionale)
Leggi il CONTRACT SIZE nella tabella verde
Verifica i livelli Entry/SL/TP sulle linee grafiche
Output
Tabella informativa con tutti i parametri e il CONTRACT SIZE evidenziato
Linee grafiche: Entry (blu), Stop Loss (rosso), Take Profit (verde)
Alert configurabile con i valori calcolati
Vantaggi
✅ Calcolo automatico della size ottimale
✅ Tick size precisi per ogni strumento
✅ Risk management sistematico
✅ Interfaccia visiva chiara
✅ Supporto multi-asset su futures
Avvertenze
⚠️ Verifica sempre che lo strumento sia riconosciuto (no warning arancione)
⚠️ Controlla manualmente i calcoli prima di tradare
⚠️ Testa in demo prima dell'uso con denaro reale
⚠️ Aggiorna regolarmente per eventuali modifiche ai contratti
This indicator is provided for educational and informational purposes only. The author assumes no responsibility for any financial losses, code errors, calculation mistakes, or trading decisions based on this tool. Use at your own risk and responsibility. Always manually verify calculations before opening real positions.
Contract size calculations are based on standard full-size futures contracts, not micro contracts (even though micro contracts are supported for identification).
Description
Money management tool for automatic calculation of optimal contract size (lot size) in futures trading. Supports over 50 futures instruments with pre-configured tick sizes and pip values for CME and other exchanges.
Supported Instruments
Currency Futures: 6J, 6E, 6B, 6A, 6C, 6S, 6N
Index Futures: ES, NQ, YM, RTY, MES, MNQ, MYM, M2K, NKD
Energy: CL, NG, HO, RB, QM
Metals: GC, SI, HG, MGC, SIL
Agricultural: ZC, ZS, ZW, HE, LE, ZO, ZR, ZM, ZL
Interest Rates: ZN, ZB, ZT, ZF
Crypto: MBT, MET
Others: VX
Main Parameters
Equity [USD]: Total available capital
Risk [%]: Maximum risk percentage per trade
Stop Loss [%]: Percentage distance of stop loss
Risk/Reward Ratio: Ratio to calculate take profit
Entry Price: Entry price (0 = current price)
Stop Loss Modes
Percentage Stop Loss (Use SL in % = ON):
Automatically calculates SL level as percentage from entry price
Example: Entry 100, SL 2% → Long SL at 98, Short SL at 102
Manual Stop Loss (Use SL in % = OFF):
Enter exact stop loss price directly
Greater precision for specific technical levels (support/resistance)
Interactive feature: You can drag the red stop loss line directly on the chart to modify the level in real-time
How to Use
Set equity and risk % according to your trading plan
Choose direction (Long/Short) and stop loss (percentage or price)
Enter entry price (optional)
Read the CONTRACT SIZE in the green table
Verify levels Entry/SL/TP on the graphic lines
Output
Information table with all parameters and highlighted CONTRACT SIZE
Graphic lines: Entry (blue), Stop Loss (red), Take Profit (green)
Configurable alerts with calculated values
Advantages
✅ Automatic calculation of optimal size
✅ Precise tick sizes for each instrument
✅ Systematic risk management
✅ Clear visual interface
✅ Multi-asset support on futures
Warnings
⚠️ Always verify that the instrument is recognized (no orange warning)
⚠️ Manually check calculations before trading
⚠️ Test in demo before using with real money
⚠️ Update regularly for any contract modifications
⚠️ DISCLAIMER IMPORTANTE
Questo indicatore è fornito esclusivamente a scopo educativo e informativo. L'autore non si assume alcuna responsabilità per eventuali perdite finanziarie, errori nel codice, calcoli errati o decisioni di trading basate su questo strumento. L'utilizzo è a proprio rischio e responsabilità. Si raccomanda di verificare sempre manualmente i calcoli prima di aprire posizioni reali.
I calcoli della dimensione del contratto sono basati su contratti futures standard full-size, non micro contratti (anche se i micro contratti sono supportati per l'identificazione).
Descrizione
Strumento di money management per il calcolo automatico della dimensione ottimale del contratto (lot size) nel trading di futures. Supporta oltre 50 strumenti futures con tick size e pip value pre-configurati per mercati CME e altri exchange.
Strumenti Supportati
Currency Futures: 6J, 6E, 6B, 6A, 6C, 6S, 6N
Index Futures: ES, NQ, YM, RTY, MES, MNQ, MYM, M2K, NKD
Energy: CL, NG, HO, RB, QM
Metals: GC, SI, HG, MGC, SIL
Agricultural: ZC, ZS, ZW, HE, LE, ZO, ZR, ZM, ZL
Interest Rates: ZN, ZB, ZT, ZF
Crypto: MBT, MET
Altri: VX
Parametri Principali
Equity [USD]: Capitale totale disponibile
Risk [%]: Percentuale massima di rischio per trade
Stop Loss [%]: Distanza percentuale dello stop loss
Risk/Reward Ratio: Rapporto per calcolare il take profit
Entry Price: Prezzo di entrata (0 = prezzo corrente)
Modalità Stop Loss
Stop Loss Percentuale (Use SL in % = ON):
Calcola automaticamente il livello SL come percentuale dal prezzo di entrata
Esempio: Entry 100, SL 2% → SL Long a 98, SL Short a 102
Stop Loss Manuale (Use SL in % = OFF):
Inserisci direttamente il prezzo esatto dello stop loss
Maggiore precisione per livelli tecnici specifici (supporti/resistenze)
Funzione interattiva: Puoi trascinare direttamente la linea rossa dello stop loss sul grafico per modificare il livello in tempo reale
Come Usare
Imposta equity e risk % secondo il tuo piano di trading
Scegli direzione (Long/Short) e stop loss (percentuale o prezzo)
Inserisci entry price (opzionale)
Leggi il CONTRACT SIZE nella tabella verde
Verifica i livelli Entry/SL/TP sulle linee grafiche
Output
Tabella informativa con tutti i parametri e il CONTRACT SIZE evidenziato
Linee grafiche: Entry (blu), Stop Loss (rosso), Take Profit (verde)
Alert configurabile con i valori calcolati
Vantaggi
✅ Calcolo automatico della size ottimale
✅ Tick size precisi per ogni strumento
✅ Risk management sistematico
✅ Interfaccia visiva chiara
✅ Supporto multi-asset su futures
Avvertenze
⚠️ Verifica sempre che lo strumento sia riconosciuto (no warning arancione)
⚠️ Controlla manualmente i calcoli prima di tradare
⚠️ Testa in demo prima dell'uso con denaro reale
⚠️ Aggiorna regolarmente per eventuali modifiche ai contratti
Nota Keluaran
v.1Nota Keluaran
✨ New Features🔧 Custom Overrides
Custom Tick Size: Ability to manually enter tick size (leave 0 for automatic value)
Custom Tick Value USD: Ability to manually enter tick value in dollars (leave 0 for automatic value)
"Advanced Override" Group: New section dedicated to advanced customizations
🎨 Improved Interface
Override Indicator: Purple row "🔧 OVERRIDE" when custom values are active
Dynamic Colors:
Purple = Custom values active
Orange = Unrecognized instrument
Black = Standard values
Optimized Background: Adjustable white background for better readability
🎯 How to Use New Functions
Override Values
If automatic calculations are incorrect, enter the correct values in "Custom" fields
Useful for unsupported instruments or micro contracts with specific values
The table will show "🔧 OVERRIDE" and color the values in purple
⚠️ Important Notes
Custom values completely override automatic ones
Always verify calculations before real trading
For micro contracts not automatically recognized, use overrides with correct values from your broker
🔄 Aggiornamento Indicatore - Lot Size Calculator
✨ Nuove Funzionalità
🔧 Override Personalizzati
Custom Tick Size: Possibilità di inserire manualmente il tick size (lasciare 0 per valore automatico)
Custom Tick Value USD: Possibilità di inserire manualmente il valore del tick in dollari (lasciare 0 per valore automatico)
Gruppo "Advanced Override": Nuova sezione dedicata alle personalizzazioni avanzate
🎨 Interfaccia Migliorata
Indicatore Override: Riga viola "🔧 OVERRIDE" quando i valori personalizzati sono attivi
Colori dinamici:
Viola = Valori personalizzati attivi
Arancione = Strumento non riconosciuto
Nero = Valori standard
Sfondo ottimizzato: Sfondo bianco regolabile per migliore leggibilità
🎯 Come Utilizzare le Nuove Funzioni
Override Valori
Se i calcoli automatici sono errati, inserisci i valori corretti nei campi "Custom"
Utile per strumenti non supportati o micro contracts con valori specifici
La tabella mostrerà "🔧 OVERRIDE" e colorerà i valori in viola
⚠️ Note Importanti
I valori personalizzati sovrascrivono completamente quelli automatici
Verifica sempre i calcoli prima del trading reale
Per micro contracts non riconosciuti automaticamente, usa gli override con i valori corretti del tuo broker
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
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.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
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.