[CLH] Day SeparatorVertical separator between each new day. Allows adjustment of time of day, line colour and thickness, and timezone offset.
Multitimeframe
Heatmap MACD Strategy - Pineconnector (Dynamic Alerts)Hello traders
This script is an upgrade of this template script.
Heatmap MACD Strategy
Pineconnector
Pineconnector is a trading bot software that forwards TradingView alerts to your Metatrader 4/5 for automating trading.
Many traders don't know how to dynamically create Pineconnector-compatible alerts using the data from their TradingView scripts.
Traders using trading bots want their alerts to reflect the stop-loss/take-profit/trailing-stop/stop-loss to breakeven options from your script and then create the orders accordingly.
This script showcases how to create Pineconnector alerts dynamically.
Pineconnector doesn't support alerts with multiple Take Profits.
As a workaround, for 2 TPs, I had to open two trades.
It's not optimal, as we end up paying more spreads for that extra trade - however, depending on your trading strategy, it may not be a big deal.
TradingView Alerts
1) You'll have to create one alert per asset X timeframe = 1 chart.
Example : 1 alert for EUR/USD on the 5 minutes chart, 1 alert for EUR/USD on the 15-minute chart (assuming you want your bot to trade the EUR/USD on the 5 and 15-minute timeframes)
2) For each alert, the alert message is pre-configured with the text below
{{strategy.order.alert_message}}
Please leave it as it is.
It's a TradingView native variable that will fetch the alert text messages built by the script.
3) Don't forget to set the webhook URL in the Notifications tab of the TradingView alerts UI.
EA configuration
The Pyramiding in the EA on Metatrader must be set to 2 if you want to trade with 2 TPs => as it's opening 2 trades.
If you only want 1 TP, set the EA Pyramiding to 1.
Regarding the other EA settings, please refer to the Pineconnector documentation on their website.
Logger
The Pineconnector commands are logged in the TradingView logger.
You'll find more information about it from this TradingView blog post
Important Notes
1) This multiple MACDs strategy doesn't matter much.
I could have selected any other indicator or concept for this script post.
I wanted to share an example of how you can quickly upgrade your strategy, making it compatible with Pineconnector.
2) The backtest results aren't relevant for this educational script publication.
I used realistic backtesting data but didn't look too much into optimizing the results, as this isn't the point of why I'm publishing this script.
3) This template is made to take 1 trade per direction at any given time.
Pyramiding is set to 1 on TradingView.
The strategy default settings are:
Initial Capital: 100000 USD
Position Size: 1 contract
Commission Percent: 0.075%
Slippage: 1 tick
No margin/leverage used
For example, those are realistic settings for trading CFD indices with low timeframes but not the best possible settings for all assets/timeframes.
Concept
The Heatmap MACD Strategy allows selecting one MACD in five different timeframes.
You'll get an exit signal whenever one of the 5 MACDs changes direction.
Then, the strategy re-enters whenever all the MACDs are in the same direction again.
It takes:
long trades when all the 5 MACD histograms are bullish
short trades when all the 5 MACD histograms are bearish
You can select the same timeframe multiple times if you don't need five timeframes.
For example, if you only need the 30min, the 1H, and 2H, you can set your timeframes as follow:
30m
30m
30m
1H
2H
Risk Management Features
All the features below are pips-based.
Stop-Loss
Trailing Stop-Loss
Stop-Loss to Breakeven after a certain amount of pips has been reached
Take Profit 1st level and closing X% of the trade
Take Profit 2nd level and close the remaining of the trade
Custom Exit
I added the option ON/OFF to close the opened trade whenever one of the MACD diverges with the others.
Help me help the community
If you see any issue when adding your strategy logic to that template regarding the orders fills on your Metatrader, please let me know in the comments.
I'll use your feedback to make this template more robust. :)
What's next?
I'll publish a more generic template built as a connector so you can connect any indicator to that Pineconnector template.
Then, I'll publish a template for Capitalise AI, ProfitView, AutoView, and Alertatron.
Thank you
Dave
Crypto Daily WatchList And Screener [M]
Hi, this is a watchlist and screener indicator designed for traders in the field of cryptocurrencies who want to monitor developments in other currency pairs and indices.
The indicator consists of two tables. One of them is the table containing indices such as BTC dominance, total, total2, which allows you to track market developments and changes. In this table, you will find price information, daily change, stochastic, and trend information.
The other table includes cryptocurrencies like BTC/USDT, ETH/USDT, DOT/USDT, and more. In this table, you will see real-time prices, daily volume, daily change, stochastic, the correlation coefficient between the pair and Bitcoin, and the trend value calculated based on MACD.
The "Customize" section in the settings enables you to personalize the appearance of the tables according to your preferences.
Heatmap MACD StrategyHello traders
A customer gave me the idea indirectly after I made an update to that script:
Supertrend MTF Heatmap
Important Notes
The backtest results aren't relevant for this educational script publication.
I used realistic backtesting data but didn't look too much into optimizing the results, as this isn't the point of why I'm publishing this script.
I wanted to showcase that any Heatmap script can be converted into a strategy.
The strategy default settings are:
Initial Capital: 100000 USD
Position Size: 1 contract
Commission Percent: 0.075%
Slippage: 1 tick
No margin/leverage used
For example, those are realistic settings for trading CFD indices with low timeframes, but not the best possible settings for all assets/timeframes.
Concept
The Heatmap MACD Strategy allows selecting one MACD in five different timeframes.
You'll get an exit signal whenever one of the 5 MACDs changes direction.
Then, the strategy re-enters whenever all the MACDs are in the same direction again.
It takes:
long trades when all the 5 MACD histograms are bullish
short trades when all the 5 MACD histograms are bearish
You can select the same timeframe multiple times if you don't need five timeframes.
For example, if you only need the 30min, the 1H, and 2H, you can set your timeframes as follow:
30m
30m
30m
1H
2H
Risk Management Features
Nothing too fancy
All the features below are pips-based
Stop-Loss
Trailing Stop-Loss
Stop-Loss to Breakeven after a certain amount of pips has been reached
Take Profit 1st level and closing X% of the trade
Take Profit 2nd level and close the remaining of the trade
What's next?
I'll publish this script's open-source Pineconnector, ProfitView, and AutoView versions for educational purposes.
Thank you
Dave
Multi Timeframe Indicator Signals [pAulseperformance]█ Concept:
In this TradingView Pine Script publication, we introduce a powerful tool that offers extensive capabilities for traders and analysts. With a focus on combining multiple indicators, analyzing various timeframes, and fine-tuning your trading strategies, this tool empowers you to make informed trading decisions.
█ Key Features:
1. Combining Multiple Rules with AND / OR Operations
• Example: You can combine the Relative Strength Index (RSI) with the Moving Average Convergence Divergence (MACD) by selecting the "AND" operation. This ensures that you only get a signal when both indicators generate signals. Alternatively, you can add custom indicators and select "OR" to create more complex strategies.
2. Selecting Multiple Indicators on Different Timeframes
• Analyze the same indicator on different timeframes to get a comprehensive view of market conditions.
3. Reversing Signals
• Reverse signals generated by indicators to adapt to various market conditions and strategies.
4. Extending Signals
• Extend signals by specifying conditions such as "RSI cross AND MA cross WITHIN 2 bars."
5. Feeding Results into Backtesting Engine
• Evaluate the performance of your strategies by feeding the results into a backtesting engine.
█ Available Indicators:
External Inputs
• Combine up to 4 custom indicators to assess their effectiveness individually and in combination with other indicators.
MACD (Moving Average Convergence Divergence)
• Analyze MACD signals across multiple timeframes and customize your strategies.
• Signal Generators:
• Signal 1: 🔼 (+1) MACD ⤯ MACD Signal Line 🔽 (-1) MACD ⤰ MACD Signal Line
• Signal 2: 🔼 (+1) MACD ⤯ 0 🔽 (-1) MACD ⤰ 0
• Filter 1: 🔼 (+1) MACD > 0 🔽 (-1) MACD < 0
RSI (Relative Strength Index)
• Utilize RSI signals with flexibility across different timeframes.
• Signal Generators:
• Signal 1: 🔼 (+1) RSI ⤯ Oversold 🔽 (-1) RSI ⤰ Overbought
• Signal 2: 🔼 (+1) RSI ⤰ Oversold 🔽 (-1) RSI ⤯ Overbought
• Filter 1: 🔼 (+1) RSI <= Oversold 🔽 (-1) RSI >= Overbought
MA1 and MA2 (Moving Averages)
• Choose from various types of moving averages and analyze them across multiple timeframes.
• Signal Generators:
• Filter 1: 🔼 (+1) Source Above MA 🔽 (-1) Source Below MA
• Filter 2: 🔼 (+1) MA Rising 🔽 (-1) MA Falling
• Signal 1: 🔼 (+1) Source ⤯ MA 🔽 (-1) Source ⤰ MA
Bollinger Bands
• Multi Time Frame
• Signal Generators:
• Signal 1: 🔼 (+1) Close ⤯ BBLower 🔽 (-1) Close ⤰ BBUpper
• Signal 2: 🔼 (+1) Close ⤰ BBLower 🔽 (-1) Close ⤯ BBUpper
Stochastics
• Customize your MTF Stochastics analysis between Normal Stochastic and Stochastic RSI.
• Signal Generators:
• Filter 1: 🔼 (+1) K < OS 🔽 (-1) K > OB
• Signal 1: 🔼 (+1) K ⤯ D 🔽 (-1) K ⤰ D
• Signal 2: 🔼 (+1) K ⤯ OS 🔽 (-1) K ⤰ OB
• Signal 3: 🔼🔽 Filter 1 And Signal 1
Ichimoku Cloud
• MTF
• Signal Generators:
• Signal 1: 🔼 (+1) Close ⤯ Komu Cloud 🔽 (-1) Close ⤰ Komu Cloud
• Signal 2: 🔼 (+1) Kumo Cloud Red -> Green 🔽 (-1) Kumo Cloud Green -> Red
• Signal 3: 🔼 (+1) Close ⤯ Kijun Sen 🔽 (-1) Close ⤰ Kijun Sen
• Signal 4: 🔼 (+1) Tenkan Sen ⤯ Kijun Sen 🔽 (-1) Tenkan Sen ⤰ Kijun Sen
SuperTrend
• MTF
• Signal Generators:
• Signal 1: 🔼 (+1) Close ⤯ Supertrend 🔽 (-1) Close ⤰ Supertrend
• Filter 1: 🔼 (+1) Close > Supertrend 🔽 (-1) Close < Supertrend
Support And Resistance
• Receive signals when support/resistance levels are breached.
Price Action
• Analyze price action across various timeframes.
• Signal Generators:
• Signal 1 (Bar Up/Dn): 🔼 (+1) Close > Open 🔽 (-1) Close < Open
• Signal 2 (Consecutive Up/Dn): 🔼 (+1) Close > Previous Close # 🔽 (-1) Close < Previous Close #
• Signal 3 (Gaps): 🔼 (+1) Open > Previous High 🔽 (-1) Open < Previous Low
═════════════════════════════════════════════════════════════════════════
Unlock the full potential of these indicators and tools to enhance your trading strategies and improve your decision-making process. With over 10 indicators and more than 30 different ways to generate signals you can rapidly test combinations of popular indicators and their strategies with ease. If your interested in more indicators or I missed a strategy, leave a comment and I can add it in the next update.
Happy trading!
Sync Frame (MTF Charts) [Kioseff Trading]Hello!
This indicator "Sync Frame" displays various lower timeframe charts for the asset on your screen!
5 lower timeframe candle charts shown
Timeframes auto-calculated using the new timeframe.from_seconds() function
Heikin-Ashi candles available
Baseline chart type available
Dynamic Scaling for ease of use
User customizable timeframes
Simple script (:
The image above shows the baseline chart type.
Time image above shows a traditional candlestick chart.
The image above shows a hekin-ashi chart.
The image above shows the indicator when nearly zoomed in as much as possible. The lower timeframe charts adjust to my chart positioning.
The image above shows my screen fully zoomed out; the lower timeframe charts adjust in both height and width to accommodate my chart positioning!
Thank you for checking this out (:
Tick Weighted Average Price RangesTick Weighted Average Price Ranges
Tick weighted average prices ( TiWAP ) are prices averaged from movements of TICK that break above or below configured sensitivity (500 default). The TiWAP indicator plots bands calculating various standard deviations from that averaged price that expand as the anchorage session progresses.
A core feature of TiWAP is the "Show Target Levels" feature which projects prior anchored ending deviation values as horizontal plots where price often reacts.
This feature has become increasingly critical to trade plan development with referencing a myriad of TiWAP timeframes and numerous deviations within and beyond the standard 1st, 2nd and 3rd deviation multipliers.
Thus the feature of plotting these prior anchored ending deviation values has been ported into a standalone indicator.
It's now incredibly simple to pick a timeframe, setup standard multipliers and then additional multipliers that can simply be chosen as applicators to the main multipliers.
Example Configuration
Anchorage: Weekly
Standard Multipliers 1st, 2nd and 3rd: 1.0, 2.0 and 3.0 respectively
1st Additional: -0.5
This would result in:
Standard Deviation 1st (1.0, -1.0) Upper, Lower
Additional Deviation 1st (0.5, -0.5) Upper, Lower
Standard Deviation 2nd (2.0, -2.0) Upper, Lower
Additional Deviation 2nd (1.5, -1.5) Upper, Lower
Standard Deviation 3rd (3.0, -3.0) Upper, Lower
Additional Deviation 3rd (2.5, -2.5) Upper, Lower
The aim is to have the "in-between" deviations without the need to use manual drawing tools to find potential areas of pivot, a complete range from the above example would then provide:
3.0, 2.5, 2.0, 1.5, 1.0, 0.5, Prev TiWAP, -0.5, -1.0, -1.5, -2.0, -2.5, -3.0
Usage
Use this to conduct multi-timeframe analysis of where price is relative to TiWAP ranges, review potential reversals at broad market extensions or perhaps trend continuation opportunities given full timeframe continuity (FTFC).
If utilizing higher timeframe anchorages such as quarterly, yearly then chart timeframe will need to scale up in order to allow for proper calculations to run within the 5000 lookback limitations of TradingView.
The higher chart timeframes also may benefit from higher sensitivity settings, such as 1000 on 15m chart and yearly anchorage.
Markets
As TICK tracks up/down tick movement of NYSE/NASDAQ, this indicator should be focused on stocks that closely track those markets. TICK data is only available during RTH so it's recommended to leave ETH off and set anchorage to RTH only when using session timeframe.
Blockchain FundamentalThis indicator is made for traders to harness fundamental blockchain data for better decision-making. Unlike traditional tools, this indicator doesn't depend on standard technical indicators. It offers a novel perspective by focusing on core blockchain metrics like capitalization, miner activity, and other intrinsic data elements. I've designed a distinct scoring logic, exclusive to BF, ensuring it's user-friendly and provides actionable insights for traders at all levels.
Mainly created for Bitcoin , but can be applied to any other crypto assets in cost of losing some metrics in the analysis.
Ethereum chart:
Features:
Customizable Moving Averages:
Choose from an array of moving averages, with the flexibility to adjust the length for a tailored analysis, aiding in pinpointing asset trends.
Blockchain Metrics Integration:
Incorporates a range of blockchain metrics such as Market Cap to Realised Cap ratio, Spent Output Profit Ratio, ATH Drawdown, and more.
Blockchain Metrics Evaluation:
Each metric can be toggled on/off to customize the analysis. Using default settings, traders can use all of the metrics combined.
Every metric is essentially evaluated on a scale from -100 to 100 and then combined with others. If any metric is uncertain about its direction (equals to 0), then the score of it is not accounted in a final calculation.
Kalman Filter:
This indicator offers the option to apply a Kalman filter to the signals, enhancing the smoothness and accuracy of the indicator’s output. This is my approach to mitigate the noise in the final output.
Signal Oscillator:
Displays the aggregated score of all selected blockchain metrics.
Offers visual signals with adjustable upper and lower bounds for easy interpretation based on particular asset observation.
Visual Elements:
Signal Oscillator:
A visual representation of the aggregated blockchain fundamental score.
(White line for a raw calculation, orange line for kalman-filtered one)
Signal Counter:
Displays the count of metrics currently being considered in the fundamental score calculation. (grey line at the middle of an indicator)
Buy/Sell Signal Coloring:
The background color changes to indicate potential buying or selling opportunities based on user-defined bounds.
Usage:
Analysis:
Use the signal oscillator to identify potential market tops and bottoms based on blockchain fundamental data.
Adjust the bounds to customize the sensitivity of buy/sell signals.
Customization:
Enable/disable specific blockchain metrics to tailor the indicator to your analytical needs.
Adjust the moving average type and length for better analysis.
Integration:
Combine with other technical indicators to create a comprehensive trading strategy.
Utilize in conjunction with volume and price action analysis for enhanced decision-making. Every output could be used in traders custom strategies and indicators.
RSI + FIB HH LL StopLoss Finder/Contrarian TradesThis indicator is a multi-timeframe indicator that works in any timeframe.
It takes a price reading of the highest or lowest bar in the past based on Fibonacci numbers and plots it.
In addition, the RSI smoothed by a 5-day moving average can be used to detect signs that previous highs or lows will be reached in advance.
This gives insight into determining stop-loss values or entering the market in a contrarian manner.
This is an example of BTCUSDT 4Hour Chart
Here is BTCUSDT 1Hour Chart
For scalpers BTCUSDT 15min Chart Example
Fibonacci Number is 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, ...
FIbonacci Ratio is 0.236, 0.382, 0.5, 0.618, 1, 1.618, 2.618, 4.236, ...
Multi Timeframe Trend StrengthThis code is an advancement of my previous percentile-based trend strength. It follows the same concept, except this code display the trend and trend strength in multiple timeframe (1 min, 5 min, 15 min, 1hr and 4hr).
This gives an indication of the trend is evolving and allows to see how short-term trend matches with the long-term trend.
How it works:
The script assesses trend strength through percentile values derived from high and low prices across various time periods. It categorizes the current trend as either Bullish, Bearish, or N/A (No Trend) with the following steps:
Percentile Calculations: The code calculates the 75th percentile of high prices (e.g., percentile_13H) and the 25th percentile of low prices (e.g., percentile_13L) for specified Fibonacci-based periods (13, 21, 34, 55, 89, and 144). These percentiles serve as thresholds for identifying strong trends.
Calculate Highest High and Lowest Low: It computes the highest high (75th percentile high price of the longest period) and lowest low (25th percentile low price of the longest period), referred to as highest_high and lowest_low. These values establish critical price levels.
Trend Strength Conditions: For each percentile and period, the code checks if the percentile exceeds the highest high (trendBull) or falls below the lowest low (trendBear). These conditions gauge the strength of bullish and bearish trends.
Count Bull and Count Bear: Variables countBull and countBear tally the number of bullish and bearish conditions met, helping assess trend strength.
Weak Bull and Weak Bear Count: The code calculates weak bullish and bearish conditions, occurring when percentiles fall within the range defined by highest_high and lowest_low but don't meet strong trend criteria.
Bull Strength and Bear Strength: bullStrength and bearStrength are calculated based on counts of bullish, bearish, weak bullish, and weak bearish conditions, representing overall trend strength.
Strong Bull and Bear Conditions: These conditions arise when the 75th percentile of high prices (bull conditions) or the 25th percentile of low prices (bear conditions) surpass or dip below the highest high or lowest low, respectively, for the specified period. Strong conditions indicate robust trends with significant price movements.
Weak Bull and Bear Conditions: Weak conditions occur when percentiles fall within the range between highest_high and lowest_low, suggesting some bullish or bearish tendencies without reaching extreme levels. These imply less decisive trends.
Current Trend Identification: The current trend is determined by comparing bullStrength and bearStrength. A greater bullStrength indicates a Bull trend, greater bearStrength implies a Bear trend, and equal values denote No Trend (N/A).
BonsaiBonsai is a tailored tech analysis tool for all traders. It uses dynamic thresholds, sensitivity modes, and averaging to identify market trends. Its scoring system, visual cues, and alerts offer an intuitive trading journey.
═════════════════════════════════════════════════════════════════════════
🌳 Bonsai 🌳 Trend Analysis Indicator
📘 Overview
Bonsai is designed to aid traders in recognizing market trends, utilizing sensitivity as its pivotal component.
📌 Script Logic
• Threshold-Based Trends: Bonsai sets dynamic thresholds based on market deviations from previous highs or lows to identify trend reversals.
• Signal Generation: After ascertaining the trend direction, Bonsai provides buy/sell signals from trend crossovers and crossunders.
• Returns & Scoring: Each signal's potential returns are calculated, considering asset-specific trading fees. A scoring system (1-10) is introduced for traders to evaluate potential profitability quickly.
• Auto-Threshold: Threshold adjustments are made depending on the selected sensitivity mode, optimizing adaptability.
• Visual Indicators: Bonsai visualizes potential market highs and lows through trend lines. Colors differentiate between bullish and bearish market sentiments.
• Trend Line Enhancement with ALMA : Bonsai integrates the Arnaud Legoux Moving Average (ALMA), aiming to refine trend line representation. ALMA may reduce noise, providing a smoother trend line, which might be useful during volatile market conditions. This can potentially lead to improved trend forecasts with fewer fakeouts.
🎯 Purpose
• For Experienced Traders: Bonsai complements professional analysis with its data-driven insights, catering to diverse trading strategies.
• For Newcomers: Serving as an entry to technical analysis, Bonsai's intuitive design and streamlined settings are beginner-friendly.
🛠 Key Elements
• Dynamic Thresholds: Bonsai’s thresholds are dynamic, adapting to market conditions and user-selected sensitivity mode.
• Scoring System: Bonsai’s unique scoring system is grounded on potential returns, streamlining complex market data interpretation.
Performance Table Breakdown
🔧 Classic Elements & Value Added
• Refined Moving Averages: Bonsai incorporates standard moving averages like the EMA, SMA and ALMA to smooth and refine trend lines.
• Enhanced Visual Representation: Bonsai strives to provide clarity beyond just displaying market directions. Its visuals are crafted to help traders understand and potentially act promptly. The deliberate use of color dynamics, trend indications, and integration of moving averages come together to create a representation that aims to stand out in its clarity and simplicity.
📊 Features
• Dynamic Sensitivity Modes : Settings include:
• (Auto) Slow, Mid, Fast : These modes allow Bonsai to auto-adjust its sensitivity in line with market changes.
• 'Slow': Aims to capture larger market moves with fewer signals.
• 'Mid': A balanced mode with a moderate signal frequency.
• 'Fast': Caters to rapid market changes, providing more signals.
• Manual : For traders who prefer setting their sensitivity.
• Visualization: Green indicates bullish trends, and Red indicates bearish ones. Trend colors are customizable in gradient intensity and opacity.
• Performance Insights : A table displaying the effectiveness of all modes, guiding your strategy choices.
• Dashboard Themes : Users can switch between light and dark themes.
• Alert System : Real-time buy/sell signal notifications.
• Compatibility : Output can be integrated as a source for other indicators.
Indicator Settings Menu
🎛 How To Use Bonsai
1. Select your sensitivity mode.
2. Use color cues to analyze market directions.
3. Check the performance insights for strategy adjustment.
4. Set alerts to stay updated.
📜 Feedback & Improvement
We value your feedback. As the trading world evolves, Bonsai will adapt, meeting traders' dynamic needs.
❗️ Disclaimer
Bonsai serves as an analytical tool and isn’t a standalone trading strategy. Its performance table is for reference, and accuracy isn’t guaranteed. Always research thoroughly and be mindful of trading risks. Bonsai facilitates analysis but doesn’t promise particular outcomes.
Predictive Volume + MTF [Pro]"Predictive Volume + MTF " is a predictor of near-future volume available on 13 of your favorite time frames. The script calculates the volume's % change (PredVol) between Current Volume vs. Previous Volume by predicting whether PredVol will be higher or lower at the end of the current bar using an "elapsed time" vs "volume so far" concept. This gives the benefit of the most up-to-date information without artificial low/high comparisons when a bar has just formed. For example, it would be common to see -100% in a lot of instances when a new bar is just forming which would be normal because volume at the start of a new candle will generally be lower than where it was when the last bar closed. Where this indicator shines is during this old to new bar formation relative to the volume that's carried over to the new bar. As a result, it will now be common to see PredVol values starting much higher because the calculation is dividing up the bar and analyzing fractions of it instead of the entire bar that would otherwise lead to these incorrect volume % change calculations.
Examples of Predictive Volume % Change:
In addition, this indicator uses many other advanced and robust features:
⚡ Matrices that create the table, allowing you to add and remove rows and columns to customize the table to show only the information that's important to you
⚡ View up to 13 time frames at once - it's generally a good idea to have at least 5 time frames up to get an overall feeling of the direction/sentiment of volume with the 1d being 1 of the 5
⏩ Includes the following popular time frames: 1m, 3m, 5m, 10m, 15m, 30m, 1h, 2h, 4h, 8h, 1d, week, month
⚡ 3 "bias mode" choices that use Relative Volume (RVOL) from calculations between Current, Previous & Average Volume that provide a heat map with varying degrees of color representing buying & selling momentum of your favorite asset. Traders generally have an innate bias when it comes to their trading methodology. The script's
author created separate modes to account for this. One way to utilize the indicator is to use 2 on your chart, 1 Bullish and 1 Bearish, to see if volume sentiment is skewed towards your particular bias
⏩ 🟢 Standard Mode 🔴 - displays green and red to depict volume momentum using same RVOL calculations as Bullish & Bearish modes
⏩ 🐂 Bullish Mode 🐂 - displays 5 colors to represent the levels of intensity of the Buy/Sell/RVOL data (light blue, green, yellow, light orange, dark orange)
⏩ 🐻 Bearish Mode 🐻 - displays 5 colors to represent the levels of intensity of the Buy/Sell/RVOL data (light red to dark red)
Ex. of all 3 bias modes showing very bullish volume sentiment:
Ex. of all 3 bias modes showing very bearish volume sentiment:
⚡ 2 types of alerts: PREDEFINED and CUSTOM
💡 PREDEFINED ALERTS consist of 4 Bullish & Bearish levels with Lvl 1 designed to be less sensitive than Lvl 2 etc
⏩ Configurable for every time frame, "On Close" or "Each Bar". On Close could be a better choice on lower time frames so that you're not getting a bunch of triggers over a short duration & Each Bar could be a better option for higher time frames so that you don't miss a move mid bar for instance
⏩ Creating a PREDEFINED BULLISH/BEARISH ALERT saves a snapshot of the alert's settings. You can then change the settings and create another alert
⏩ For example, you could create one alert for any alert type (bull and/or bear), for every time frame all at once, or you can create multiple & separate alerts, giving each one a unique name with the time frame that it's for: ex. BTC - Bullish Vol Lvl1 (1m) (keep in mind that TV provides you the ticker, time frame & alert
type automatically (the script's author hard-coded the label names within the script and as a result when they do fire you're provided the type of alert, such as "Bearish Vol (Lvl 1). Technically, you don't even need to name the alert again)
In this example, you're provided information on how to create PREDEFINED ALERTS, what conditions cause the alerts to trigger and how they'll look when they do fire
💡 CUSTOM ALERTS consists of 6 metrics giving you the ability to create your own custom compound alerts
⏩ Configurable for every time frame, "On Close" or "Each Bar". On Close could be a better choice on lower time frames so that you're not getting a bunch of triggers over a short duration & Each Bar could be a better option for higher time frames so that you don't miss a move mid bar for instance
⏩ Creating a CUSTOM ALERT works the same way as PREDEFINED ALERTS (see chart below)
⏩ Check your conditions in real-time for accuracy via a debug feature aka "SHOW HELP FOR TIME FRAME"
In this example, you're provided information on how to create CUSTOM ALERTS
⚡ Header function that provides the ticker, time frame and session that you're on (can use in lieu of TV's watermark feature, or use together)
⏩ There's 2 customizable header inputs - you could include your TradingView username in one of them for the times when promoting your charts across your favorite social media sites
⚡ Timer that shows you when a bar will begin/end plus other features that allow you to change the size and positioning of the table within your charts
⚡ An input that allows you to change the "significant figures" for rounding purposes - can be especially useful when volume is low or when you're trading OTC stocks
⚡ 4 volume moving average lengths - Intraday, Daily, Weekly, Monthly - for those times when 1 moving average to cover the entire gamut of just won't suffice
////////////////////////////////
There's quite a bit more information provided in the attached charts as well as the tooltips within the inputs section of the indicator. Should you have any questions, feedback etc, please do not hesitate to contact the script's author. My hope is that this indicator becomes an invaluable resource to you and you're able to integrate it in to your everyday trading tool bag to make more informed decisions.
Ehlers SuperSmootherJohn F. Ehlers has provided the SuperSmoother filter in several of his works, including his book "Cyclical Analytics for Traders", Chapter 3.
The SuperSmoother filter is utilized whenever one might typically apply a moving average of any kind. The outcome is that the output signal from the SuperSmoother filter displays significantly less lag compared to an equivalent amount of smoothing from a moving average. The lag difference between a moving average and the SuperSmoother filter becomes even more pronounced when critical periods are extended.
Market data contains noise, and the purpose of smoothing filters is to mitigate this noise. In fact, there are various types of noise inherent in market data. One type of noise is systemic, originating from random trading activities. Another type is aliasing noise, which arises due to the use of discrete data. Aliasing noise dominates the data when considering shorter cycle durations.
It's tempting to perceive market data as a continuous wave, but that's a misconception. Taking the closing price as representative of a bar provides just a single data point. Whether you opt for the midpoint between the high and low instead of the closing price, you're still limited to one sample per bar. Given the discrete nature of this data, certain spectral implications must be considered. For instance, the shortest feasible analysis period (without aliasing) is a two-bar cycle. This is referred to as the Nyquist frequency, at 0.5 cycles per sample.
An ideally sampled two-beat sinusoidal cycle becomes rectified when discretized. However, peak sampling for the cycle isn't always guaranteed, and interference between the sampling rate and the data frequency results in aliasing noise. This noise decreases as the data period lengthens. For example, a four-beat cycle implies four samples per cycle. With more samples, the sampled data provides a better representation of the sinusoidal component. The replica becomes even more accurate for an eight-bar data component. The increased precision of discrete data signifies that aliasing noise decreases as cycle durations expand.
A smoothing filter should possess the selectivity to reduce the aliasing noise below systemic noise levels. Given that aliasing noise increases by 6 dB per octave above the filter's selected cutoff frequency and the SuperSmoother's attenuation rate is 12 dB per octave, the SuperSmoother filter emerges as an effective tool to virtually eliminate aliasing noise in its output signal.
There are already several SuperSmoother indicators on Tradingview, but I like to structure the code and highlight the main components as functions rather than hiding them in the code. I hope this is useful for those who are starting to learn Pine Script.
Machine Learning: kNN sentiment Anomaly detector [Ox_kali]Introduction:
This script represents a methodical integration of advanced machine learning techniques into financial market analysis. Utilizing the k-Nearest Neighbors (kNN) algorithm, a supervised learning method, the script systematically processes historical price data to detect anomalies in investor sentiment. By analyzing divergences between normalized investor satisfaction and actual asset prices, it offers a data-driven approach to identifying potential market inflection points.
Key Points:
Integration of the kNN machine learning algorithm to spotlight trading anomalies.
Incorporation of user-defined parameters, granting enhanced flexibility tailored to diverse trading strategies.
Deployment of normalization techniques, rendering a consistent perspective on average investor satisfaction.
Trading Application:
At its core, the script holds the capability to generate buy and sell signals derived from the detected anomalies, with a particular emphasis on those originating from divergences. Visual markers, represented by green and red backgrounds, provide an objective visualization of potential points of interest for traders.
Important Note:
This algorithm is an experimental embodiment of the kNN machine learning method. The parameters have not been fully optimized, and given the algorithm’s intricate nature and the high values set for kNN parameters, users might experience a slight delay during loading. On a personal note, it appears that this algorithm can detect shifts in trends on higher time frames, with the green and red color cues serving as key indicators. It also demonstrates promising performance on shorter time frames
Feedback Welcome:
Any feedback or suggestions on parameter settings are appreciated. Feel free to share your experiences in the comments.
Please note that the Machine Learning: kNN Investor sentiment Anomaly detector is provided for educational purposes only and is not meant to constitute financial advice. This indicator is not a guarantee of future market performance and should be used in conjunction with proper risk management. Always ensure that you have a thorough understanding of the indicator’s methodology and its limitations before making any investment decisions. Additionally, past performance is not indicative of future results.
Extended Hour CandleThe Extended Hour Candle shows extended hour candle formations on the Daily chart. This indicator can be useful for those who want to analyse price movements during extended trading sessions without switching to intraday charts with "Extended trading hours" enabled.
How to Use:
Add the Extended Hour Candle indicator to a TradingView chart.
Adjust the color settings according to personal preferences, using the options to set the desired colors for up and down candles.
See the Candle during extended trading hours on the Daily chart
The Opening Range / First Bar By Market Mindset - Zero To EndlesThe script shows the opening range of the instrument based on different resolutions and timeframes.
Inputs :
1. Resolution
It decides the calculation frequency of the script.
In Auto resolution, Standard values have been used.
2. Timeframe
It decides the timeframe for the OHLC values.
By default, it will use the chart timeframe and so chart OHLC values.
3. Lookback
It decides the no. of ranges shown on the chart.
Middle Line can be hidden from the settings.
The script can be used for any instrument and on any timeframe.
If price is above the opening range or the middle line, a trader should look for long opportunities.
If price is below the opening range or the middle line, a trader should look for short opportunities.
A sideways or choppy move is exoected if Middle line is crossed again and again.
For trading, wait for atleast 1st bar to close. and let the opening range build up first.
Happy Trading
Bunch of WillyThe indicator allows you to track overbought/oversold conditions using the Williams indicator on several higher timeframes of the same ticker on one chart. Based on the relative position of the lines of different timeframes and their position relative to the exponential moving average, you can track the occurrence of situations of simultaneous overbought/oversold of several timeframes, which is a cleaner reversal signal than overbought/oversold on just one chart timeframe. So far the script itself does not indicate these points, but perhaps in one of the next updates I will fix this.
In addition, the exponential moving average can be used to determine the direction of the trend.
Индикатор позволяет на одном графике отслеживать перекупленность/перепроданость по индикатору Вильямса на нескольких более высоких таймфреймах того же тикера. Основываясь на взаимном положении линий разных таймфреймов и их положении относительно экспоненциальной скользящей средней можно отслеживать возникновение ситуаций одновременной перекупленности/перепроданности нескольких таймфреймов что является более чистым разворотным сигналом чем перекупленность/перепроданность на одном лишь таймфрейме графика. Пока скрипт сам не обозначает эти моменты, но возможно в одном из следующих обновлений я это исправлю.
Кроме того по экспоненциальной скользящей средней можно определять направление тренда.
HTF Candle Insights (Expo)█ Overview
The HTF Candle Insights indicator helps traders see what's happening in larger time frames (HTF) while they're looking at smaller ones. This tool lets traders get a complete picture of market trends and price movements, helping them make smarter trading choices. It's really useful for traders who want to understand the main market trends without constantly switching between different chart timeframes.
In simpler terms , this indicator brings the big picture into the smaller frame, so traders don't miss out on what's important while focusing on the details.
█ How It Works
The indicator plots HTF candles on the existing chart, allowing users to view them concurrently with the candles of the current timeframe. This dual visual representation helps in discerning the prevalent market trends and significant price levels from both the current and higher timeframes.
█ How to Use
Trend Analysis
Traders can leverage this indicator to analyze overall market trends by observing HTF candles alongside the current timeframe candles. Recognizing HTF trends aids in aligning trades with the dominant market movement, potentially increasing the probability of successful trades.
Support and Resistance Identification
By viewing the high, low, and mid-levels of HTF candles, traders can identify potential support and resistance zones, enabling them to establish strategic entry and exit points, place stop-losses effectively, and manage risk proficiently.
█ Settings
Timeframe and Candle Amount:
Users can specify the higher timeframe and the number of HTF candles they wish to visualize on their current chart.
Visual Adjustments:
Traders can customize the color schemes for upward and downward candles and their wicks, and adjust the visibility and colors of the range lines, allowing for a tailored visual experience.
Range Lines:
Users have the option to display the high/low range of the displayed candles, and, if preferred, the mid-range line, enabling them to gain insights into significant price levels and ranges.
Table Display:
The indicator offers the ability to display a table, which provides an overview of the current chart's timeframe and the specified HTF.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
TMA MTFThis indicator plots three different Triple Moving Averages (TMAs) for two different time frames on a price chart:
Middle TMA Line: This is the main TMA line, calculated based on a user-defined number of past bars. It's represented by a solid line on the chart.
Upper TMA Line: This line is calculated by adding a certain multiple of the Average True Range (ATR) to the main TMA line. It helps identify potential resistance levels and is plotted as a solid line.
Lower TMA Line: Similar to the upper line, this line is calculated by subtracting a multiple of the ATR from the main TMA line. It helps identify potential support levels and is also plotted as a solid line.
Additionally, you have the option to overlay these TMA lines on a higher timeframe (HTF) if desired. When you enable this feature, it plots the same three TMA lines but calculated using data from a higher timeframe, which can provide additional context for your trading decisions.
The indicator uses different colors for the TMA lines based on their relationships:
Green: The middle TMA line is above the higher timeframe middle TMA line, suggesting a potential bullish (upward) trend.
Red: The middle TMA line is below the higher timeframe middle TMA line, suggesting a potential bearish (downward) trend.
In addition, it plots the upper and lower TMA lines in shades of purple and maroon, respectively, on the higher timeframe for reference.
Overall, this indicator helps traders identify potential areas of support and resistance and assess the trend direction by comparing the TMA lines of different timeframes.
Variable:
TMA_Period:
This input variable allows you to specify the number of past bars that are used to calculate the main Triple Moving Average (TMA) line. A larger value will result in a smoother TMA line, while a smaller value will make it more responsive to recent price changes.
ATR_Period:
This input variable determines the number of past bars used to calculate the Average True Range (ATR). The ATR is a measure of price volatility. A longer ATR period considers a broader range of price movement, while a shorter period reacts more quickly to recent volatility.
ATR_Multiplier:
This input allows you to set a multiplier for the ATR on the current timeframe. The ATR value is multiplied by this factor to calculate the upper and lower TMA lines. A higher multiplier will result in wider TMA bands, while a lower multiplier will make them narrower.
ATR_Multiplier_HTF:
Similar to ATR_Multiplier, this input sets a multiplier for the ATR on a higher timeframe (HTF). It affects the width of the HTF TMA bands.
TF_1:
This input variable lets you choose the desired higher timeframe (HTF) for the indicator. You can select from various timeframes, including 1 minute, 5 minutes, 15 minutes, 30 minutes, 60 minutes, 240 minutes (4 hours), daily (D), weekly (W), monthly (M), or choose "Auto" to let the script automatically determine the HTF based on the current timeframe.
src:
This input allows you to choose the price source used for calculations. By default, it's set to 'close,' which means the closing prices of each bar are used. You can change this to other price sources like 'open,' 'high,' 'low,' or 'ohlc4' (a combination of open, high, low, and close prices).
ma_type:
This input lets you select the type of moving average used in the calculations. You have three options: Weighted Moving Average (WMA), Double Weighted Moving Average (DWMA), and Triple Weighted Moving Average (TWMA).
Plot_TMA_HTF_Midline:
If set to 'true,' it will plot the middle TMA line of the higher timeframe (HTF) on the chart. If set to 'false,' the HTF middle TMA line will not be displayed.
Cryptopreneur Dynamic Support & ResistanceOverview
The Cryptopreneur Dynamic Support & Resistance (Cryptopreneur S&R) is a technical analysis tool designed to identify key support and resistance levels based on historical price data. This indicator uses both average prices and Fibonacci-based calculations to derive multiple levels of support and resistance, offering traders enhanced insights into potential price reversal zones.
Features
1. Lookback Period
Allows users to define the number of historical bars to consider for the calculation.
2. Average Price Calculation
The average of the high and low prices of each historical bar is computed to derive a balanced representation of the price for the specified period.
3. Dynamic Support and Resistance
The highest and lowest average prices within the lookback period are used as the primary resistance and support levels.
4. Fibonacci-based Additional Levels
Additional resistance and support levels are computed using Fibonacci retracement ratios (0.382, 0.618, and 0.786). These levels offer potential zones where price might face resistance or find support during its movement.
5. Visual Enhancements
Different colors and line thicknesses are used to differentiate the various support and resistance levels, making it easier for traders to identify and track them on the chart.
6. Alerts
The indicator provides alert conditions for when the price crosses any of the support or resistance levels, aiding traders in making timely decisions.
Usage
Support and Resistance
These are fundamental concepts in technical analysis representing price levels where the market tends to find resistance (price stops going higher) or support (price stops going lower). The Cryptopreneur Dynamic Support & Resistance provides traders with these levels dynamically based on recent price action and Fibonacci calculations.
Trade Setups
Traders can use these levels to identify potential trade entry and exit points. For instance, if the price approaches a resistance level and shows signs of reversal, it might be an opportunity to go short, expecting the price to go down.
Stop Loss and Take Profit
The levels can also be used to set protective stop losses or take profit levels, ensuring that traders manage their risks effectively.
Alerts
Stay updated with price movements through customizable alerts whenever the price crosses any of the defined levels.
Conclusion
The Cryptopreneur Dynamic Support & Resistance offers a comprehensive approach to identifying key support and resistance levels. By combining historical price data with Fibonacci ratios, it provides traders with a more nuanced understanding of potential price pivot points, thus aiding in better decision-making. Whether you're a beginner or an experienced trader, the Cryptopreneur S&R can be a valuable addition to your technical analysis toolkit.
Disclaimer
The The Cryptopreneur Dynamic Support & Resistance (Cryptopreneur S&R) is provided as a technical analysis tool and should not be interpreted as investment advice, a recommendation concerning the purchase or sale of any security, or a suggestion to engage in any specific transaction. All decisions related to buying, selling, or trading any securities or assets are solely the responsibility of the individual user, and it is advised to always consult with a licensed financial advisor or conduct thorough research before making investment decisions. Past performance is not indicative of future results. Use the Cryptopreneur S&R Indicator at your own risk. The creators or providers of this tool bear no responsibility for any losses incurred as a result of its usage.
Daily TrendDescription:
The "Daily Trend" script is a powerful technical analysis tool designed for TradingView. This indicator helps traders identify key support and resistance levels based on daily price data. It offers a visual representation of these levels, along with other technical indicators like Exponential Moving Averages (EMA), Supertrend, and Parabolic SAR.
Features:
Past Candle Price Levels: This script calculates and displays past daily candle price levels, including R1, R2, R3, R4, S1, S2, S3, and S4. These levels are vital for identifying potential reversals and breakout points.
Exponential Moving Average (EMA): The script includes an EMA indicator with a customizable period to help traders spot the trend direction and potential crossovers.
Supertrend Indicator: The Supertrend indicator is used to identify trend changes. It plots the Supertrend line and highlights the trend direction with color-coded regions.
Parabolic SAR: The Parabolic SAR indicator is integrated into the script to assist traders in identifying potential entry and exit points in the market.
Customizable Alerts: Traders can customize the indicator by choosing which past candle price levels and other features to display on the chart.
How to Use:
Apply the "Daily Trend" script to your TradingView chart.
Customize the indicator by enabling or disabling specific features, such as past candle price levels and EMA.
Pay attention to the color-coded regions for Supertrend and Parabolic SAR to determine the current trend direction.
Look for potential reversal or bounce signals based on the indicator's signals and the price action.
Consider using this script in conjunction with your trading strategy for enhanced technical analysis.
Risk Warning: Trading involves significant risk, and past performance is not indicative of future results. Always practice proper risk management and consider the broader context of the market before making trading decisions.
Forex & Stock Daily WatchList And Screener [M]Hi, this is a watchlist and screener indicator for Forex and Stocks.
This indicator is designed for traders who trade in the forex markets and monitor developments in indices and other currency pairs.
It includes information on 14 indices such as the volatility index, Baltic dry index, etc. You can customize the indices as you wish. The indices table contains the index's price (or points), daily change, stochastic value, and trend direction.
The second table is designed for trading forex and stock currency pairs.
In this table, you will find information such as price, volume, change, stochastic, RSI, trend direction, and MACD result for all traded pairs. You can customize all the currency pairs in this table as you wish, and you can also tailor the oscillator settings to your preferences.
In the settings section, you can use checkboxes to hide the pairs in both tables.
The "Customize" section in the settings allows you to personalize the table appearances according to your preferences.
ICT HTF FVGs (fadi)ICT HTF FVGs displays the higher timeframe FVGs on current chart. This allows the trader to easily visualize the higher timeframe FVGs without having to mark them manually and see when price reaches point of interest for possible reversals or reaction.
This indicator attempts to provide as much flexibility possible by being able to define the following:
Higher Timeframe Settings
Timeframe to monitor
Bullish FVG color for this timeframe
Bearish FVG color for this timeframe
Maximum number of FVGs to display for this timeframe
Distance from current bar. This prevents overcrowding of FVGs
Hide Lower Timeframes from current chart. If this option is turned off, 5m timeframe FVGs will be displayed on an hourly chart as an example.
Show Border for the FVGs. Border color is derived from the FVG color
Show Mitigated FVG on the chart. The labels are removed to prevent the labels from overlapping with the candles on the chart/
Show C.E. Draws a line at the middle point of the FVG. This is usually an area of interest.
Show Label Shows the label with label color, background color, and label size.