Leading Indicator - MACD + RSI### *How It Works*
1. *MACD*:
- The MACD line is calculated as the difference between the 12-period and 26-period exponential moving averages (EMAs).
- A signal line (9-period EMA of the MACD line) is used to generate crossover signals.
2. *RSI*:
- RSI is used to measure momentum and identify overbought/oversold conditions.
- Signals are filtered to avoid overbought/oversold zones, ensuring the indicator acts as a leading tool.
3. *Signals*:
- A *BUY* signal is generated when:
- MACD line crosses above the signal line (bullish momentum).
- RSI is above the oversold level but below the overbought level (momentum is building).
- A *SELL* signal is generated when:
- MACD line crosses below the signal line (bearish momentum).
- RSI is below the overbought level but above the oversold level (momentum is weakening).
---
### *How to Use*
1. Copy and paste the script into TradingView's Pine Script editor.
2. Add the indicator to your chart.
3. Adjust the input parameters (e.g., MACD lengths, RSI length) to suit your trading style.
4. Use the BUY/SELL signals to identify potential entry and exit points.
---
### *Customization*
- You can add more filters, such as volume or trend confirmation (e.g., using a moving average).
- Experiment with different lengths for MACD and RSI to optimize for your preferred time frame.
Indicators and strategies
#SERIAL94829This is a tool that you use for ai agents that can easily determine if the candles are green or red
Quantum Liquidity FractalThe indicator is designed to identify hidden market affects:
Volume anomaly detection (opportunities in dark pools)
Recognition of algorithmic clusters (mass orders of HFT robots)
Filtering false breakouts through entropy analysis
Sync with high frequency trading activity
Yinon defeated Yaakov 7-1 in FIFAהם רוצים ממני לרשום מלא מידע על האינדיקטור אז אני סתם אציין שאני אחלה גבר
Yinon Hageverאחלה של דבר הוא דורש ממני מלא מילים כדי לתאר את האינדיקטור אז אני סתם אחפור לכם שאני גבר רצח
9 EMA vs VWAP Crossover auto buy and sell strategyPurpose: The script is designed to provide trade signals based on the relationship between a short-term 9-period EMA and the VWAP.
How It Works:
Calculate the 9 EMA: Provides a short-term trend indicator.
Calculate the VWAP: Reflects the average price weighted by volume during the session.
Generate Signals:
A buy signal is generated when the 9 EMA crosses above the VWAP.
A sell (or short) signal is generated when the 9 EMA crosses below the VWAP.
Visual Feedback: The script plots the indicators and places labels on the chart to mark these crossovers.
Flat Candle IdentifierCredit "https://www.tradingview.com/script/qE9ma259-Flat-Open-sniper/"
Updated the indicator to allow the user to change the color of the candle.
This allows the user to spot flat candles easier than by using icons.
Bullish Reversal Screener15 candles down side. in between green candles will be there can be ignored. bullish englfing candle after 15 days of down trend. rsi should come above 40 by crossing 30 at any time of 15 days. volume should be 300000. MACD should be going above 0.4. avoid penny stocks
Overlay Daily Candle [odnac]This script is designed to visually overlay the daily candle on various timeframes, allowing traders to quickly assess the shape of the daily candle, its high and low points, and the relationship between the open and close prices.
Additionally, it helps to intuitively identify upward and downward movements by using color-coded bullish and bearish candles.
Key Features
Candle Color Indication: Bullish candles are shown in green, while bearish candles are shown in red.
Candle Body Box: The box represents the body of the daily candle, based on the open and close prices.
Candle Wick: The wicks of the daily candle are drawn to represent the high and low prices.
Date Change Detection: When a new date begins, the previous data is reset, and new boxes and lines are drawn according to the updated date.
How to Use
You can adjust the script’s options to customize the color of bullish and bearish candles, as well as the transparency of the boxes, to suit your personal style.
MLExtensionsLibrary "MLExtensions"
A set of extension methods for a novel implementation of a Approximate Nearest Neighbors (ANN) algorithm in Lorentzian space.
normalizeDeriv(src, quadraticMeanLength)
Returns the smoothed hyperbolic tangent of the input series.
Parameters:
src (float) : The input series (i.e., the first-order derivative for price).
quadraticMeanLength (int) : The length of the quadratic mean (RMS).
Returns: nDeriv The normalized derivative of the input series.
normalize(src, min, max)
Rescales a source value with an unbounded range to a target range.
Parameters:
src (float) : The input series
min (float) : The minimum value of the unbounded range
max (float) : The maximum value of the unbounded range
Returns: The normalized series
rescale(src, oldMin, oldMax, newMin, newMax)
Rescales a source value with a bounded range to anther bounded range
Parameters:
src (float) : The input series
oldMin (float) : The minimum value of the range to rescale from
oldMax (float) : The maximum value of the range to rescale from
newMin (float) : The minimum value of the range to rescale to
newMax (float) : The maximum value of the range to rescale to
Returns: The rescaled series
getColorShades(color)
Creates an array of colors with varying shades of the input color
Parameters:
color (color) : The color to create shades of
Returns: An array of colors with varying shades of the input color
getPredictionColor(prediction, neighborsCount, shadesArr)
Determines the color shade based on prediction percentile
Parameters:
prediction (float) : Value of the prediction
neighborsCount (int) : The number of neighbors used in a nearest neighbors classification
shadesArr (array) : An array of colors with varying shades of the input color
Returns: shade Color shade based on prediction percentile
color_green(prediction)
Assigns varying shades of the color green based on the KNN classification
Parameters:
prediction (float) : Value (int|float) of the prediction
Returns: color
color_red(prediction)
Assigns varying shades of the color red based on the KNN classification
Parameters:
prediction (float) : Value of the prediction
Returns: color
tanh(src)
Returns the the hyperbolic tangent of the input series. The sigmoid-like hyperbolic tangent function is used to compress the input to a value between -1 and 1.
Parameters:
src (float) : The input series (i.e., the normalized derivative).
Returns: tanh The hyperbolic tangent of the input series.
dualPoleFilter(src, lookback)
Returns the smoothed hyperbolic tangent of the input series.
Parameters:
src (float) : The input series (i.e., the hyperbolic tangent).
lookback (int) : The lookback window for the smoothing.
Returns: filter The smoothed hyperbolic tangent of the input series.
tanhTransform(src, smoothingFrequency, quadraticMeanLength)
Returns the tanh transform of the input series.
Parameters:
src (float) : The input series (i.e., the result of the tanh calculation).
smoothingFrequency (int)
quadraticMeanLength (int)
Returns: signal The smoothed hyperbolic tangent transform of the input series.
n_rsi(src, n1, n2)
Returns the normalized RSI ideal for use in ML algorithms.
Parameters:
src (float) : The input series (i.e., the result of the RSI calculation).
n1 (simple int) : The length of the RSI.
n2 (simple int) : The smoothing length of the RSI.
Returns: signal The normalized RSI.
n_cci(src, n1, n2)
Returns the normalized CCI ideal for use in ML algorithms.
Parameters:
src (float) : The input series (i.e., the result of the CCI calculation).
n1 (simple int) : The length of the CCI.
n2 (simple int) : The smoothing length of the CCI.
Returns: signal The normalized CCI.
n_wt(src, n1, n2)
Returns the normalized WaveTrend Classic series ideal for use in ML algorithms.
Parameters:
src (float) : The input series (i.e., the result of the WaveTrend Classic calculation).
n1 (simple int)
n2 (simple int)
Returns: signal The normalized WaveTrend Classic series.
n_adx(highSrc, lowSrc, closeSrc, n1)
Returns the normalized ADX ideal for use in ML algorithms.
Parameters:
highSrc (float) : The input series for the high price.
lowSrc (float) : The input series for the low price.
closeSrc (float) : The input series for the close price.
n1 (simple int) : The length of the ADX.
regime_filter(src, threshold, useRegimeFilter)
Parameters:
src (float)
threshold (float)
useRegimeFilter (bool)
filter_adx(src, length, adxThreshold, useAdxFilter)
filter_adx
Parameters:
src (float) : The source series.
length (simple int) : The length of the ADX.
adxThreshold (int) : The ADX threshold.
useAdxFilter (bool) : Whether to use the ADX filter.
Returns: The ADX.
filter_volatility(minLength, maxLength, useVolatilityFilter)
filter_volatility
Parameters:
minLength (simple int) : The minimum length of the ATR.
maxLength (simple int) : The maximum length of the ATR.
useVolatilityFilter (bool) : Whether to use the volatility filter.
Returns: Boolean indicating whether or not to let the signal pass through the filter.
backtest(high, low, open, startLongTrade, endLongTrade, startShortTrade, endShortTrade, isEarlySignalFlip, maxBarsBackIndex, thisBarIndex, src, useWorstCase)
Performs a basic backtest using the specified parameters and conditions.
Parameters:
high (float) : The input series for the high price.
low (float) : The input series for the low price.
open (float) : The input series for the open price.
startLongTrade (bool) : The series of conditions that indicate the start of a long trade.
endLongTrade (bool) : The series of conditions that indicate the end of a long trade.
startShortTrade (bool) : The series of conditions that indicate the start of a short trade.
endShortTrade (bool) : The series of conditions that indicate the end of a short trade.
isEarlySignalFlip (bool) : Whether or not the signal flip is early.
maxBarsBackIndex (int) : The maximum number of bars to go back in the backtest.
thisBarIndex (int) : The current bar index.
src (float) : The source series.
useWorstCase (bool) : Whether to use the worst case scenario for the backtest.
Returns: A tuple containing backtest values
init_table()
init_table()
Returns: tbl The backtest results.
update_table(tbl, tradeStatsHeader, totalTrades, totalWins, totalLosses, winLossRatio, winrate, earlySignalFlips)
update_table(tbl, tradeStats)
Parameters:
tbl (table) : The backtest results table.
tradeStatsHeader (string) : The trade stats header.
totalTrades (float) : The total number of trades.
totalWins (float) : The total number of wins.
totalLosses (float) : The total number of losses.
winLossRatio (float) : The win loss ratio.
winrate (float) : The winrate.
earlySignalFlips (float) : The total number of early signal flips.
Returns: Updated backtest results table.
29&71 Goldbach levelsThe indicator automatically plots horizontal lines at the 29 and 71 price levels on your chart. These levels serve as psychological barriers in the market, where price action may react or consolidate, just as prime numbers are fundamental in the theory of numbers.
---
Features:
- 29 Level: Identifies significant areas where market participants may encounter support or resistance, similar to the importance of prime numbers in Goldbach's conjecture.
- 71 Level: Marks another key zone that might indicate possible price breakouts or reversals, offering traders a reference point for decision-making.
- Customizable: You can adjust the colors, line styles, or alerts associated with these levels to fit your trading preferences.
How to Use:
- Use the 29 and 71 levels to spot potential areas of support or resistance on the chart.
- Watch for price reactions at these levels for possible breakout or reversal setups.
- Combine the levels with other technical indicators for added confirmation.
---
This indicator blends the theory of prime numbers with market analysis, offering traders a novel approach to identifying key levels that might influence price movements.
Excess Liquidity IndicatorThis indicator is inspired by Raoul Pal's and Julien Bittel concept of excess liquidity, which serves as a leading macroeconomic signal for risk assets. Excess liquidity is calculated as M2 money supply plus central bank balance sheets minus GDP, adjusted for key macro factors including oil prices, the US Dollar Index (DXY), US 10-year Treasury yield (US10Y), and Chinese 10-year bond yield (CN10Y). The script provides insights into liquidity-driven market trends, helping traders assess potential turning points in asset prices."
Let me know what you think!
Talha's Pro Signal (Version 5)Talha's Pro Signal – Smart Trading Indicator
🔹 Talha's Pro Signal is a multi-indicator trading strategy that combines EMA, RSI, and MACD to generate reliable BUY & SELL signals for traders.
✅ Key Features:
. EMA (9 & 21): Identifies trend direction and potential entries.
. RSI (14): Analyzes market strength and overbought/oversold conditions.
. MACD (12, 26, 9): Confirms trend momentum and crossovers.
. ATR-Based SL & TP: Smart risk management with stop loss & take profit levels.
. Clear Entry & Exit Signals: Plots precise BUY & SELL labels and arrows on the chart.
🎯 This indicator is suitable for Forex, Stocks, Crypto, and other markets. Always follow your own analysis and risk management before taking a trade.
📌 Free to Use – Happy Trading! 🚀
Talha's Pro Signal – Smart Trading Indicator
🔹 Talha's Pro Signal হল একটি মাল্টি-ইন্ডিকেটর ট্রেডিং স্ট্র্যাটেজি, যা EMA, RSI ও MACD এর সমন্বয়ে নির্ভরযোগ্য BUY ও SELL সিগন্যাল প্রদান করে।
✅ Key Features:
. EMA (9 & 21): ট্রেন্ড ফলো করে সঠিক এন্ট্রি নির্ধারণ করে।
. RSI (14): মার্কেটের শক্তি ও ওভারবট/ওভারসোল্ড কন্ডিশন বিশ্লেষণ করে।
. MACD (12, 26, 9): ট্রেন্ড কনফার্মেশন ও মোমেন্টাম বিশ্লেষণ করে।
. ATR-Based SL & TP: স্মার্ট রিস্ক ম্যানেজমেন্ট।
. Clear Entry & Exit Signals: চার্টে স্পষ্ট BUY & SELL লেবেল ও অ্যারো প্লটিং।
🎯 এই ইন্ডিকেটরটি ফরেক্স, স্টক, ক্রিপ্টোসহ সব মার্কেটে ব্যবহারযোগ্য। ট্রেড নেওয়ার আগে অবশ্যই নিজের এনালাইসিস ও রিস্ক ম্যানেজমেন্ট অনুসরণ করুন।
📌 Free to Use – Happy Trading! 🚀
Chart Box Session Indicator [ScrimpleAI]This indicator allows highlighting specific time sessions within a chart by creating colored boxes to represent the price range of the selected session. Is an advanced and flexible tool for graphically segmenting trading sessions. Thanks to its extensive customization options and advanced visualization features, it allows traders to gain a clear representation of key market areas based on chosen time intervals.
The indicator offers two range calculation modes:
- Body to Body : considers the range between the opening and closing price.
- Wick to Wick : considers the range between the session's low and high.
Key Features
1. Session Configuration
- Users can select the time range of the session of interest.
- Option to choose the day of the week for the calculation.
- Supports UTC timezone selection to correctly align data.
2. Customizable Visualization
- Option to display session price lines.
- Ability to show a central price line.
- Extension of session lines beyond the specified duration.
3. Graphical Display Configuration
- Three different background configurations to suit light and dark themes.
- Two gradient modes for session coloring:
- Centered : the color is evenly distributed.
- Off-Centered : the gradient is asymmetrical.
How It Works
The indicator determines whether the current time falls within the selected session, creating a colored box that highlights the corresponding price range.
Depending on user preferences, the indicator draws horizontal lines at the minimum and maximum price levels and, optionally, a central line.
During the session:
- The lowest and highest session prices are dynamically updated.
- The range is divided into 10 bands to create a gradient effect.
- A colored box is generated to visually highlight the chosen session.
If the Extend Lines option is enabled, price lines continue even after the session ends, keeping the range visible for further analysis.
Usage
This indicator is useful for traders who want to analyze price behavior in specific timeframes. It is particularly beneficial for strategies based on market sessions (e.g., London or New York open) or for identifying accumulation and distribution zones.
5SMA Trend filter w/optional 10,20,50,200 moving averagesTrend filter indicator to determine ideal price action for long or short trades.
Cloud attached between price and 5SMA.
Using the 5SMA direction and relativity to price, two signals to help filter out head fakes.
If price > 5SMA and SMA pointing up then green cloud.
If price < 5SMA and SMA point down then red cloud.
If price > 5SMA and SMA pointing down or price < 5SMA and 5SMA pointing up then
Optional 10,20,50,200 simple moving averages.
Compatible with multiple timeframes.
Custom MA + BB + RSI + Stoch RSII'm trying to get the 20, 50 and 200 MA as well as bollinger bands in here. Additionally, I'm trying to get the RSI and Stoichastic RSI in here.
MA 50/200 with Support/Resistance (Custom Candle Input)The MA 50/200 with Support/Resistance (Custom Candle Input) is a versatile trading indicator that combines two popular moving averages (MA 50 and MA 200) with customizable support and resistance levels.
Moving Averages (MA 50 and MA 200): These two moving averages help smooth out price action and identify the overall trend of the market. The MA 50 is commonly used to identify short-term trends, while the MA 200 is typically used to spot long-term trends. You can choose between SMA (Simple Moving Average) or EMA (Exponential Moving Average) based on your preference.
Support and Resistance: The indicator also highlights critical support and resistance levels based on a user-defined number of previous candles. This feature allows you to adjust how many bars back you want to analyze for these levels. For example, if you set it to 50, it will look at the highest and lowest prices of the last 50 bars to plot these key levels. The support is shown as a green line, and the resistance is shown as a red line. These levels often act as price barriers where the market tends to reverse or stall.
Customizable Candle Range: You can easily adjust the number of candles used to calculate the support and resistance levels, making it adaptable to different market conditions and trading styles. Whether you want to focus on a short-term or longer-term view, this flexibility gives you control over how you visualize price action.
In short, this indicator helps you track market trends with moving averages and provides clear visual markers for support and resistance based on your chosen timeframe, making it an effective tool for identifying potential price reversals or breakouts.