Dual Custom Index with SpreadDual Custom Index with Spread
Create powerful custom indices from any instruments and analyze their relative strength dynamics
Overview
This advanced indicator allows you to build two completely customizable indices from your choice of instruments and analyze their spread relationship. Perfect for inter-market analysis, sector rotation strategies, currency strength comparisons, and sophisticated relative performance studies.
Key Features
🔧 Fully Customizable Index Construction
Build each index from up to 6 instruments with individual weightings
Enable/disable instruments on the fly without losing settings
Automatic weight validation ensures mathematically accurate calculations
Invert functionality for instruments that move opposite to index strength
📊 Advanced ADX-Based Methodology
Uses sophisticated ADX +DI/-DI directional bias calculations
Normalized bias calculation for consistent scaling across different instruments
Optimized default settings for intraday trading with full customization options
Professional-grade smoothing and filtering options
📈 Dual Analysis Modes
Difference Mode: Shows absolute strength difference (Index1 - Index2)
Ratio Mode: Shows relative performance ratio (Index1 / Index2)
Additional spread smoothing for cleaner signals
🎨 Professional Display Options
Custom labels with full color, size, and positioning control
Dynamic "Follow Line" labels that move with your data
Static corner positioning for reference displays
Clean error messaging and validation feedback
Use Cases
Gold Trading: Create gold strength vs USD strength indices for precise market timing
Sector Analysis: Compare technology vs financial sector strength for rotation strategies
Currency Strength: Build custom currency baskets for advanced forex analysis
Commodity Spreads: Analyze relative strength between different commodity groups
Regional Markets: Compare strength between different geographical market indices
Crypto Analysis: Track relative performance between different cryptocurrency sectors
Technical Specifications
Instruments per Index: Up to 6 with individual enable/disable
Weight Validation: Automatic 100% total weight enforcement
Calculation Method: ADX-based directional bias with trend strength weighting
Smoothing Options: Multiple levels of customizable smoothing
Error Handling: Professional validation with clear user feedback
Optimization Tips
Intraday Trading: Use DI Length 3-7 for faster response
Daily Analysis: Use DI Length 10-14 for smoother signals
Noisy Markets: Increase Final Smoothing for cleaner signals
Trending Markets: Lower smoothing values for faster reaction
Perfect for traders who need sophisticated inter-market analysis tools beyond standard indicators. Whether you're analyzing gold vs dollar dynamics, sector rotation opportunities, or custom currency strength relationships, this indicator provides institutional-grade analysis capabilities with complete customization flexibility.
Indexs
quarter level dinamicLimited quarter level script but more flexible in compared to my FX script, same logic behind
Jakes Index------------
English
I introduce the community to the Jakes Index. Basically, this is an index containing the top 10 cryptocurrencies, classified according to their Marketcap. The purpose of this index is to show a general market context, without being tied to a single crypto. With an overview of the market, it is easier to identify the market trend, in addition to being an excellent indicator to gauge the performance of your Crypt portfolio. Supply data comes from CoinMarktCap, and price data comes mostly from Binance, however some crypts are not yet available for trading by it, so the prices used come from the first broker indicated by TradingView in the search.
Given that one of the crypts was launched very recently, Internet Computer to be more exact, I decided to leave it out of the index, adding "//" to the code in all references to it. If you want to see the performance of the index with the included cryptography, just delete the bars that follow in front of your code, such parts: "ASSET8; SUPPLY8; PESO8; QOC8; FINM8" after that add "//" in "PESO11" and remove the bars from "PESSO11F", in addition to also removing the F. Do the same with "JAKESINDEX" at the end of the code, and you will have the result with the Internet Computer included.
The calculation of the index takes into account the Marketcap of the crypto, which is divided by the sum of the Marketcap of all the others, and then the result is multiplied by the market value of the Cryptocurrency. Thus, we have an index weighted by Marketcap with the 10 most important cryptocurrencies in the market AT THE TIME. It is important to remember that this index must be updated, both in terms of the currencies that change their place in the ranking with certain frequency, as the Supply that each one has, since coins with active mining, as is the case of Bitcoin, change their Supply frequently.
To keep the index up to date, I will do ONE Monthly update, always posting the code with the new changes.
------------
Português
Apresento a comunidade o Jakes Index. Basicamente, este é um índice contendo as 10 principais criptomoedas, classificadas de acordo com seu Marketcap. O objetivo deste índice é mostrar um contexto geral do mercado, sem ficar preso a uma única cripto. Com um apanhado geral sobre o mercado, fica mais fácil identificar a tendência do mercado, além de ser um excelente indicador para balizar o desempenho da sua carteira de Criptos. Os dados referentes a Supply são advindos do CoinMarktCap, e os dados dos preços vem em sua maioria da Binance, porém algumas criptos ainda não estão disponíveis para negociação pela mesma, portanto os preços utilizados vem da primeira corretora indicada pelo TradingView na busca.
Tendo em vista que uma das criptos foi lançada muito recentemente, a Internet Computer para ser mais exato, decidi deixa-la de fora do índice, adicionando "//" no código em todas as referencias a mesma. Caso queira ver o desempenho do índice com a cripto incluída, basta apagar as barras que seguem na frente de seu código, sendo tais partes: "ASSET8; SUPPLY8; PESO8; QOC8; FINM8" após isso adicione "//" em "PESO11" e remova as barras de "PESSO11F", além de remover também o F. Faça o mesmo com "JAKESINDEX" no fim do código, e terá o resultado com a Internet Computer incluída.
O calculo do índice leva em conta o Marketcap da cripto, que é dividio pela soma do Marketcap de todas as outras, e então o resultado é multiplicado pelo valor a mercado da Criptomoeda. Dessa forma, temos um índice ponderado pelo Marketcap com as 10 Criptomoedas mais importantes do mercado NO MOMENTO. É importante lembrar que este índice deve ser atualizado, tanto em questão das moedas que mudam com certa frequência seu lugar no ranking, como o Supply que cada uma tem, visto que moedas com mineração ativa, como é o caso do Bitcoin, mudam seu Supply com frequência.
Para manter o índice atualizado, farei UMA atualização Mensal, postando sempre o código com as novas alterações.