نماذج فنيه
ol1ls scalp proHello, I’m Omar.
In the world of trading, it is essential to simplify the buying and selling process to reduce complexities and increase opportunities for profit. Therefore, I have developed an effective strategy based on analyzing price movements using price channels.
Strategy Conditions: This strategy operates when the price touches one of the channel’s edges, as this touch indicates a strong trading opportunity. When the price touches the upper boundary of the channel, it signals a selling opportunity, while a touch at the lower boundary indicates a buying opportunity.
By using this approach, traders can make more confident decisions, making it easier for them to achieve profits.
العربية:
مرحبًا، أنا عمر.
في عالم التداول، من الضروري تبسيط عملية البيع والشراء لتقليل التعقيدات وزيادة الفرص لتحقيق الأرباح. لذلك، قمت بتطوير استراتيجية فعّالة تعتمد على تحليل حركة السعر باستخدام قنوات الأسعار.
شروط الاستراتيجية: تعمل هذه الاستراتيجية عندما يلمس السعر أحد طرفي القناة، حيث تشير هذه اللمسة إلى فرصة قوية للتداول. عندما يلامس السعر الحد العلوي للقناة، يكون ذلك إشارة للبيع، بينما يشير اللمس عند الحد السفلي إلى فرصة للشراء.
باستخدام هذه الطريقة، يمكن للمتداولين اتخاذ قرارات أكثر ثقة، مما يسهل عليهم تحقيق الأرباح.
Open Interest - Nifty, BankNifty, SensexDescription: The Open Interest - Multi-Index Analysis indicator provides a powerful tool for traders seeking to gain deeper insights into market sentiment by analyzing Open Interest (OI) across multiple indices simultaneously. This script combines the OI data from Nifty, Bank Index, and Sensex, allowing users to monitor shifts in volume and open interest, which are essential indicators of market activity, accumulation, and distribution phases. The script is designed with flexibility in mind, enabling traders to fine-tune the display to meet their specific analytical needs.
Key Features and Customizations
Versatile Display Options :
Open Interest : View OI data in a traditional format to track absolute levels of open interest.
Open Interest Delta : Displays the change in OI from one bar to the next, helping to identify increases or decreases in market participation.
OI Delta x Relative Volume : Provides a hybrid metric by multiplying the OI delta with relative volume, useful for spotting significant OI shifts that coincide with volume spikes.
Open Interest RSI : Visualize OI using a Relative Strength Index (RSI) to track the strength or weakness of open interest trends, which may signal overbought or oversold conditions.
Customizable Data Sources :
Enable or disable OI data from Nifty, Bank Index, and Sensex independently to create an aggregate view or focus on specific indices.
This flexibility allows traders to focus on the markets most relevant to their trading strategies.
Threshold-Based Highlights for Large OI Changes :
Threshold Multiplier : Define a multiplier to adjust the sensitivity for identifying large OI increases or decreases.
Visual Highlights : Choose fluorescent colors (green for increases and red for decreases) to quickly spot substantial changes in OI that may indicate strong buying or selling pressure.
Threshold Lines : Optionally display threshold lines on the chart to set visual benchmarks for significant OI changes, helping to filter out noise and focus on meaningful movements.
Additional Technical Analysis Tools :
Exponential Moving Average (EMA) : Plot an EMA line for the adjusted OI values, allowing traders to track trends and potential reversals. The EMA length and color are customizable to fit individual preferences.
Open Interest RSI : Optionally plot an RSI based on the OI values, with customizable period length and color, offering a view of the relative strength of OI. Horizontal lines at 30, 50, and 70 levels provide benchmarks for oversold, neutral, and overbought conditions.
OHLC Values for Multi-Index Open Interest :
Combines OHLC values from selected indices (Nifty, BankNifty, Sensex) to create an aggregated OI candle view, which can be adjusted based on quote currency (INR or Index).
This unique aggregation allows a multi-dimensional look at OI trends, helping traders to interpret the collective behavior of these key indices.
Dynamic Color Coding :
The indicator uses conditional coloring based on large OI changes and open-close price dynamics to make trends easily recognizable.
Up-trend and down-trend colors are customizable, so traders can visually distinguish between positive and negative movements quickly.
How to Use
Monitor Market Sentiment : By observing the changes in Open Interest across multiple indices, traders can gain insights into market sentiment and identify potential breakout or breakdown scenarios.
Spot Potential Reversals : The inclusion of EMA and RSI lines helps identify trend reversals and overbought/oversold conditions, providing an additional layer for decision-making.
Identify High-Volume Movements : The OI Delta x Relative Volume option is particularly useful for spotting large moves that are backed by volume, which may indicate the beginning of a new trend or an imminent reversal.
This indicator is ideal for advanced traders and analysts looking to enhance their market analysis by combining Open Interest data with technical indicators and customizable display options. Tailor the settings to align with your trading strategy, and use the highlighted OI thresholds to focus on critical market shifts. Whether you’re monitoring the general market trend or looking for high-probability entries and exits, this multi-index OI indicator provides a robust tool for making informed trading decisions.
TCM OverboughtRelative Strength Index (RSI) + Stochastic Oscillator: combined
RSI-70+
Stochastic Oscillator-80+
Produces flag
Demand and Supply with Price actionThis indicator is made by "Dawn Forex Academy". I have added price action, demand and supply with FVG. This indicator may help us to identify the potential buy and sell zone after its breakout.
Cris0x7 - two consecutive engulfingCris0x7 - two consecutive engulfing
Explanation of Changes:
bullish_engulfing_signal and bearish_engulfing_signal now check for two consecutive engulfing pairs, meaning they look back over four candles.
The script identifies a "Buy" label (for bullish) and a "Sell" label (for bearish) when both conditions for two engulfing pairs are met.
This should work to detect and label four-candle patterns on the chart. Let me know if you need additional adjustments!
The Pattern-Synced Moving Average System (PSMA)Description:
The Pattern-Synced Moving Average System (PSMA) is a comprehensive trading indicator that combines the reliability of moving averages with automated candlestick pattern detection, real-time alerts, and dynamic risk management to enhance both trend-following and reversal strategies. The PSMA system integrates key elements of trend analysis and pattern recognition to provide users with configurable entry, stop-loss, and take-profit levels. It is designed for all levels of traders who seek to trade in alignment with market context, using signals from trend direction and established candlestick patterns.
Key Functional Components:
Multi-Type Moving Average:
Provides flexibility with multiple moving average options: SMA, EMA, WMA, and SMMA.
The selected moving average helps users determine market trend direction, with price positions relative to the MA acting as a trend confirmation.
Automatic Candlestick Pattern Detection:
Identifies pivotal patterns, including bullish/bearish engulfing and reversal signals.
Helps traders spot potential market turning points and adjust their strategies accordingly.
Configurable Entry, Stop-Loss, and Take-Profit:
Risk management is customizable through risk/reward ratios and risk tolerance settings.
Entry, stop-loss, and take-profit levels are automatically plotted when patterns appear, facilitating rapid trade decision-making with predefined exit points.
Higher Timeframe Trend Confirmation:
Optional feature to verify trend alignment on a higher timeframe (e.g., checking a daily trend on an intraday chart).
This added filter improves signal reliability by focusing on patterns aligned with the broader market trend.
Real-Time Alerts:
Alerts can be set for key pattern detections, allowing traders to respond promptly without constant chart monitoring.
How to Use PSMA:
Set Moving Average Preferences:
Choose the preferred moving average type and length based on your trading strategy. The MA acts as a foundational trend indicator, with price positions indicating potential uptrends (price above MA) or downtrends (price below MA).
Adjust Risk Management Settings:
Set a Risk/Reward Ratio for defining take-profit levels relative to the entry and stop-loss levels.
Modify the Risk Tolerance Percentage to adjust stop-loss placement, adding flexibility in managing trades based on market volatility.
Activate Higher Timeframe Confirmation (Optional):
Enable higher timeframe trend confirmation to filter out counter-trend trades, ensuring that detected patterns are in sync with the larger market trend.
Review Alerts and Trade Levels:
With PSMA’s real-time alerts, traders receive notifications for detected patterns without having to continuously monitor charts.
Visualized entry, stop-loss, and take-profit lines simplify trade execution by highlighting levels directly on the chart.
Execute Based on Entry and Exit Levels:
The entry line suggests the potential entry price once a bullish or bearish pattern is detected.
The stop-loss line is based on your set risk tolerance, establishing a predefined risk level.
The take-profit line is calculated according to your preferred risk/reward ratio, providing a clear profit target.
Example Strategy:
Ensure price is above or below the selected moving average to confirm trend direction.
Await a PSMA signal for a bullish or bearish pattern.
Review the plotted entry, stop-loss, and take-profit lines, and enter the trade if the setup aligns with your risk/reward criteria.
Activate alerts for continuous monitoring, allowing PSMA to notify you of emerging trade opportunities.
Release Notes:
Line Color and Style Customization: Customizable colors and line styles for entry, stop-loss, and take-profit levels.
Dynamic Trade Tracking: Tracks trade statistics, including total trades, win rate, and average P/L, displayed in the data window for comprehensive trade performance analysis.
Summary: The PSMA indicator is a powerful, user-friendly tool that combines trend detection, pattern recognition, and risk management into a cohesive system for improved trade decision-making. Suitable for stocks, forex, and futures, PSMA offers a unique blend of adaptability and precision, making it valuable for day traders and long-term investors alike. Enjoy this tool as it enhances your ability to execute timely, well-informed trades on TradingView.
6 Candle Rule Indicator BetaThe "6 Candle Rule" is a method used to identify trend reversals in price action by observing specific sequences of candlestick patterns over a span of six candles. Here's a quick breakdown:
1. **Sequence Analysis**: It involves looking at sequences of bullish (up) and bearish (down) candles over a six-candle period.
2. **Bullish Trend Reversal**: If, within those six candles, there are two consecutive bullish candles, then two bearish candles, followed by two more bullish candles, it signals a potential uptrend.
3. **Bearish Trend Reversal**: Conversely, if there are two consecutive bearish candles, then two bullish candles, followed by two more bearish candles, it signals a potential downtrend.
This pattern helps traders identify potential shifts in market direction by capturing the transitional movements that indicate a reversal of an existing trend.
Previous Day High and Low + Separators Daily/Weekly RTHDescription:
This script displays the high and low points from the previous trading day along with daily and weekly separators. It is designed to help traders quickly identify critical price levels and session breaks, which can provide insights into support and resistance zones based on past trading behavior.
Functionality and Usage
Previous Day High/Low: This indicator captures and marks the high and low of the previous day’s regular trading hours (RTH) and extends these lines into the current trading day. This allows traders to monitor how current prices interact with these previous levels, which often serve as key areas of support and resistance.
Daily/Weekly Separators:
Daily Separator: Marks the start of each new trading day with a vertical line. Users can customize the line color, width, and style (solid or dotted). The script also places labels showing the day of the week and date at the bottom of each separator for better readability.
Weekly Separator: Marks the start of each new trading week with a distinct vertical line to help traders quickly identify weekly sessions and evaluate price trends or consolidations over the week.
This indicator allows customization of colors and styles for the daily and weekly separators, as well as the previous day's high and low lines. It plots on a clean chart to avoid clutter and ensure clarity for quick reference and trading analysis.
Technical Specifications
Regular Trading Hours (RTH) Customization: The script includes adjustable RTH start and end times. The default values are set to 9:30 AM and 4:00 PM (local time).
UTC Offset: Traders can set a UTC offset to adapt the script to different time zones for accuracy in marking session changes.
Pivot Levels: This indicator automatically adjusts the pivot levels based on the chart’s timeframe, providing contextually relevant levels for intraday, daily, or weekly use.
Limitations and Considerations
Intended for Daily and Intraday Analysis: This script is best suited for daily and intraday trading due to its focus on previous day/session highs and lows. It may be less relevant for longer-term strategies.
Static Reference Lines: The previous day's high and low lines are static references, designed to remain at their initial values and only update at the start of a new day. The lines are not predictive and should be used alongside other indicators or strategies.
This script provides essential market structure information without replicating other public domain indicators. It uses clearly defined, original logic and avoids lookahead functions or unsupported data accesses. The combination of previous high/low levels and separators offers traders a straightforward yet powerful tool for tracking important price zones.
Long/Short Cointegration Z-ScoreThis indicator helps identify potential long and short trading opportunities between two correlated assets by calculating their Z-Score. It measures the spread between two assets (e.g., AAPL and MSFT) and applies a Z-Score threshold to highlight potential mean reversion signals. When the Z-Score crosses above the upper threshold, the assets may be overextended, indicating a short signal. When the Z-Score crosses below the lower threshold, a long signal may be implied.
SMC Order Block & Liquidity EntryThe SMC Order Block and Liquidity Trap Entry Strategy script uses Smart Money Concepts (SMC), which analyze institutional actions in the market, to assist traders in identifying high-probability trades. In order to help traders match their entry with institutional activity, this script highlights important regions of interest, including order blocks, liquidity zones, and indications for Break of Structure (BOS) or Change of Character (CHoCH).
The fundamental ideas of this approach, which focuses on regions where institutions frequently make sizable orders or sweep liquidity, are based on SMC principles. Order blocks, which are frequently important support or resistance zones when institutions are involved, are the final bullish or bearish candle before a significant price move in the other direction. There are liquidity zones that show where retail stop-loss orders build up (above recent highs or below recent lows), such as Buy-Side Liquidity (BSL) and Sell-Side Liquidity (SSL). Before changing the direction of the price, institutions could target these zones, giving traders possible chances.
The script depicts liquidity levels above or below recent highs and lows, automatically finds order blocks within a specified lookback time, and looks for BOS (a continuation signal) or CHoCH (a reversal signal). When liquidity retests inside an order block coincide with BOS or CHoCH circumstances, entry signals are produced. While short entries are triggered when the price breaks below the order block and SSL, long entry alerts are triggered when the price breaks above the order block and BSL.
Dino EMA and WMAวัตถุประสงค์ของตัวชี้วัด
ตัวชี้วัดนี้มีประโยชน์สำหรับเทรดเดอร์และนักวิเคราะห์ในการระบุแนวโน้มในตลาดอย่างชัดเจนโดยอิงจากค่าเฉลี่ยเคลื่อนที่ที่คำนวณได้แต่ละค่า EMA จะให้ข้อมูลเชิงลึกเกี่ยวกับพฤติกรรมราคาตลอดช่วงเวลาที่แตกต่างกัน ซึ่งช่วยให้เทรดเดอร์สามารถตัดสินใจได้อย่างมีข้อมูลตามทิศทางของแนวโน้ม:
EMA ระยะสั้น (เช่น EMA 10 และ EMA 14) สามารถบ่งบอกถึงการเคลื่อนไหวของราคาในระยะสั้น
EMA ระยะยาว (เช่น EMA 100 และ EMA 200) ช่วยในการระบุแนวโน้มโดยรวมของตลาด
การใช้งานจริง
เทรดเดอร์มักมองหาการตัดกันระหว่าง EMA (เช่น เมื่อ EMA ระยะสั้นตัดขึ้นหรือตัดลงกับ EMA ระยะยาว) เป็นสัญญาณซื้อหรือขายที่อาจเกิดขึ้น WMA ยังสามารถใช้ในการยืนยันแนวโน้มได้ เนื่องจากมันตอบสนองต่อการเปลี่ยนแปลงราคาล่าสุด
โดยการวางตัวชี้วัดเหล่านี้บนกราฟราคา เทรดเดอร์สามารถมองเห็นพลศาสตร์ของตลาดได้ชัดเจนยิ่งขึ้น ซึ่งช่วยสนับสนุนกลยุทธ์การเทรดของพวกเขา
Trend Change Detection by SpotTheTrendThis script identifies potential trend changes by analyzing volume, RSI, and EMA indicators, with a built-in cool-down to avoid consecutive signals.
█ OVERVIEW
The "Trend Change Detection" script helps traders identify potential shifts in market direction by analyzing specific conditions in volume, RSI, and EMA. A cool-down period between signals minimizes noise, providing clearer entry signals.
█ CONCEPTS
Unlike many indicators that produce frequent signals, this script’s cool-down feature filters out consecutive signals, focusing on quality over quantity. This approach reduces premature entries and potential false signals, making it a valuable tool for more disciplined trading.
The main idea of this indicator is to help in risk management and drawdown reduction by enforcing selectivity, the cool-down period helps prevent over-trading in volatile or sideways markets, which can reduce exposure to extended drawdowns. This functionality supports more prudent trade entries, aligning with risk management strategies for improved trading outcomes.
We can take a look at the NASDAQ:NVDA chart as an example of a potential long position:
The main trend is bullish. While some might enter directly, avoiding drawdowns may suit others’ trading styles better::
• FEATURES
Bullish and Bearish Signals: Displays potential trend changes with bullish signals marked as green dots and bearish signals as red dots directly on the chart.
Cool-down Period: Reduces noise by limiting consecutive signals.
Visual Indicators: Colors bars by trend direction for quick visual reference.
• HOW TO USE
Bullish Signals: Indicated by green dots above bars, suggesting potential long opportunities.
Bearish Signals: Indicated by red dots below bars, suggesting potential short opportunities.
I created the "Trend Change Detection" indicator with the hope that it becomes a valuable part of your trading toolkit, helping you monitor trends with clarity and manage risk more effectively.
• DISCLAIMER
This tool is for informational purposes only. Always perform thorough analysis before entering trades.
Dino EMA and WMA
✨ สัมผัสกับความแม่นยำในการซื้อขายด้วย Exponential Moving Averages (EMA) และ Weighted Moving Average (WMA)! 🎯
🔸 EMA 14 (สีเหลือง): ติดตามแนวโน้มระยะสั้นอย่างรวดเร็ว
🔸 EMA 10 (สีชมพู): ให้สัญญาณที่ชัดเจนในตลาดที่มีความผันผวน
🔸 EMA 50 (สีแดง): เส้นสำคัญที่ช่วยยืนยันแนวโน้มในระยะกลาง
🔸 EMA 60 (สีฟ้า): เส้นที่บ่งบอกถึงการเปลี่ยนแปลงแนวโน้มที่สำคัญ
🔸 EMA 100 (สีเขียว): มุมมองระยะยาวที่ช่วยให้คุณเห็นภาพรวม
🔸 EMA 200 (สีม่วง): เส้นแนวโน้มหลักที่ยืนยันทิศทางการเคลื่อนไหวในระยะยาว
🔵 Weighted Moving Average 720 (สีน้ำเงินเข้ม): เน้นความสำคัญของข้อมูลในอดีตเพื่อสร้างสัญญาณที่แม่นยำ
พัฒนาโดย เพอซี่ลูกปั๊กอัจริยะ
FS Scorpion TailKey Features & Components:
1. Custom Date & Chart-Based Controls
The software allows users to define whether they want signals to start on a specific date (useSpecificDate) or base calculations on the visible chart’s range (useRelativeScreenSumLeft and useRelativeScreenSumRight).
Users can input the number of stocks to buy/sell per signal and decide whether to sell only for profit.
2. Technical Indicators Used
EMA (Exponential Moving Average): Users can define the length of the EMA and specify if buy/sell signals should occur when the EMA is rising or falling.
MACD (Moving Average Convergence Divergence): MACD crossovers, slopes of the MACD line, signal line, and histogram are used for generating buy/sell signals.
ATR (Average True Range): Signals are generated based on rising or falling ATR.
Aroon Indicator: Buy and sell signals are based on the behavior of the Aroon upper and lower lines.
RSI (Relative Strength Index): Tracks whether the RSI and its moving average are rising or falling to generate signals.
Bollinger Bands: Buy/sell signals depend on the basis, upper, and lower band behavior (rising or falling).
3. Signal Detection
The software creates arrays for each indicator to store conditions for buy/sell signals.
The allTrue() function checks whether all conditions for buy/sell signals are true, ensuring that only valid signals are plotted.
Signals are differentiated between buy-only, sell-only, and both buy and sell (dual signal).
4. Visual Indicators
Vertical Lines: When buy, sell, or dual signals are detected, vertical lines are drawn at the corresponding bar with configurable colors (green for buy, red for sell, silver for dual).
Buy/Sell Labels: Visual labels are plotted directly on the chart to denote buy or sell signals, allowing for clear interpretation of the strategy.
5. Cash Flow & Metrics Display
The software maintains an internal ledger of how many stocks are bought/sold, their prices, and whether a profit is being made.
A table is displayed at the bottom right of the chart, showing:
Initial investment
Current stocks owned
Last buy price
Market stake
Net profit
The table background turns green for profit and red for loss.
6. Dynamic Decision Making
Buy Condition: If a valid buy signal is generated, the software decrements the cash balance and adds stocks to the inventory.
Sell Condition: If the sell signal is valid (and meets the profit requirement), stocks are sold, and cash is incremented.
A fallback check ensures the sell logic prevents selling more stocks than are available and adjusts stock holding appropriately (e.g., sell half).
Customization and Usage
Indicator Adjustments: The user can choose which indicators to activate (e.g., EMA, MACD, RSI) via input controls. Each indicator has specific customizable parameters such as lengths, slopes, and conditions.
Signal Flexibility: The user can adjust conditions for buying and selling based on various technical indicators, which adds flexibility in implementing trading strategies. For example, users may require the RSI to be higher than its moving average or trigger sales only when MACD crosses under the signal line.
Profit Sensitivity: The software allows the option to sell only when a profit is assured by checking if the current price is higher than the last buy price.
Summary of Usage:
Indicator Selection: Enable or disable technical indicators like EMA, MACD, RSI, Aroon, ATR, and Bollinger Bands to fit your trading strategy.
Custom Date/Chart Settings: Choose whether to calculate based on specific time ranges or visible portions of the chart.
Dynamic Signal Plotting: Once buy or sell conditions are met, the software will visually plot signals on your chart, giving clear entry and exit points.
Investment Tracking: Real-time tracking of stock quantities, investments, and profit ensures a clear view of your trading performance.
Backtesting: Use this software for backtesting your strategy by analyzing how buy and sell signals would have performed historically based on the chosen indicators.
Conclusion
The FS Scorpion Tail software is a robust and flexible trading tool, allowing traders to develop custom strategies based on multiple well-known technical indicators. Its visual aid, coupled with real-time investment tracking, makes it valuable for systematic traders looking to automate or refine their trading approach.
Volume/Price Divergence v2The "Volume/Price Divergence v2" indicator is designed to analyze the relationship between volume and price movements in a financial market. It helps traders identify potential divergences that may indicate a change in market trends. Here’s a breakdown of how it works:
### Key Components
1. **Volume Calculation**:
- **Buying Volume**: This is calculated based on the relationship between the closing price and the high/low range. If the closing price is closer to the low, more volume is attributed to buying.
- **Selling Volume**: Conversely, if the closing price is closer to the high, more volume is considered selling.
The formulas used are:
```pinescript
buyVolume = high == low ? 0 : volume * (close - low) / (high - low)
sellVolume = high == low ? 0 : volume * (high - close) / (high - low)
```
2. **Plotting Volume**:
- The total volume is plotted in red and buying volume is plotted in teal. This helps visualize the volume distribution during different price movements.
3. **Rate of Change (ROC)**:
- The indicator calculates the rate of change for both volume and price over a specified period. This allows traders to see how volume and price are changing relative to each other.
```pinescript
roc = source / source
roc2 = source2 / source2
```
4. **Volume/Price Divergence (VPD)**:
- The VPD is derived from the ratio of the ROC of volume to the ROC of price. This ratio helps identify divergences:
- A VPD significantly above 10 may indicate strong divergence, suggesting that price movements are not supported by volume.
- A VPD around 1 indicates that volume and price are moving in harmony.
5. **Horizontal Lines**:
- The indicator includes horizontal lines at levels 10 (high divergence) and 1 (low divergence), serving as visual cues for traders to assess the market's state.
### Interpretation
- **Divergence**: If price makes a new high but volume does not follow (or vice versa), it may signal a potential reversal or weakness in the trend.
- **Volume Trends**: Analyzing the buying vs. selling volume can provide insights into market sentiment, helping traders make informed decisions.
- **Potential for a Strong Move**: A high VPD during a breakout indicates that while volume is increasing, the price isn’t moving significantly, suggesting that a big price move could be imminent.
- **Caution Before Entry**: Traders should be aware that the lack of price movement relative to high volume may signal an impending volatility spike, which could lead to a rapid price change in either direction.
Overall, this indicator is useful for traders looking to gauge the strength of price movements and identify potential reversals or breakouts based on volume trends.
Power Root SuperTrend [AlgoAlpha]// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © AlgoAlpha
//@version=5
indicator("Power Root SuperTrend ", "AlgoAlpha - Power Root", true, max_lines_count = 500)
import TradingView/ta/8
atrMult = input.float(4.5, "Factor")
atrlen = input.int(12, "ATR Length")
rsmlen = input.int(3, "Root-Mean-Square Length")
tplen = input.int(14, "RSI Take-Profit Length")
green = input.color(#00ffbb, "Bullish Color", group = "Appearance")
red = input.color(#ff1100, "Bearish Color", group = "Appearance")
// SuperTrend Function
superTrendCalc(multiplier, atrLength, source) =>
atrValue1 = ta.atr(atrLength)
upperLevel = source + multiplier * atrValue1
lowerLevel = source - multiplier * atrValue1
previousLowerLevel = nz(lowerLevel )
previousUpperLevel = nz(upperLevel )
// Ensure continuity of lower and upper bands
lowerLevel := lowerLevel > previousLowerLevel or source < previousLowerLevel ? lowerLevel : previousLowerLevel
upperLevel := upperLevel < previousUpperLevel or source > previousUpperLevel ? upperLevel : previousUpperLevel
// Determine direction and SuperTrend
int trendDirection = na
float trendValue = na
previousTrend = trendValue
// Initialize direction
if na(atrValue1 )
trendDirection := 1
else if previousTrend == previousUpperLevel
trendDirection := source > upperLevel ? -1 : 1
else
trendDirection := source < lowerLevel ? 1 : -1
// Set SuperTrend value based on direction
trendValue := trendDirection == -1 ? lowerLevel : upperLevel
= superTrendCalc(atrMult, atrlen, ta.rms(close, rsmlen))
dist = math.abs(close-superTrendValue)
var chg = 0.0
var tp1 = 0.0
var tp2 = 0.0
var tp3 = 0.0
var tp4 = 0.0
var tp5 = 0.0
var tp6 = 0.0
var tp7 = 0.0
lvlCol = trendDirection > 0 ? red : green
var keys = array.new_line()
var printedtp1 = 0
var printedtp2 = 0
var printedtp3 = 0
var printedtp4 = 0
var printedtp5 = 0
var printedtp6 = 0
var printedtp7 = 0
if ta.cross(trendDirection, 0)
keys.clear()
printedtp1 := 0
printedtp2 := 0
printedtp3 := 0
printedtp4 := 0
printedtp5 := 0
printedtp6 := 0
printedtp7 := 0
chg := math.abs(superTrendValue-superTrendValue )
tp1 := superTrendValue + (trendDirection > 0 ? -chg : chg)
tp2 := superTrendValue + (trendDirection > 0 ? -chg * 2 : chg * 2)
tp3 := superTrendValue + (trendDirection > 0 ? -chg * 3 : chg * 3)
tp4 := superTrendValue + (trendDirection > 0 ? -chg * 4 : chg * 4)
tp5 := superTrendValue + (trendDirection > 0 ? -chg * 5 : chg * 5)
tp6 := superTrendValue + (trendDirection > 0 ? -chg * 6 : chg * 6)
tp7 := superTrendValue + (trendDirection > 0 ? -chg * 7 : chg * 7)
keys.push(line.new(bar_index , tp1, bar_index, tp1, color = lvlCol, width = 2))
printedtp1 := 1
tp = ta.crossunder(ta.rsi(dist, tplen), 60)
extreme = trendDirection > 0 ? low : high
extreme_tp1_dist = math.abs(extreme - tp1)
extreme_tp2_dist = math.abs(extreme - tp2)
extreme_tp3_dist = math.abs(extreme - tp3)
extreme_tp4_dist = math.abs(extreme - tp4)
extreme_tp5_dist = math.abs(extreme - tp5)
extreme_tp6_dist = math.abs(extreme - tp6)
extreme_tp7_dist = math.abs(extreme - tp7)
p = plot(superTrendValue, color = trendDirection > 0 ? color.new(red, 70) : color.new(green, 70))
upTrend = plot(close > superTrendValue ? superTrendValue : na, color = color.new(green, 70), style = plot.style_linebr) //, force_overlay = true
downTrend = plot(close < superTrendValue ? superTrendValue : na, color = color.new(red, 70), style = plot.style_linebr, force_overlay = false) //, force_overlay = true
bodyMiddle = plot(barstate.isfirst ? na : (open + close) / 2, "Body Middle",display = display.none)
fill(bodyMiddle, upTrend, (open + close) / 2, superTrendValue, color.new(green, 95), color.new(green, 70))
fill(bodyMiddle, downTrend, superTrendValue, (open + close) / 2, color.new(red, 70), color.new(red, 95))
plotchar(tp and trendDirection > 0, "RSI-Based Shorts TP", "X", location.belowbar, red, size = size.tiny)
plotchar(tp and trendDirection < 0, "RSI-Based Longs TP", "X", location.abovebar, green, size = size.tiny)
if printedtp2 == 0 and extreme_tp2_dist < extreme_tp1_dist
keys.push(line.new(bar_index , tp2, bar_index, tp2, color = lvlCol, width = 2))
printedtp2 := 1
if printedtp3 == 0 and extreme_tp3_dist < extreme_tp2_dist
keys.push(line.new(bar_index , tp3, bar_index, tp3, color = lvlCol, width = 2))
printedtp3 := 1
if printedtp4 == 0 and extreme_tp4_dist < extreme_tp3_dist
keys.push(line.new(bar_index , tp4, bar_index, tp4, color = lvlCol, width = 2))
printedtp4 := 1
if printedtp5 == 0 and extreme_tp5_dist < extreme_tp4_dist
keys.push(line.new(bar_index , tp5, bar_index, tp5, color = lvlCol, width = 2))
printedtp5 := 1
if printedtp6 == 0 and extreme_tp6_dist < extreme_tp5_dist
keys.push(line.new(bar_index , tp6, bar_index, tp6, color = lvlCol, width = 2))
printedtp6 := 1
if printedtp7 == 0 and extreme_tp7_dist < extreme_tp6_dist
keys.push(line.new(bar_index , tp7, bar_index, tp7, color = lvlCol, width = 2))
printedtp7 := 1
if keys.size() > 0
aSZ = keys.size()
for i = aSZ - 1 to 0
keys.get(i).set_x2(bar_index)
// Alert when SuperTrend changes direction
alertcondition(ta.cross(trendDirection, 0), title="SuperTrend Direction Change", message="SuperTrend has changed direction")
// Alert when each TP line is drawn
alertcondition(printedtp1 == 1, title="TP1 Line Drawn", message="TP1 line has been drawn")
alertcondition(printedtp2 == 1, title="TP2 Line Drawn", message="TP2 line has been drawn")
alertcondition(printedtp3 == 1, title="TP3 Line Drawn", message="TP3 line has been drawn")
alertcondition(printedtp4 == 1, title="TP4 Line Drawn", message="TP4 line has been drawn")
alertcondition(printedtp5 == 1, title="TP5 Line Drawn", message="TP5 line has been drawn")
alertcondition(printedtp6 == 1, title="TP6 Line Drawn", message="TP6 line has been drawn")
alertcondition(printedtp7 == 1, title="TP7 Line Drawn", message="TP7 line has been drawn")
// Alert for crossing under RSI
alertcondition(tp, title="Take-Profit Condition", message="Take-Profit condition met")
RSI Strategy & CandleStick StrategyRSI Indicator linked with some Candlestick Pattern to signal the time of selling and Buyinh
MMRI Chart (Primary)The **Mannarino Market Risk Indicator (MMRI)** is a financial risk measurement tool created by financial strategist Gregory Mannarino. It’s designed to assess the risk level in the stock market and economy based on current bond market conditions and the strength of the U.S. dollar. The MMRI considers factors like the U.S. 10-Year Treasury Yield and the Dollar Index (DXY), which indicate investor confidence in government debt and the dollar's purchasing power, respectively.
The formula for MMRI uses the 10-Year Treasury Yield multiplied by the Dollar Index, divided by a constant (1.61) to normalize the risk measure. A higher MMRI score suggests increased market risk, while a lower score indicates more stability. Mannarino has set certain thresholds to interpret the MMRI score:
- **Below 100**: Low risk.
- **100–200**: Moderate risk.
- **200–300**: High risk.
- **Above 300**: Extreme risk, indicating market instability and potential downturns.
This tool aims to provide insight into economic conditions that may affect asset classes like stocks, bonds, and precious metals. Mannarino often updates MMRI scores and risk analyses in his public market updates.
Sash Trending SuiteIndicator Name: Sash's Suite
Purpose: To analyze market trends and identify potential price reversals.
Objective: To provide traders with a comprehensive tool for analyzing market trends and identifying potential price reversals, enabling informed trading decisions and improved market timing.
How (Process)
Trend Analysis: Utilizes moving averages (EMAs) and the Average Directional Index (ADX) to assess market strength and direction.
Reversal Detection: Employs the Relative Strength Index (RSI) alongside price movement to identify overbought and oversold conditions for potential reversals.
Micro Trend Signals: Incorporates shorter EMAs to capture rapid market movements and refine entry and exit points.
What (Components)
Macro Trend Parameters: Fast and slow EMA lengths, ADX length, and threshold settings.
Alpha Track Parameters: Adjustable track line intensity.
Reversal Signal Parameters: Minimum reversal percentage, RSI length, and overbought/oversold levels.
Micro Trend Parameters: Shorter EMAs for precise trend tracking.
Calculations:
Computes EMAs, ADX, and RSI values. Logic:
Detects bullish and bearish trends based on EMA relationships and ADX.
Identifies potential reversals using price crossovers and RSI conditions.
Plotting:
Visual indicators for trends, reversals, and local tops/bottoms with color-coded signals.
Alerts:
Notifies users of trend changes, reversals, and significant price points for proactive trading.