OPEN-SOURCE SCRIPT

PnL Monitor

311
The PnL Monitor is a customizable tool designed to help traders track the Profit and Loss (PnL) of up to 20 currency pairs or assets in real-time. This script provides a clear and organized table that displays the entry price, and PnL percentage for each pair, making it an essential tool for monitoring open positions or tracking potential trades.

Key Features:
Multi-Asset Tracking:
Monitor up to 20 currency pairs or assets simultaneously. Simply input the pair symbol and your entry price, and the script will calculate the PnL in real-time.

Dynamic Table Positioning:
Choose where the table appears on your chart with the Table Position input. Options include:


  • Top Left
  • Top Right
  • Bottom Left
  • Bottom Right



Real-Time PnL Calculation:
The script fetches the current price of each pair and calculates the PnL percentage based on your entry price. Positive PnL is highlighted in green, while negative PnL is highlighted in red.

Exchange and Pair Separation:
The script automatically separates the exchange name (if provided) from the pair symbol, making it easier to identify the source of the data.

Customizable Inputs:

Add or remove pairs as needed.
Leave the price field blank for pairs you don’t want to track.



How to Use:
Input Your Pairs:
In the script settings, input the symbol of the pair (e.g., NASDAQ:AAPL or BTCUSD) and your entry price. Leave the price field blank for pairs you don’t want to track.

Choose Table Position:
Select where you want the table to appear on your chart.

Monitor PnL:
The table will automatically update with the current price and PnL percentage for each pair.

Why Use This Script?
Efficiency: Track multiple pairs in one place without switching charts.

Clarity: Easily identify profitable and losing positions at a glance.

Flexibility: Customize the table to fit your trading style and preferences.

Ideal For:
Forex, crypto, and stock traders managing multiple positions.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.