How to create an Indicator in TradingView | Pine Script | Stock Market | Straddle | Strangle
Автор: Mayank Vishwakarma
Загружено: 2025-06-07
Просмотров: 296
✅ Pine Script (v5) – Custom LTP Sum Indicator
Pinescript : -
//@version=5
indicator("Sum of Two Symbols (LTP)", overlay=false)
// User input for two symbols
symbol1 = input.symbol("NSE:RELIANCE", "Symbol 1")
symbol2 = input.symbol("NSE:TCS", "Symbol 2")
// Requesting close (LTP) of both symbols
ltp1 = request.security(symbol1, timeframe.period, close)
ltp2 = request.security(symbol2, timeframe.period, close)
// Sum of LTPs
ltp_sum = ltp1 + ltp2
// Plot the combined value
plot(ltp_sum, title="Sum of LTPs", color=color.blue, linewidth=2)
📝 How It Works:
You can enter any two symbols from NSE, NYSE, NASDAQ, etc.
The close is fetched using request.security() which gives you LTP on that timeframe.
The sum is calculated and plotted as a line.
📈 How to Use in TradingView:
Open TradingView.
Go to Pine Editor (bottom panel).
Paste the above code.
Click "Add to Chart".
The indicator will show the sum of the LTPs as a single line in a new pane.
Learn how to create a custom indicator in TradingView to visualize straddle and strangle option premiums like a pro! In this step-by-step tutorial, we’ll combine multiple strike prices and plot the total premium as a single line using Pine Script v5.
Whether you're a beginner or advanced trader, this video will help you build your own TradingView chart indicator for analyzing option strategies in real time.
🔧 What You'll Learn:
How to use request.security() in Pine Script
How to fetch option premiums from multiple strikes
Plotting combined premiums for straddle/strangle
Tips to customize your own strategy indicators
📈 Works for:
Bank Nifty, Nifty, Stocks
Weekly & Monthly Expiries
Intraday or Swing Options Analysis
👉 Don’t forget to LIKE, COMMENT, and SUBSCRIBE for more trading tech tutorials!
#TradingView #Straddle #Strangle #OptionsTrading #PineScript #TradingIndicator #BankNifty #NiftyOptions #AlgoTrading

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: