Indicator · Pine Script v5 · On the chart

LASTRO Portfolio Allocation Dashboard

by arthur1535

Shows a table on the chart that maps a macro stress reading to a capital split across three sleeves: a core equity ETF, a small-cap ETF and a short-term Treasury ETF.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code148
Settings14inputs
LicenceNone stated
Last update2 weeks ago9 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Stress is a rolling z-score of the VIX, a credit spread or a custom ticker, with separate entry and exit thresholds for hysteresis. A switch picks gradual or binary de-risking. Other symbols are fetched with request.security, using lookahead off.

Details

Published by

arthur1535 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Screeners & dashboards, Volatility & bands

Markets

Stocks

Timeframes

H4 and above

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Sleeve 1 (Factor / Core Equity)symbolAMEX:SPYtickerS1
Sleeve 2 (Small Caps / Momentum)symbolAMEX:IWMtickerS2
Sleeve 3 (Renda Fixa / T-Bills)symbolAMEX:BILtickerS3
Fonte de EstressestringVIX (Proxy Diário)macroSource
Ticker Macro PersonalizadosymbolCBOE:VIXcustomMacroTicker
Janela de Z-Score (Barras)int36zWindow
Limiar de Entrada em Estresse (+Z)float1.0entryZ
Limiar de Saída do Estresse (+Z)float0.5exitZ
De-risking Gradual (vs Binário)booltruemodeGradual
Exibir Tabela de AlocaçãobooltrueshowTable
Posição da TabelastringSuperior direitotablePos
Cor Regime Normalcolorcolor.new(#00c853, 0)colNormal
Show all 14 settings
SettingTypeDefaultVariable
Cor Regime Alertacolorcolor.new(#ffd600, 0)colWarning
Cor Regime Estressecolorcolor.new(#d50000, 0)colStress
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup: Vijay Thakare Option Buying Scalping Setup
330 stars

This multi-symbol indicator evaluates a combined trading condition across up to 40 user-defined symbols. It processes MACD bullish crossovers, RSI thresholds, Bollinger Band boundaries, and DMI/ADX trend filters using security calls. When buy or sell criteria

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Multi MACD + BB + RSI [Alorse]

Pricing Table

by namuan
318 stars

This indicator calculates theoretical options contract values and in-the-money probabilities using historical realized volatility across multiple standard deviations. It displays these metrics in a table overlay directly on the price chart. Users can adjust th

Indicator v4 Volatility & bandsScreeners & dashboards
Updated 2 months ago · MIT GitHub repository of Pricing Table
218 stars

This indicator maps market structure and supply and demand zones on the price chart. It marks validated and optional unvalidated swing highs and lows using a pivot length and extra confirmation bars. Consolidation and impulse moves are measured against ATR to

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Market Structure + Supply/Demand
200 stars

Storm Gauge calculates annualized realized volatility and compares it against a historical percentile lookback window to classify market volatility regimes into calm, normal, or storm conditions. Based on a target volatility input, it calculates dynamic positi

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 3 months ago · MIT GitHub repository of Storm Gauge — Vol Regime + Position Size

8zz反指標v2

by hansai-art
121 stars

The 8zz Contrarian Indicator plots reverse sentiment trading signals directly on the price chart based on tracked retail post activity. It generates bullish signals during retail panic and bearish signals during market euphoria. The indicator features adjustab

Indicator v6 Moving averagesOscillators & momentum
Updated 3 months ago · None stated GitHub repository of 8zz反指標v2

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers