Overview Triad Trade Matrix is an advanced multi-strategy indicator built using Pine Script v5. It is designed to simultaneously track and display key trading metrics for three distinct trading styles on a single chart:
Swing Trading (Swing Supreme): This mode captures longer-term trends and is designed for trades that typically span several days. It uses customizable depth and deviation parameters to determine swing signals.
Day Trading (Day Blaze): This mode focuses on intraday price movements. It generates signals that are intended to be executed within a single trading session. The parameters for depth and deviation are tuned to capture more frequent, shorter-term moves.
Scalping (Scalp Surge): This mode is designed for very short-term trades where quick entries and exits are key. It uses more sensitive parameters to detect rapid price movements suitable for scalping strategies.
Each trading style is represented by its own merged table that displays real-time metrics. The tables update automatically as new trading signals are generated.
Key Features Multi-Style Tracking:
Swing Supreme (Large): For swing trading; uses a purple theme. Day Blaze (Medium): For day trading; uses an orange theme. Scalp Surge (Small): For scalping; uses a green theme.
Real-Time Metrics: Each table displays key trade metrics including:
Entry Price: The price at which the trade was entered. Exit Price: The price at which the previous trade was exited. Position Size: Calculated as the account size divided by the entry price. Direction: Indicates whether the trade is “Up” (long) or “Down” (short). Time: The time when the trade was executed (formatted to hours and minutes). Wins/Losses: The cumulative number of winning and losing trades. Current Price & PnL: The current price on the chart and the profit/loss computed relative to the entry price.
Duration: The number of bars that the trade has been open. History Column: A merged summary column that shows the most recent trade’s details (entry, exit, and result).
Customizability:
Column Visibility: Users can toggle individual columns (Ticker, Timeframe, Entry, Exit, etc.) on or off according to their preference.
Appearance Settings: You can customize the table border width, frame color, header background, and text colors. History Toggle: The merged history column can be enabled or disabled.
Chart Markers: There is an option to show or hide chart markers (labels and lines) that indicate trade entries and exits on the chart.
Trade History Management:
The indicator maintains a rolling history (up to three recent trades per trading style) and displays the latest summary in the merged table. This history column provides a quick reference to recent performance.
How It Works Signal Generation & Trade Metrics Trade Entry/Exit Calculation: For each trading style, the indicator uses built-in functions (such as ta.lowestbars and ta.highestbars) to analyze price movements. Based on a customizable "depth" and "deviation" parameter, it determines the point of entry for a trade.
Swing Supreme: Uses larger depth/deviation values to capture swing trends. Day Blaze: Uses intermediate values for intraday moves. Scalp Surge: Uses tighter parameters to pick up rapid price changes.
Metrics Update: When a new trade signal is generated (i.e., when the trade entry price is updated), the indicator calculates: The current PnL as the difference between the current price and the entry price (or vice versa, depending on the trade direction). The duration as the number of bars since the trade was opened. The position size using the formula: accountSize / entryPrice.
History Recording: Each time a new trade is triggered (i.e., when the entry price is updated), a summary string is created (showing entry, exit, and win/loss status) and appended to the corresponding trade history array. The merged table then displays the latest summary from this history.
Table Display Merged Table Structure: Each trading style (Swing Supreme, Day Blaze, and Scalp Surge) is represented by a table that has 15 columns. The columns are:
Trade Type (e.g., Swing Supreme) Ticker Timeframe Entry Price Exit Price Position Size Direction Time of Entry Account Size Wins Losses Current Price Current PnL Duration (in bars) History (the latest trade summary)
User Customization: Through the settings panel, users can choose which columns to display. If a column is toggled off, its cells will remain blank, allowing traders to focus on the metrics that matter most to them.
Appearance & Themes: The table headers and cell backgrounds are customizable via color inputs. The trading style names are color-coded: Swing Supreme (Large): Uses a purple theme. Day Blaze (Medium): Uses an orange theme. Scalp Surge (Small): Uses a green theme.
How to Use the Indicator Add the Indicator to Your Chart: Once published, add "Triad Trade Matrix" to your TradingView chart.
Configure the Settings:
Adjust the Account Size to match your trading capital.
Use the Depth and Deviation inputs for each trading style to fine-tune the signal sensitivity.
Toggle the Chart Markers on if you want visual entry/exit markers on the chart.
Customize which columns are visible via the column visibility toggles.
Enable or disable the History Column to show the merged trade history in the table.
Adjust the appearance settings (colors, border width, etc.) to suit your chart background and preferences.
Interpret the Tables:
Swing Supreme: This table shows metrics for swing trades. Look for changes in entry price, PnL, and trade duration to monitor longer-term moves.
Day Blaze: This table tracks day trading activity.It will update more frequently, reflecting intraday trends.
Scalp Surge: This table is dedicated to scalping signals.Use it to see quick entry/exit data and rapid profit/loss changes.
The History column (if enabled) gives you a snapshot of the most recent trade (e.g., "E:123.45 X:124.00 Up Win").
Use allerts: The indicator includes alert condition for new trade entries(both long and short)for each trading style.
Summary: Triad Trade Matrix provides an robust,multi-dimensional view of your trading performance across swing trading, day trading, and scalping.
Best to be used whith my other indicators True low high Vma Ext_Adv_CustomTbl
This indicator is ideal for traders who wish to monitor multiple trading styles simultaneously, with a clear, technical, and real-time display of performance metrics.