OPEN-SOURCE SCRIPT
Telah dikemas kini Simple Leveraged PnL

This script shows your live trade PnL, ROE, R:R ratio, margin, leverage, entry, TP, and SL directly on the chart.
It draws:
Green/red zones for your Take Profit and Stop Loss ranges.
A pinned info card (movable to any corner of the chart) showing all key trade details in one place.
You can fully customize:
Card position (top/middle/bottom × left/middle/right)
Text size, colors, and background
Zone transparency
It works for both Long and Short positions and updates in real time.
It draws:
Green/red zones for your Take Profit and Stop Loss ranges.
A pinned info card (movable to any corner of the chart) showing all key trade details in one place.
You can fully customize:
Card position (top/middle/bottom × left/middle/right)
Text size, colors, and background
Zone transparency
It works for both Long and Short positions and updates in real time.
Nota Keluaran
This script shows your live trade PnL, ROE, R:R ratio, margin, leverage, entry, TP, and SL directly on the chart.It draws:
Green/red zones for your Take Profit and Stop Loss ranges.
A pinned info card (movable to any corner of the chart) showing all key trade details in one place.
You can fully customize:
Card position (top/middle/bottom × left/middle/right)
Text size, colors, and background
Zone transparency
It works for both Long and Short positions and updates in real time.
Nota Keluaran
This script shows your live trade PnL, ROE, R:R ratio, margin, leverage, entry, TP, and SL directly on the chart.It draws:
Green/red zones for your Take Profit and Stop Loss ranges.
A pinned info card (movable to any corner of the chart) showing all key trade details in one place.
You can fully customize:
Card position (top/middle/bottom × left/middle/right)
Text size, colors, and background
Zone transparency
It works for both Long and Short positions and updates in real time.
Nota Keluaran
This script shows your live trade PnL, ROE, R:R ratio, margin, leverage, entry, TP, and SL directly on the chart.It draws:
Green/red zones for your Take Profit and Stop Loss ranges.
A pinned info card (movable to any corner of the chart) showing all key trade details in one place.
You can fully customize:
Card position (top/middle/bottom × left/middle/right)
Text size, colors, and background
Zone transparency
It works for both Long and Short positions and updates in real time.
Nota Keluaran
Change:Fixed profit/loss box color logic for short positions.
Details:
Previously, the box colors were flipped for shorts:
Green (profit) was placed above entry,
Red (loss) was placed below entry,
which visually misrepresented short trades.
Now fixed:
Green = profit (always below entry for shorts)
Red = loss (always above entry for shorts)
Colors no longer depend on position side — only on PnL meaning.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.