How mrdungx2603/tradingview-pine-scripts works
TV Pine is a TradingView Pine Script toolkit for technical indicators and trading strategies, with shared Pine libraries, research backtests, and a separate SMC dashboard. The main user workflow is to select or develop a Pine indicator/strategy, use it on TradingView, and evaluate strategy ideas with backtests; the dashboard separately loads market candles, computes SMC structure, and presents charts and statistics. The graph also preserves the market-profile and order-flow branches. Relationships among unsampled Pine scripts are limited to documented capabilities; the source excerpts primarily establish the dashboard and selected backtest wiring.
Main entry points: app.py Dash Application · va_rule_backtest.py Value Area Backtest · smc_engine.py SMC Engine · indicators Technical Indicators
Components 24
Pine Trading
- Technical Indicators
indicators - SMC Structure
indicators/smc_market_structure.pine - Market Profile
indicators/market_profile.pine - Order Flow Tools
indicators/order_flow_bar.pine - Other Indicators
indicators - Trading Strategies
strategies/smc_strategy.pine
Pine Libraries
- SMC Core
libraries/smc_core.pine - Market Profile Core
libraries/market_profile_core.pine - Order Flow Core
libraries/order_flow_core.pine
Backtest Research
- Strategy Backtests
backtests/smc_123/smc_123_backtest.mjs - Value Area Backtest
backtests/va_rule/va_rule_backtest.py - Backtest Data Loader
backtests/common/data.py - Profile Calculator
backtests/common/market_profile.py - Research Results
backtests
SMC Dashboard
- Dash Application
python/app.py - Chart Controls
python/components/controls.py - Candle Queries
python/db.py - SMC Engine
python/smc_engine.py - Chart Renderer
python/components/chart_view.py - Statistics Panel
python/components/stats_panel.py
Market Data
- Market Data DB
Other components
- Trader / Developer
- TradingView
- Dashboard User
Connections 23
- Trader / Developer → Technical Indicators: develops or selects
README.md - Trader / Developer → Trading Strategies: develops or selects
README.md - Technical Indicators → TradingView: runs on
README.md - Trading Strategies → TradingView: runs on
README.md - SMC Structure → SMC Core: uses core
- Market Profile → Market Profile Core: uses core
- Order Flow Tools → Order Flow Core: uses core
- Trader / Developer → Strategy Backtests: runs research
README.md - Trader / Developer → Value Area Backtest: runs research
README.md - Strategy Backtests → Research Results: writes results
backtests/smc_123/smc_123_backtest.mjs - Value Area Backtest → Backtest Data Loader: loads candles
backtests/va_rule/va_rule_backtest.py - Value Area Backtest → Profile Calculator: builds profiles
backtests/va_rule/va_rule_backtest.py - Backtest Data Loader → Market Data DB: queries candles
backtests/common/data.py - Value Area Backtest → Research Results: writes results
backtests/va_rule/va_rule_backtest.py - Dashboard User → Dash Application: uses dashboard
python/app.py - Dash Application → Chart Controls: renders controls
python/app.py - Dash Application → Candle Queries: queries data
python/app.py - Candle Queries → Market Data DB: queries candles
python/db.py - Dash Application → SMC Engine: computes structure
python/app.py - Dash Application → Chart Renderer: builds chart
python/app.py - Dash Application → Statistics Panel: builds statistics
python/app.py - Chart Renderer → SMC Engine: renders results
python/components/chart_view.py - Statistics Panel → SMC Engine: summarizes results
python/components/stats_panel.py