Inside Bar CandleThis indicator is designed to identify Inside Bar candles that break out or break down in relation to the New Week Opening Gap (NWOG) and the associated Premium and Discount Zones. It combines price action analysis with the NWOG framework to highlight key trading opportunities.
Key Features
Inside Bar Detection:
An Inside Bar is a candlestick pattern where the high is lower than the high of the previous candle, and the low is higher than the low of the previous candle.
This pattern indicates a period of market consolidation and potential for a breakout or breakdown.
NWOG (New Week Opening Gap):
The NWOG is defined as the price gap between Friday's close and Monday's open.
It is plotted as two horizontal lines:
NWOG High (top of the gap).
NWOG Low (bottom of the gap).
Premium and Discount Zones:
The NWOG range is divided into two zones:
Premium Zone: The area above the midpoint of the NWOG range.
Discount Zone: The area below the midpoint of the NWOG range.
These zones help identify whether the market is in a favorable area for buying or selling.
Breakout and Breakdown Logic:
Breakout:
Inside Bar candle closes above the NWOG High.
Candle must open in the Premium Zone.
Breakdown:
Inside Bar candle closes below the NWOG Low.
Candle must open in the Discount Zone.
Visual Signals:
Breakout Signals: Small green dots plotted above bars in the Premium Zone.
Breakdown Signals: Small red dots plotted below bars in the Discount Zone.
Shaded areas on the chart represent the Premium (green) and Discount (blue) zones.
Alerts:
Configurable alerts notify traders when a valid breakout or breakdown is detected.
How to Use
Trend Continuation or Reversal:
Use the breakout signals in the Premium Zone to confirm bullish trends or reversals.
Use the breakdown signals in the Discount Zone to confirm bearish trends or reversals.
Trade Setup:
Look for Inside Bars forming near or within the NWOG and wait for a breakout or breakdown signal.
Use the zones to evaluate the trade's risk-to-reward potential:
Premium Zone: Favor selling or avoiding long trades.
Discount Zone: Favor buying or avoiding short trades.
Clean Chart Design:
Small signal dots and shaded zones keep the chart clean and easy to interpret.
Advantages
Zone-Specific Signals:
Reduces noise by only highlighting relevant price action around the NWOG.
Price Action and Zone Confluence:
Combines Inside Bar breakout logic with NWOG zones for higher probability signals.
Custom Alerts:
Alerts ensure traders are notified of potential trade setups without constantly monitoring the chart.
This indicator is ideal for traders looking to leverage price action patterns within a structured market framework like NWOG while maintaining a clean and actionable chart view. Let me know if you'd like further refinements!
Chart-Muster
My scriptThree Step Future-Trend by BigBeluga is a forward-looking trend analysis tool designed to project potential future price direction based on historical periods. This indicator aggregates data from three consecutive periods, using price averages and delta volume analysis to forecast trend movement and visualize it on the chart with a projected trend line and volume metrics.
Custom Strategy: Supertrend + RSI + EMA### **Indicator Description: Custom Strategy - Supertrend + RSI + EMA**
यह इंडिकेटर तीन पॉपुलर इंडिकेटर्स (Supertrend, RSI, और EMA) को मिलाकर बनाया गया है। इसका उद्देश्य यह है कि यह केवल उन्हीं परिस्थितियों में **Buy** और **Sell** सिग्नल जनरेट करे, जब तीनों इंडिकेटर्स एक साथ सकारात्मक (Buy) या नकारात्मक (Sell) संकेत दें।
---
### **इंडिकेटर के मुख्य घटक:**
1. **Supertrend:**
- Supertrend एक ट्रेंड-फॉलोइंग इंडिकेटर है जो प्राइस की दिशा के अनुसार ट्रेंड की पहचान करता है।
- अगर कैंडल Supertrend की नीचे वाली रेखा (Support Line) से ऊपर बंद हो, तो यह **Buy** सिग्नल देता है।
- अगर कैंडल Supertrend की ऊपर वाली रेखा (Resistance Line) से नीचे बंद हो, तो यह **Sell** सिग्नल देता है।
2. **RSI (Relative Strength Index):**
- RSI का उपयोग ओवरबॉट और ओवरसोल्ड कंडीशन की पहचान के लिए किया जाता है।
- अगर RSI की वैल्यू 50 से ऊपर हो, तो इसका मतलब प्राइस में बुलिश मूवमेंट है (**Buy Signal**)।
- अगर RSI की वैल्यू 50 से नीचे हो, तो इसका मतलब प्राइस में बेयरिश मूवमेंट है (**Sell Signal**)।
3. **EMA (Exponential Moving Average - 50):**
- EMA (50) एक पॉपुलर मूविंग एवरेज है जो पिछले 50 कैंडल्स का वेटेड एवरेज लेता है।
- अगर प्राइस EMA (50) से ऊपर है, तो यह **Buy Signal** दर्शाता है।
- अगर प्राइस EMA (50) से नीचे है, तो यह **Sell Signal** दर्शाता है।
---
### **Buy और Sell सिग्नल कब जनरेट होते हैं?**
- **Buy Signal:**
जब तीनों कंडीशन्स सही हों:
1. प्राइस Supertrend की सपोर्ट लाइन से ऊपर हो।
2. RSI वैल्यू 50 से ऊपर हो।
3. प्राइस EMA (50) से ऊपर हो।
- **Sell Signal:**
जब तीनों कंडीशन्स सही हों:
1. प्राइस Supertrend की रेजिस्टेंस लाइन से नीचे हो।
2. RSI वैल्यू 50 से नीचे हो।
3. प्राइस EMA (50) से नीचे हो।
---
### **इंडिकेटर की विशेषताएं:**
- **सटीक सिग्नल जनरेशन:**
- इंडिकेटर केवल मजबूत और भरोसेमंद सिग्नल्स देता है, क्योंकि यह तीन अलग-अलग इंडिकेटर्स को मिलाकर काम करता है।
- **Buy और Sell सिग्नल्स के लिए एरो प्लॉट:**
- चार्ट पर ग्रीन एरो (BUY) और रेड एरो (SELL) दिखाए जाते हैं।
- **EMA लाइन प्लॉट:**
- चार्ट पर EMA (50) को भी विज़ुअल रूप से दिखाया गया है।
- **पृष्ठभूमि हाईलाइटिंग:**
- जब Buy या Sell सिग्नल जनरेट होता है, तब चार्ट की पृष्ठभूमि को हल्के हरे (Buy Zone) या लाल (Sell Zone) रंग से हाईलाइट किया जाता है।
---
### **इंडिकेटर के उपयोग के लाभ:**
1. यह उन ट्रेडर्स के लिए उपयोगी है जो **ट्रेंड-फॉलोइंग स्ट्रेटजी** अपनाते हैं।
2. एक ही चार्ट पर तीनों इंडिकेटर्स को मर्ज करके एक स्पष्ट और सटीक सिग्नल प्राप्त करना।
3. अधिक भरोसेमंद ट्रेडिंग निर्णय लेने में मदद करता है।
---
### **कैसे उपयोग करें?**
1. इंडिकेटर को TradingView पर अपने चार्ट में ऐड करें।
2. Buy या Sell सिग्नल जनरेट होने पर ट्रेड एंट्री लें।
3. अपनी ट्रेडिंग स्ट्रेटजी के अनुसार स्टॉप-लॉस और टारगेट सेट करें।
---
### **Disclaimer (अस्वीकरण):**
यह इंडिकेटर केवल शैक्षिक उद्देश्यों के लिए है। इसका उपयोग करने से पहले अपनी रिसर्च करें और उचित जोखिम प्रबंधन अपनाएं। ट्रेडिंग में नुकसान का जोखिम हमेशा होता है।
---
अगर आपको किसी और विवरण की आवश्यकता हो, तो बताएं! 😊
ODR/PDR in Prices@DrGirishSawhneyThis indicator guide us about the recent rally of minimum 20% in any given script with consecutive green candles . the lowest point of green candle gives the buy signal and the highest point of green candle gives the sell or exit signal.
Opening Candle High/Low with Time Zone and Minute Offset
Title: Opening Candle High/Low with Time Zone and Minute Offset
Description:
The Opening Candle High/Low with Time Zone and Minute Offset indicator is a versatile tool that highlights the high and low of the first candle of the trading session, adjusted for your preferred time zone and minute offset. It is particularly useful for traders who focus on opening ranges as key reference points for their trading strategies.
---
Features:
1. Time Zone and Minute Adjustment:
- Allows customization of the start time by applying a time zone offset (in hours) and a minute offset.
- Ideal for traders operating in different time zones or trading sessions that don't align with midnight UTC.
2. Dynamic First Candle Detection:
- Automatically captures the high and low of the first candle after the adjusted time.
- Resets daily, ensuring accurate levels for each new trading session.
3. Visual Representation:
- Plots the high and low levels of the first candle directly on the chart for easy reference.
- Uses distinct colors (green for the high and red for the low) and adjustable line widths for clarity.
4. Simplicity and Versatility:
- Works across all markets and timeframes, providing essential information for opening range breakout strategies, support/resistance analysis, or session-based trading.
---
How It Works:
1. Time Adjustment:
- The indicator adjusts the current chart time by applying the user-defined hour and minute offsets.
- This ensures the "opening candle" aligns with your specific trading session requirements.
2. First Candle Detection:
- When the adjusted time matches the start of a new day (midnight with offsets), the indicator captures the high and low of the first candle.
- These values are stored and remain static throughout the trading day.
3. Plotting:
- The high and low levels of the opening candle are plotted on the chart, providing visual reference points for traders.
---
Use Case:
- This indicator is ideal for traders who rely on the opening range of a session for planning trades, such as breakout or reversal strategies.
- It can also serve as a key tool for identifying significant price levels in session-based trading.
Simplify your trading analysis and align your strategy with this customizable and intuitive indicator.
Longest Candles HighlighterDescription:
The Longest Candles Highlighter is a simple yet effective tool that identifies and highlights candles with significant price ranges. By visually marking candles that meet specific size criteria, this indicator helps traders quickly spot high-volatility moments or significant market moves on the chart.
Features:
1. Customizable Candle Range:
- Define the minimum and maximum candle size in pips using input fields.
- Tailor the indicator to highlight candles that are most relevant to your trading strategy.
2. Flexible for Different Markets:
- Automatically adjusts pip calculation based on the instrument type (Forex or non-Forex).
- Accounts for differences in pip values, such as the 0.01 pip for JPY pairs in Forex.
3. Visual Highlighting:
- Highlights qualifying candles with a customizable background color for easy identification.
- The default color is red, but you can choose any color to match your chart theme.
4. Precision and Efficiency:
- Quickly scans and identifies candles that meet your criteria, saving you time in analyzing charts.
- Works seamlessly across all timeframes and asset classes.
How It Works:
- The indicator calculates the range of each candle in pips by subtracting the low from the high and dividing by the appropriate pip value.
- It checks whether the candle's size falls within the user-defined minimum and maximum pip range.
- If the conditions are met, the background of the candle is highlighted with the specified color, drawing your attention to significant price movements.
Use Case:
- This indicator is ideal for identifying key market moments, such as breakouts, volatility spikes, or significant price movements.
- Traders can use it to quickly locate large candles on any chart, aiding in technical analysis and strategy development.
This tool simplifies the process of spotting important candles, empowering traders to make faster and more informed trading decisions.
Custom Percent Pullback LevelThis script takes a stock's current day low and current day high and lets you set a custom pullback level that you can then set an alert for or use as an indicator if the stock is still bullish or bearish.
This can be useful for momentum runners as you may want to see only a set % (default is 50%) pullback in order to have a good chance for continuation. With the alert option you can set the percentage pullback you'd like to see in order to get eyes back on the stock
Gap Reversal SignalsThe Gap Reversal Signals Indicator is a minimalist tool designed to identify and highlight key price action signals.
This indicator provides traders with actionable insights by plotting clean and unobtrusive red and green dots on the chart, ensuring the focus remains on critical price movements.
Gap-Up Reversal Signal (Green Dot):
A green dot is plotted below a candle when:
The candle opens above the previous candle's close (gap up).
Gap-Down Reversal Signal (Red Dot):
A red dot is plotted above a candle when:
The candle opens below the previous candle's close (gap down).
Alerts:
Alerts can be set up to notify the user when:
A gap-up reversal (green dot) is detected.
A gap-down reversal (red dot) is detected.
Custom Price Red Line IndicatorCustom Price Red Line Indicator is a tool used in trading platforms to visually represent key price levels on a chart. This indicator typically draws a red line at a specific price, which can serve as a threshold or a level of interest, such as a resistance or support level. It is customizable to allow traders to set the price at which the red line will appear, making it useful for highlighting critical price points that may signal potential trade entries or exits.
Key Features:
• Customizable Price Level: Set the exact price where the red line will be drawn.
• Visual Signal: The red line acts as a visual aid to indicate important price levels.
• Alerts: Traders can set alerts when the price crosses the red line to track market movements.
• Trend Analysis: The red line can represent key support, resistance, or psychological price levels for trend analysis.
This indicator can be used in various timeframes and across different asset classes to assist traders in their technical analysis.
My script// © fxscoopy
//@version=6
indicator("My script")
plot(close)
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
1-Hour Signal Generator1Hr Breakout methode. simple system. lets see the esult. R:R is 1:1. might not be a sounds good. lets see. this is for testing only.
thanks to all.
Viper Trade (Heikin Ashi Al-Sat ) Hakan Dicel//@version=5
indicator("Güncel Al/Sat Sinyalleri - Heikin Ashi", overlay=true)
// Heikin Ashi Mumlarının Hesaplanması
var float ha_open = na
ha_close = (open + high + low + close) / 4
ha_open := na(ha_open ) ? (open + close) / 2 : (ha_open + ha_close ) / 2
ha_high = math.max(high, math.max(ha_open, ha_close))
ha_low = math.min(low, math.min(ha_open, ha_close))
// Parametreler
length = input.int(14, title="Hareketli Ortalama Periyodu")
source = ha_close // Heikin Ashi kapanış fiyatını kullanıyoruz
// Hareketli Ortalama Hesaplama
sma_line = ta.sma(source, length)
// Al/Sat Şartları
buy_signal = ta.crossover(source, sma_line) // Fiyat SMA'yı yukarı keserse al
sell_signal = ta.crossunder(source, sma_line) // Fiyat SMA'yı aşağı keserse sat
// Alarmlar için Şartlar
alertcondition(buy_signal, title="AL Sinyali", message="AL Sinyali Geldi! Fiyat: {{close}}")
alertcondition(sell_signal, title="SAT Sinyali", message="SAT Sinyali Geldi! Fiyat: {{close}}")
// Grafik Üzerinde Görselleştirme
plot(sma_line, color=color.blue, title="Hareketli Ortalama", linewidth=2)
plotshape(series=buy_signal, title="Al", location=location.belowbar, color=color.green, style=shape.labelup, text="Al", size=size.small)
plotshape(series=sell_signal, title="Sat", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sat", size=size.small)
Güncel Al/Sat Sinyalleri - Heikin Ashi Hakan Dicel//@version=5
indicator("Güncel Al/Sat Sinyalleri - Heikin Ashi", overlay=true)
// Heikin Ashi Mumlarının Hesaplanması
var float ha_open = na
ha_close = (open + high + low + close) / 4
ha_open := na(ha_open ) ? (open + close) / 2 : (ha_open + ha_close ) / 2
ha_high = math.max(high, math.max(ha_open, ha_close))
ha_low = math.min(low, math.min(ha_open, ha_close))
// Parametreler
length = input.int(14, title="Hareketli Ortalama Periyodu")
source = ha_close // Heikin Ashi kapanış fiyatını kullanıyoruz
// Hareketli Ortalama Hesaplama
sma_line = ta.sma(source, length)
// Al/Sat Şartları
buy_signal = ta.crossover(source, sma_line) // Fiyat SMA'yı yukarı keserse al
sell_signal = ta.crossunder(source, sma_line) // Fiyat SMA'yı aşağı keserse sat
// Alarmlar için Şartlar
alertcondition(buy_signal, title="AL Sinyali", message="AL Sinyali Geldi! Fiyat: {{close}}")
alertcondition(sell_signal, title="SAT Sinyali", message="SAT Sinyali Geldi! Fiyat: {{close}}")
// Grafik Üzerinde Görselleştirme
plot(sma_line, color=color.blue, title="Hareketli Ortalama", linewidth=2)
plotshape(series=buy_signal, title="Al", location=location.belowbar, color=color.green, style=shape.labelup, text="Al", size=size.small)
plotshape(series=sell_signal, title="Sat", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sat", size=size.small)
vipertrade( Al/Sat Sinyalleri - Heikin Ashi)hakandicel//@version=5
indicator("Güncel Al/Sat Sinyalleri - Heikin Ashi", overlay=true)
// Heikin Ashi Mumlarının Hesaplanması
var float ha_open = na
ha_close = (open + high + low + close) / 4
ha_open := na(ha_open ) ? (open + close) / 2 : (ha_open + ha_close ) / 2
ha_high = math.max(high, math.max(ha_open, ha_close))
ha_low = math.min(low, math.min(ha_open, ha_close))
// Parametreler
length = input.int(14, title="Hareketli Ortalama Periyodu")
source = ha_close // Heikin Ashi kapanış fiyatını kullanıyoruz
// Hareketli Ortalama Hesaplama
sma_line = ta.sma(source, length)
// Al/Sat Şartları
buy_signal = ta.crossover(source, sma_line) // Fiyat SMA'yı yukarı keserse al
sell_signal = ta.crossunder(source, sma_line) // Fiyat SMA'yı aşağı keserse sat
// Alarmlar için Şartlar
alertcondition(buy_signal, title="AL Sinyali", message="AL Sinyali Geldi! Fiyat: {{close}}")
alertcondition(sell_signal, title="SAT Sinyali", message="SAT Sinyali Geldi! Fiyat: {{close}}")
// Grafik Üzerinde Görselleştirme
plot(sma_line, color=color.blue, title="Hareketli Ortalama", linewidth=2)
plotshape(series=buy_signal, title="Al", location=location.belowbar, color=color.green, style=shape.labelup, text="Al", size=size.small)
plotshape(series=sell_signal, title="Sat", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sat", size=size.small)
Güncel Al/Sat Sinyalleri - Heikin Ashi hakandicel//@version=5
indicator("Güncel Al/Sat Sinyalleri - Heikin Ashi", overlay=true)
// Heikin Ashi Mumlarının Hesaplanması
var float ha_open = na
ha_close = (open + high + low + close) / 4
ha_open := na(ha_open ) ? (open + close) / 2 : (ha_open + ha_close ) / 2
ha_high = math.max(high, math.max(ha_open, ha_close))
ha_low = math.min(low, math.min(ha_open, ha_close))
// Parametreler
length = input.int(14, title="Hareketli Ortalama Periyodu")
source = ha_close // Heikin Ashi kapanış fiyatını kullanıyoruz
// Hareketli Ortalama Hesaplama
sma_line = ta.sma(source, length)
// Al/Sat Şartları
buy_signal = ta.crossover(source, sma_line) // Fiyat SMA'yı yukarı keserse al
sell_signal = ta.crossunder(source, sma_line) // Fiyat SMA'yı aşağı keserse sat
// Alarmlar için Şartlar
alertcondition(buy_signal, title="AL Sinyali", message="AL Sinyali Geldi! Fiyat: {{close}}")
alertcondition(sell_signal, title="SAT Sinyali", message="SAT Sinyali Geldi! Fiyat: {{close}}")
// Grafik Üzerinde Görselleştirme
plot(sma_line, color=color.blue, title="Hareketli Ortalama", linewidth=2)
plotshape(series=buy_signal, title="Al", location=location.belowbar, color=color.green, style=shape.labelup, text="Al", size=size.small)
plotshape(series=sell_signal, title="Sat", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sat", size=size.small)
viper-trade Al/Sat Sinyalleri - Heikin Ashi Hakan Dicel//@version=5
indicator("Güncel Al/Sat Sinyalleri - Heikin Ashi", overlay=true)
// Heikin Ashi Mumlarının Hesaplanması
var float ha_open = na
ha_close = (open + high + low + close) / 4
ha_open := na(ha_open ) ? (open + close) / 2 : (ha_open + ha_close ) / 2
ha_high = math.max(high, math.max(ha_open, ha_close))
ha_low = math.min(low, math.min(ha_open, ha_close))
// Parametreler
length = input.int(14, title="Hareketli Ortalama Periyodu")
source = ha_close // Heikin Ashi kapanış fiyatını kullanıyoruz
// Hareketli Ortalama Hesaplama
sma_line = ta.sma(source, length)
// Al/Sat Şartları
buy_signal = ta.crossover(source, sma_line) // Fiyat SMA'yı yukarı keserse al
sell_signal = ta.crossunder(source, sma_line) // Fiyat SMA'yı aşağı keserse sat
// Alarmlar için Şartlar
alertcondition(buy_signal, title="AL Sinyali", message="AL Sinyali Geldi! Fiyat: {{close}}")
alertcondition(sell_signal, title="SAT Sinyali", message="SAT Sinyali Geldi! Fiyat: {{close}}")
// Grafik Üzerinde Görselleştirme
plot(sma_line, color=color.blue, title="Hareketli Ortalama", linewidth=2)
plotshape(series=buy_signal, title="Al", location=location.belowbar, color=color.green, style=shape.labelup, text="Al", size=size.small)
plotshape(series=sell_signal, title="Sat", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sat", size=size.small)
VİPER_TRADE( Al/Sat Sinyalleri - Heikin Ashi) HAKAN_DİCEL//@version=5
indicator("Güncel Al/Sat Sinyalleri - Heikin Ashi", overlay=true)
// Heikin Ashi Mumlarının Hesaplanması
var float ha_open = na
ha_close = (open + high + low + close) / 4
ha_open := na(ha_open ) ? (open + close) / 2 : (ha_open + ha_close ) / 2
ha_high = math.max(high, math.max(ha_open, ha_close))
ha_low = math.min(low, math.min(ha_open, ha_close))
// Parametreler
length = input.int(14, title="Hareketli Ortalama Periyodu")
source = ha_close // Heikin Ashi kapanış fiyatını kullanıyoruz
// Hareketli Ortalama Hesaplama
sma_line = ta.sma(source, length)
// Al/Sat Şartları
buy_signal = ta.crossover(source, sma_line) // Fiyat SMA'yı yukarı keserse al
sell_signal = ta.crossunder(source, sma_line) // Fiyat SMA'yı aşağı keserse sat
// Alarmlar için Şartlar
alertcondition(buy_signal, title="AL Sinyali", message="AL Sinyali Geldi! Fiyat: {{close}}")
alertcondition(sell_signal, title="SAT Sinyali", message="SAT Sinyali Geldi! Fiyat: {{close}}")
// Grafik Üzerinde Görselleştirme
plot(sma_line, color=color.blue, title="Hareketli Ortalama", linewidth=2)
plotshape(series=buy_signal, title="Al", location=location.belowbar, color=color.green, style=shape.labelup, text="Al", size=size.small)
plotshape(series=sell_signal, title="Sat", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sat", size=size.small)
VİPER_TRADE( Al/Sat Sinyalleri - Heikin Ashi ) HAKAN_DİCEL//@version=5
indicator("Güncel Al/Sat Sinyalleri - Heikin Ashi", overlay=true)
// Heikin Ashi Mumlarının Hesaplanması
var float ha_open = na
ha_close = (open + high + low + close) / 4
ha_open := na(ha_open ) ? (open + close) / 2 : (ha_open + ha_close ) / 2
ha_high = math.max(high, math.max(ha_open, ha_close))
ha_low = math.min(low, math.min(ha_open, ha_close))
// Parametreler
length = input.int(14, title="Hareketli Ortalama Periyodu")
source = ha_close // Heikin Ashi kapanış fiyatını kullanıyoruz
// Hareketli Ortalama Hesaplama
sma_line = ta.sma(source, length)
// Al/Sat Şartları
buy_signal = ta.crossover(source, sma_line) // Fiyat SMA'yı yukarı keserse al
sell_signal = ta.crossunder(source, sma_line) // Fiyat SMA'yı aşağı keserse sat
// Alarmlar için Şartlar
alertcondition(buy_signal, title="AL Sinyali", message="AL Sinyali Geldi! Fiyat: {{close}}")
alertcondition(sell_signal, title="SAT Sinyali", message="SAT Sinyali Geldi! Fiyat: {{close}}")
// Grafik Üzerinde Görselleştirme
plot(sma_line, color=color.blue, title="Hareketli Ortalama", linewidth=2)
plotshape(series=buy_signal, title="Al", location=location.belowbar, color=color.green, style=shape.labelup, text="Al", size=size.small)
plotshape(series=sell_signal, title="Sat", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sat", size=size.small)
VİPER_TRADE( Destek ve Direnç) HAKAN_DİCEL/@version=5
indicator("Kısa Vadeli Destek ve Direnç (Swing High/Low)", overlay=true)
// Parametreler
length = input.int(3, title="Destek/Direnç Uzunluğu (Daha Hızlı için 3 veya 5 Seçin)")
// Yerel Zirve ve Dip Tespiti
high_point = ta.pivothigh(high, length, length)
low_point = ta.pivotlow(low, length, length)
// Destek ve Direnç Çizgileri
plot(high_point ? high : na, style=plot.style_cross, color=color.red, title="Direnç")
plot(low_point ? low : na, style=plot.style_cross, color=color.green, title="Destek")
Entry Price % Difference//@version=5
indicator("Entry Price % Difference", overlay=true)
// User input for entry price
entryPrice = input.float(title="Entry Price", defval=100.0, step=0.1)
// User inputs for profit and stop loss levels
profitLevel = input.float(title="Profit Level (%)", defval=10.0, step=0.1)
stopLossLevel = input.float(title="Stop Loss Level (%)", defval=-10.0, step=0.1)
// User input for USDT amount in the trade
usdtAmount = input.float(title="USDT Amount", defval=1000.0, step=1.0)
// User input for trade type (Long or Short)
tradeType = input.string(title="Trade Type", defval="Long", options= )
// User input for line styles and colors
profitLineStyle = input.string(title="Profit Line Style", defval="Dotted", options= )
profitLineColor = input.color(title="Profit Line Color", defval=color.green)
stopLossLineStyle = input.string(title="Stop Loss Line Style", defval="Dotted", options= )
stopLossLineColor = input.color(title="Stop Loss Line Color", defval=color.red)
// User input for fee percentage
feePercentage = input.float(title="Fee Percentage (%)", defval=0.1, step=0.01)
// Map line styles
profitStyle = profitLineStyle == "Solid" ? line.style_solid : profitLineStyle == "Dotted" ? line.style_dotted : line.style_dashed
stopLossStyle = stopLossLineStyle == "Solid" ? line.style_solid : stopLossLineStyle == "Dotted" ? line.style_dotted : line.style_dashed
// Calculate percentage difference
livePrice = close
percentDifference = tradeType == "Long" ? ((livePrice - entryPrice) / entryPrice) * 100 : ((entryPrice - livePrice) / entryPrice) * 100
// Calculate profit or loss
profitOrLoss = usdtAmount * (percentDifference / 100)
// Calculate fees and net profit or loss
feeAmount = usdtAmount * (feePercentage / 100)
netProfitOrLoss = profitOrLoss - feeAmount
// Display percentage difference, profit/loss, and fees as a single label following the current price
if bar_index == last_bar_index
labelColor = percentDifference >= 0 ? color.new(color.green, 80) : color.new(color.red, 80)
var label plLabel = na
if na(plLabel)
plLabel := label.new(bar_index + 1, livePrice + (livePrice * 0.005), str.tostring(percentDifference, "0.00") + "% " + "P/L: " + str.tostring(netProfitOrLoss, "0.00") + " USDT (Fee: " + str.tostring(feeAmount, "0.00") + ")",
style=label.style_label_down, color=labelColor, textcolor=color.white)
else
label.set_xy(plLabel, bar_index + 1, livePrice + (livePrice * 0.005))
label.set_text(plLabel, str.tostring(percentDifference, "0.00") + "% " + "P/L: " + str.tostring(netProfitOrLoss, "0.00") + " USDT (Fee: " + str.tostring(feeAmount, "0.00") + ")")
label.set_color(plLabel, labelColor)
// Calculate profit and stop loss levels
profitPrice = entryPrice * (1 + profitLevel / 100)
stopLossPrice = entryPrice * (1 + stopLossLevel / 100)
// Plot profit, stop loss, and entry price lines
line.new(x1=bar_index , y1=profitPrice, x2=bar_index, y2=profitPrice, color=profitLineColor, width=1, style=profitStyle)
line.new(x1=bar_index , y1=stopLossPrice, x2=bar_index, y2=stopLossPrice, color=stopLossLineColor, width=1, style=stopLossStyle)
line.new(x1=bar_index , y1=entryPrice, x2=bar_index, y2=entryPrice, color=color.blue, width=1, style=line.style_solid)
// Show percentage difference in the price scale
plot(percentDifference, title="% Difference on Price Scale", color=color.new(color.blue, 0), linewidth=0, display=display.price_scale)