DUCANH - KELTNER CHANNELS + EMA STRATEGY This is a strategy/combination of warning indicators using 3EMA and Keltner Channels.
I set up this strategy with the aim of reducing analytical labor in the market. When this strategy warns signals, then buy or sell.
This strategy setup works for timeframes, however it can still work for different timeframes.
It works well with Gold in various timeframes. If you want to apply it to other currency pairs, you must fine-tune the parameters for maximum efficiency.
The strategy details are as follows:
Ingredient:
EMA50 + EMA120 + SMA
Keltner Channels
Long position Alert:
EMA50 is above EMA120
The candlestick touches the lower KC band
Long position alert will trigger when the candlestick reaches the above conditions and the candlestick starts crossing up to the SMA
Short position Alert:
EMA50 is below EMA120
The candlestick touches the upper KC band
A short position alert will trigger when the candlestick reaches the above conditions and starts crossing down to SMA
Recommended RR: 1:3
If you have any questions please let me know !
Bänder und Kanäle
ASFX A2 VWAP [LuxAlgo]The ASFX A2 VWAP is a toolkit based on A2 signals and daily anchored VWAP bands, a methodology proposed by trader & educator Austin Silver (ASFX).
Pre-built alerts are also included.
🔶 USAGE
The A2 strategy involves identifying potential trades using specific signals and confirmation from the 21 EMA (Exponential Moving Average). Below we can see a bullish A2 signal triggering as price is closing below the 21 EMA with less than half of the candles closing price.
Within the settings, we have enabled the stop loss setting to assist us with trade setups generated from A2 signals.
Users can enable multiple layers of StDev multipliers on the AAVWAP to find areas of support & resistance alongside the A2 signals & other features included.
🔶 DETAILS
If 'Filter Based On VWAP' is enabled, bullish signals will only be displayed if located above the anchored VWAP, while bearish signals will only be displayed when located under the VWAP. The image above illustrates this, with transparent signals showing the ones that are supposed to be filtered.
The Stop Loss is based on the most recent A2 signal, and is constructed from the 1.618 Fibonacci retracement using the following points depending on the A2 signal:
Bullish: From candle low to the current daily maximum.
Bearish: From candle high to current daily minimum.
🔶 SETTINGS
🔹 A2
Validation EMA Period : Period of the EMA used to validate triggered A2 signals.
Trigger EMA Period : Period of the EMA used to trigger A2 signals.
Filter Based On VWAP : Filter A2 signals based on their location relative to the VWAP output.
🔹 VWAP
source : Input data for the anchored VWAP calculation
Show Central AVWAP : Display central VWAP on the chart
StDev Multiplier 1 : Display first VWAP bands, using a StDev multiplier of 1 by default.
StDev Multiplier 2 : Display second VWAP bands, using a StDev multiplier of 2 by default.
StDev Multiplier 3 : Display third VWAP bands, using a StDev multiplier of 3 by default.
🔹 Stop Loss
Stop Loss : Display stop loss based on the most recent A2 signal
Contrarian Donchian Channel Indicator with Alerts and VisualsTitle: Contrarian Donchian Channel Indicator with Alerts and Visuals
Description:
The Contrarian Donchian Channel Indicator is designed for traders who seek to implement a contrarian approach using the time-tested Donchian Channel method. This indicator not only signals potential entry points but also enhances trading visualization by marking hypothetical stop loss and take profit levels.
Key Features:
Donchian Channel Signals: Utilizes the Donchian Channel to identify potential reversal points in the market. The indicator generates buy signals when the price touches or breaches the lower band, suggesting a potential upward reversal. Conversely, sell signals are generated when the price touches or exceeds the upper band, indicating a possible downward reversal.
Pause After Stop Loss: Incorporates a unique feature that pauses signal generation for a user-defined number of candles after a stop loss is hit. This helps in avoiding immediate re-entries in volatile market conditions.
Stop Loss and Take Profit Visualization: For each signal, the indicator draws dashed lines on the chart to represent the hypothetical stop loss (red) and take profit (green) levels. These levels are calculated based on user-input percentages for stop loss and the risk-reward ratio.
Alerts for Entry Signals: Traders can set up alerts for buy and sell signals, allowing them to stay informed of potential trading opportunities.
How to Use:
Entry Signal: A triangle symbol (green for buy, red for sell) accompanied by an alert (if set) indicates a potential entry point.
Stop Loss and Take Profit Lines: Use the drawn lines as a guide for setting stop loss and take profit levels if the signal aligns with your trading strategy.
Pause Feature: After a stop loss is triggered, observe the pause period before considering new signals to avoid overtrading in choppy markets.
Suitable For:
Traders who prefer a contrarian approach.
Those who use Donchian Channels as part of their trading strategy.
Traders who appreciate visual aids for better decision-making.
Customization Options:
Length of the Donchian Channel.
Risk/Reward Ratio.
Stop Loss Percentage.
Pause duration after a stop loss is hit.
DISCLAIMER:
This indicator is intended for educational and informational purposes only and should not be construed as financial advice. Trade responsibly and always consider your risk tolerance and investment objectives.
Contrarian DC Strategy - w Entry SL Pause and TrailingStopDonchian Channel Setup:
The strategy uses a tool called the Donchian Channel. Imagine this as two lines (bands) on a chart that show the highest and lowest prices over a certain number of past trading days (default is 20 days).
There's also a centerline, which is the average of these two bands.
Entry Conditions for Trades:
Buying (Going Long): The strategy considers buying when the price touches or falls below the lower band of the Donchian Channel. However, this only happens if there has been a pause after a previous losing trade. This pause is a number of candles where no new trades are taken.
Selling (Going Short): Similarly, the strategy considers selling when price reaches or exceeds the upper band of the Donchian Channel. Again, this is subject to a pause after a losing trade.
Stop Loss and Take Profit:
Each trade has a "Stop Loss" and "Take Profit" set. The Stop Loss is a preset price level where the trade will close to prevent further losses if the market moves against your position. The Take Profit does the same but locks in profit if the market moves in your favor.
The Stop Loss is set based on a percentage of the price at which you entered the trade.
The Take Profit is determined by the Risk/Reward Ratio. This ratio helps balance how much you're willing to risk versus the potential reward.
Trailing Stop Loss:
When a trade is profitable, the strategy should involve a "Trailing Stop Loss." This means the Stop Loss level moves (or trails) the price movement to lock in profits as the market moves in your favor.
For a buy trade, if the price moves above the centerline of the Donchian Channel, the Trailing Stop Loss should be adjusted in the middle between the entry price and the centerline. Viceversa for a sell trade, it should be adjusted in the same way if the price goes below the centerline.
IMPORTANT: There's no allert for the trailing stop at the moment.
Post-Stop Loss Pause:
If a trade hits the Stop Loss (i.e., it's a losing trade), the strategy takes a break before opening another trade in the same direction. This pause helps to avoid entering another trade immediately in a potentially unfavorable market.
In summary, this strategy is designed to make trades based on the Donchian Channel, with specific rules for when to enter and exit trades, and mechanisms to manage risk and protect profits. It's contrarian because it tends to buy when the price is low and sell when the price is high, which is opposite to what many traders might do.
ATR StopThe "ATR Stop" indicator is designed to provide traders with insights into potential stop levels based on Average True Range (ATR) calculations specifically tailored for profitable (green candles) and unprofitable (red candles) price movements. This tool aims to assist traders in identifying potential stop levels that adjust dynamically based on the volatility of distinct market conditions.
The indicator functions by calculating two types of ATR: one for profitable movements and the other for unprofitable movements. The Average True Range is calculated separately for green and red candles, allowing users to assess potential stop levels more accurately based on the nature of price movements.
Key features of the "ATR Stop" indicator include:
Custom ATR Calculation: It calculates the ATR for profitable (green) and unprofitable (red) movements separately, considering only specific candle types based on their closing price relative to their opening price.
Dynamic Multiplier: Users can adjust the multiplier to fine-tune the sensitivity of the ATR-based stop levels, accommodating different risk preferences and market conditions.
Clear Visualization: The indicator plots the ATR levels for profitable (green) and unprofitable (red) movements one candle ahead on the chart, providing a visual representation of potential stop levels.
To use the indicator effectively, traders can adjust the ATR length and multiplier parameters based on their trading strategies and risk management preferences. By considering distinct price movements, this tool can assist in setting more informed stop levels in varying market conditions.
Please note that while the "ATR Stop" indicator can be a valuable addition to a trader's toolbox, it should be used in conjunction with other technical analysis tools and risk management strategies to make well-informed trading decisions.
No Wick Bull/Bear Candlesticks with Arrow premiumNo Wick Bull/Bear Candlesticks with Arrow premium
This script is for a custom trading indicator called "No Wick Bull/Bear Candlesticks with Arrow premium" developed by ClearTradingMind. It is designed for use with trading platforms that support scripting, such as TradingView. This indicator combines several technical analysis tools to help traders identify potential buy and sell signals in a financial market.
Key Components of the Indicator:
Moving Average (MA): The script allows users to select from various types of moving averages (SMA, EMA, HMA, etc.), which smooth out price data to identify trends. Users can set the length and type of the moving average.
Upper and Lower Bands: These bands are set at a specified deviation percentage above and below the chosen moving average. They help in identifying overbought and oversold conditions.
No Wick Bull/Bear Candlestick Identification:
Bullish Condition: A bullish candlestick is identified when the closing price is higher than the opening price, the low equals the open, and the close is above the moving average.
Bearish Condition: A bearish candlestick is identified when the closing price is lower than the opening price, the high equals the open, and the close is below the moving average.
No Wick: These conditions also imply that the candlesticks have no wicks, suggesting strong buying or selling pressure.
Arrows for Trading Signals:
No lower wick bull bar
No upper wick bear bar
When a bullish condition is met, a green upward-pointing triangle is plotted below the candlestick, indicating a potential buy signal.
When a bearish condition is met, a red downward-pointing triangle is plotted above the candlestick, indicating a potential sell signal.
EMA 20: An additional Exponential Moving Average with a length of 20 periods is plotted for further trend analysis.
Background Color Changes: The script changes the background color to blue if the EMA 20 is above the upper band, and to red if it is below the lower band, providing visual cues about the market trend.
How It Works:
Traders can input their preferences for the moving average type and length, source of the MA (like closing prices), and the deviation percentage for the bands.
The script then calculates the moving average, upper and lower bands, and checks for bullish or bearish candlestick conditions without wicks.
When such conditions are met, it plots arrows to suggest buy or sell signals.
The EMA 20 and background color changes offer additional trend information.
Usage:
This indicator is particularly useful in markets with clear trends. The no wick bull/bear candlesticks indicate strong buying or selling pressure, and the arrows provide clear visual signals for traders to consider entering or exiting positions. As with all trading indicators, it's recommended to use this tool in conjunction with other forms of analysis to confirm trading signals.
Cloud Channel Signals Indicator [Quantigenics]The Cloud Channel Signals script is a key element of the Cloud Channel Signal System. It primarily focuses on identifying breakout and reversal trades through a sophisticated cloud channel overlay. The script, designed for overlay on the price portion of charts, displays a “cloud-like” channel that signals potential breakout and reversal points around the candles/bars, offering insights into price movements, volatility, and potential support or resistance zones at the outer bands of the channel.
As with all of our scripts, the "Cloud Channel Signals" script, is designed to work on ANY symbol and time frame. The input parameters can be adjusted to fit your specific trading style.
Technical Composition :
Cloud Channel Construction : The Cloud Channel Signals Script is characterized by its innovative Cloud Channel, a proprietary formulation that advances beyond traditional channel calculations. This channel is not a mere adaptation of Bollinger Bands or Donchian Channels; it sets itself apart through a complex blend of calculations. While incorporating elements like standard deviation and high/low price ranges, it notably introduces EMA-based adjustments and integrates intricate mathematical models. This sophisticated algorithmic approach results in a channel that adeptly marks price extremes and dynamically adapts to market volatility and trend shifts. Enhanced by advanced statistical methods, the Cloud Channel offers nuanced insights into market behavior. Its configuration is based on specific range calculations derived from price fluctuations over a defined period, paired with an evolved standard deviation method. This results in a multifaceted analytical tool that surpasses typical channel indicators in depth and sophistication, providing traders with a comprehensive, nuanced view of support and resistance areas.
Signal Generation Mechanism :
> Breakout Signals :
The script identifies breakout signals by assessing price crossover relative to a dynamically constructed channel. This channel is derived from a blend of moving averages and price extremes over a specified period. Oscillator crossovers aid in confirming breakout signals. These crossovers are determined by comparing the oscillator line, calculated as a difference between a transformed moving average and a kernel estimation, with a signal line derived from an exponential moving average of the oscillator.
> Reversal Signals :
Reversal signals are generated through mathematical analysis of price proximity to the channel's edges, which are calculated using a combination of EMA (Exponential Moving Average) values and the highest/lowest price points within a given time frame. The oscillator's role in identifying reversals involves assessing its value relative to its historical range, which is dynamically adjusted based on market conditions.
Oscillator Dynamics :
The oscillator is constructed using a combination of rational quadratic and Gaussian kernel functions applied to close prices. The length parameter of the oscillator controls the window of these calculations, impacting its responsiveness. The dynamic level adjustment in the oscillator is based on a calculated average of its peak and trough values over a specified period, offering adaptive sensitivity.
Channel Gradient Smoothness :
The gradient smoothness of the channel is a function of the variance between the channel's upper and lower bounds. This is visually represented through color intensity changes, reflecting the level of volatility and market momentum.
Trend Bias Assessment :
Trend Bias is calculated using a combination of high/low averages and smoothed price data. This involves taking the average of the highest and lowest prices over a specified length, then applying an exponential moving average to this average for trend direction assessment. This mathematical assessment of trend direction complements the breakout and reversal signals by aligning them with the prevailing market trend.
How to Use the Cloud Channel Signals System :
Usage Considerations:
The script must be configured with precision to ensure it aligns with the trader’s strategy. This involves meticulous setting of channel lengths, oscillator parameters, and trend bias length. For effective application, it’s essential to synchronize the input parameters with the companion "Cloud Channel Indicators" script, ensuring a unified analytical perspective. The option to choose real-time vs. post-bar-closure signal generation offers flexibility in trading styles, catering to both aggressive and conservative trading approaches.
Integration with Cloud Channel Indicators script :
> Use the "Cloud Channel Signals" script alongside the "Cloud Channel Indicators" script for comprehensive market analysis. Ensure identical input parameters across both scripts for consistency.
> Note: The lower indicators are from the 'Cloud Channel Indicators' script, complementing the 'Cloud Channel Signals' script seen here, which generates the 'cloud' and signals on the price chart.
> The 'Cloud Channel Indicators” script can be found here:
Understanding On-Chart Signals :
The script displays entry signals directly on the chart, offering visual cues for both breakout and reversal trading opportunities. Traders can toggle the display of these signals for either breakout or reversal trades, allowing customization based on their trading strategy.
Identifying Entry Points :
> Breakout Trades : Enable 'Show Break Out Trades' to view signals where the price crosses the cloud channel, coupled with oscillator crossovers. A bullish breakout is indicated when the price crosses above the top channel, and a bearish breakout when it crosses below the bottom channel.
> Reversal Trades : Activate 'Show Reversal Trades' to identify potential reversal points. These are highlighted when the price rebounds from the cloud channel's edges, supported by oscillator and trend bias indicators.
Setting Stop Losses Using Outer Bands : Employ the outer bands of the cloud channel as dynamic stop-loss levels. Position stop losses below the lower band for long trades and above the upper band for short trades, adjusting as the bands shift with market conditions.
Executing and Managing Trades : Enter trades based on the script’s breakout or reversal signals, in line with your risk management rules.
Adjust stop-loss levels : Adjust stop-loss levels according to the outer band movements and exit the trade based on reversal signals or profit targets determined by significant support or resistance levels indicated by the cloud channel.
Customizable Alerts for Trading Efficiency :
Set up TradingView alerts to notify you of crucial trading signals like breakout or reversal opportunities, or when the price reaches critical levels defined by the cloud channel.
Adapting Strategy to Market Dynamics:
Input Parameter Settings :
Important Usage Guidance : For seamless integration with its counterpart, the "Cloud Channel Indicators" script, it's crucial to align the input parameter settings across both scripts. When adjusting values from their defaults, ensure that corresponding parameters in both scripts are identically set. This synchronization is key to achieving a cohesive and accurate representation on your charts.
Intra-Bar Order Generation (IntraBar) : Allows traders to choose if signals are generated within the current bar (real-time) or after the bar closes, providing flexibility in signal timing.
Show Break Out/Reversal Trades (BreakOutTrades, ReversalTrades) : Enables traders to toggle the visibility of specific trade types - breakout or reversal trades - on the chart.
Show Text Labels (ShowSignalLabels) : Option to display text labels for signals, enhancing the clarity and readability of the chart.
Inner/Outer Channel Length (InnerChannelLength, OutterChannelLength) : Sets the calculation periods for the inner and outer channels, affecting the sensitivity and responsiveness of the cloud channel.
Oscillator Length (OscillatorLength) : Determines the length for the precision oscillator calculation, impacting its sensitivity to market movements.
Top/Bottom Level (TopLevel, BottomLevel) : Establishes the upper and lower bounds for the oscillator, used to identify overbought and oversold conditions.
Use Dynamic Level (Dynamic_Level_OnOff) : Provides an option to use dynamic levels in the oscillator, for a more adaptive and responsive analysis.
Trend Bias Length (TrendBiasLength) : Adjusts the period for the Trend Bias calculation, crucial for understanding the overall market trend.
Top/Bottom Channel Color (TopChannelColor, BottomChannelColor) : Customization options for the color of the top and bottom channels.
Smoothness of The Gradient (Smoothness) : Controls the smoothness level of the channel's gradient, allowing for visual customization.
Alert Setting Guidance :
The script includes a versatile alert system for notifying traders of critical trading signals:
Breakout and Reversal Trade Alerts : These alerts are activated for breakout and reversal signals based on the script’s analysis, which can be crucial for timely entries and exits.
Custom Alert Conditions : Traders can set up alerts in TradingView’s system to get notified under specific conditions, like when a new signal (arrow up/down) appears on the chart, tailoring the alerts to their trading strategies.
The "Cloud Channel Signals " script offers a valuable tool for traders looking to capitalize on breakout and reversal opportunities. Its advanced channel and oscillator settings, combined with customizable alert options, make it a valuable addition to any trader's arsenal. Users are encouraged to explore these settings to fully leverage the script's capabilities, keeping in mind that trading involves risks and past performance does not guarantee future results. For optimal results, this script is designed to be used in conjunction with the "Cloud Channel Indicators .
You can see the “Author’s instructions" below to get immediate access to Cloud Channel Signals Indicators & the rest of the “Quantigenics Premium Indicator Suite”.
Cloud Channel Indicators [Quantigenics]The "Cloud Channel Indicators " script forms an integral part of a sophisticated trading approach, offering in-depth market analysis through its High Precision Oscillator and Trend Bias Indicator. These components provide traders with nuanced insights into market momentum and overall trend direction, making them invaluable for informed trading decisions. This script is further enhanced when used alongside its intended counterpart, the "Cloud Channel Signals " script, which displays the “cloud” indicator and Buy/Sell signals on charts. This combination creates a comprehensive and integrated trading system, suitable for various market conditions and trading styles.
The "Cloud Channel Indicators” script is a detailed trading indicator that merges advanced data analysis techniques with user-customizable features. It combines oscillators, dynamic levels, trend bias, and color settings, allowing users to tailor its functionality and visual representation. Unique to this script is its use of Gaussian and Rational Quadratic kernel estimates for data smoothing, enhancing the calculation of oscillator values. It dynamically adjusts OverBought and OverSold levels based on the oscillator's behavior and leverages array operations for tracking market peaks and lows. The script also integrates a Trend Bias indicator using highest highs, lowest lows, and exponential moving averages (EMAs), all of which are displayed through a range of plotting and visual elements. This synthesis of sophisticated techniques provides a multifaceted tool for technical market analysis.
As with all of our scripts, the "Cloud Channel Indicators"script, is designed to work on ANY symbol and time frame. The input parameters can be adjusted to fit your specific trading style.
Technical Composition :
High Precision Oscillator : This component focuses on capturing market momentum and identifying critical turning points. It uses advanced kernel-based estimations combined with a unique oscillator line and signal line setup to pinpoint market extremes, offering traders insights into potential entry and exit points.
Trend Bias Indicator : This indicator offers a broad view of the market's overall direction. It employs a combination of high and low-price averages, smoothed with an EMA, to indicate the prevailing market trend. The indicator is essential for verifying and complementing the insights provided by the High Precision Oscillator, ensuring that trades align with the broader market trend.
How to Use :
Integration with "Cloud Channel Signals" Script : For optimal use, synchronize this script with the "Cloud Channel Signals " script. This is essential for the script to provide meaningful analysis and insights.
Please note: The signals and cloud indicator displayed in this screenshot are part of the companion 'Cloud Channel Signals' script, which is not included in the 'Cloud Channel Indicators' script you are currently viewing.
The 'Cloud Channel Signals' script can be found here:
Analyzing Market Momentum with High Precision Oscillator : Utilize the High Precision Oscillator to identify market momentum and critical turning points. Look for extreme values on the oscillator line and signal line to pinpoint potential entry and exit points.
Understanding Market Trend with Trend Bias Indicator : Use the Trend Bias Indicator to get a broad view of the market's overall direction. This indicator helps confirm the insights provided by the High Precision Oscillator, aligning trades with the market trend.
Customizing Indicator Settings : Tailor the script to your trading style by adjusting the input parameters such as Oscillator Length, Trend Bias Length, and levels for top and bottom bounds. Ensure these settings match those in the "Cloud Channel Signals" script.
Interpreting Oscillator and Trend Bias : Monitor the High Precision Oscillator for overbought or oversold conditions. Use the Trend Bias Indicator to determine if the market is in an uptrend or downtrend and align your trades accordingly.
Using Dynamic Levels : Activate the Dynamic Level feature for an adaptive analysis that adjusts to current market conditions.
Visual Analysis : Pay attention to the color changes and histogram patterns in the script's visualization to quickly assess market conditions and momentum.
Risk Management : Combine these insights with proper risk management strategies, adjusting positions based on oscillator extremes and trend bias indications. Additionally, further risk management and stop loss levels are provided when used with the "Cloud Channel Signals” script (see description for "Cloud Channel Signals”)
Input Parameter Settings :
Important Usage Guidance : For seamless integration with its counterpart, the "Cloud Channel Signals" script, it's crucial to align the input parameter settings across both scripts. When adjusting values from their defaults, ensure that corresponding parameters in both scripts are identically set. This synchronization is key to achieving a cohesive and accurate representation on your charts.
Show Indicator Name (ShowName) : Toggles the display of the indicator names on the chart.
Show Oscillator Indicator (ShowOscillator) : Controls the visibility of the High Precision Oscillator.
Oscillator Length (OscillatorLength) : Sets the period for the oscillator's kernel estimation.
Top Level and Bottom Level (TopLevel, BottomLevel) : Defines the upper and lower bounds for the oscillator, indicating overbought and oversold conditions.
Dynamic Level Toggle (Dynamic_Level_OnOff) : Enables the use of dynamic levels for more adaptive analysis.
Show Trend Bias Indicator (ShowTrendBias) : Toggles the display of the Trend Bias Indicator.
Trend Bias Length (TrendBiasLength) : Adjusts the calculation period for the Trend Bias Indicator.
Show Peak/Valley EMA Lines (ShowEmaLines) : Controls the display of additional EMA lines for peak and valley analysis.
Color Customization : Offers options to customize the color of various elements like Top Level, Bottom Level, Zero Line, and more. These parameters provide traders with extensive control and customization of the indicators, allowing for tailored analysis and application in various market conditions and trading styles.
The "Cloud Channel Indicators " script is a versatile and advanced tool designed for traders who seek a deep understanding of market trends and momentum. Its combination of the High Precision Oscillator and Trend Bias Indicator offers a multi-dimensional view of market behavior. The scripts was designed and intended to be used with the "Cloud Channel Signals " script, which complements the "Cloud Channel Indicators" by showing the “cloud” indicator as well as Buy/Sell signals on the charts.
Traders are advised to familiarize themselves with the functionalities of these indicators for effective application in their trading strategies. As with all trading tools, remember that trading involves risk and past performance is not indicative of future results.
You can see the “Author’s instructions" below to get immediate access to Cloud Channel Indicators & the rest of the “Quantigenics Premium Indicator Suite.
NAS100 - 5 Minute Opening Range with EMAsThis indicator is designed for traders who focus on the opening range breakout strategy and use EMAs as part of their trading decisions. The script markes the first 5 min opening candle and generates Buy and Sell signals calculating EMA.
Basic features are :
User Inputs: Allows users to enable/disable alerts and choose to display Exponential Moving Averages (EMAs) for 5, 20, and 50 periods.
Opening Range Calculation: It calculates the first five minutes of the trading day, adjusting for different chart timeframes.
New Day Detection: Determines if the current bar is the first bar of a new day.
Data Storage: Utilizes arrays to store opening range highs, lows, start bars, and last bars for the last five days.
Daily Updates: Updates the stored data at the start of each new day, maintaining data for only the last five days.
Opening Range Plotting: Plots the opening ranges (high and low) for the past five days, with special plotting and filling for the current day.
EMA Calculation and Plotting: Calculates and plots EMAs (5, 20, and 50 periods) if enabled.
Alert Conditions: Sets up conditions for alerts when the price crosses above or below the current day's opening range.
Signal Generation: Generates buy and sell signals based on the relationship of the closing price to the opening range and the position of EMA5 relative to EMA50.
Signal Plotting: Plots buy and sell signals as triangles on the chart.
William's Magic GridHere is an accurate and adaptive SR grid.
Best settings:
Zones: Large
Turn off Daily High and Low lines
5m TF
Steps:
1. Wait for price to get in a zone. Use break of structure and pullbacks to determine trend and safe entry.
2. Enter trade. Set TP a little before next zone. Set SL as desired.
3. Enjoy profits.
More edits to come.
Moving Fib Based on Donchain/Pivot/BBThis script's purpose is to provide the user with an indicator that automatically plots Fibonacci levels. The user has three main options for determining the Fibonacci's high and low. This indicator offers an ample number of settings, making it a modular Fibonacci overlay.
The default setting is based on Donchian high and low.
Another option is to base the high and low on TradingView's Pivot indicator.
The last option is to determine Fibonacci levels based on Bollinger Bands.
Add up to 16 Fib levels with customizable settings, plot them on a log scale, and explore various other settings to personalize the Fib overlay.
This indicator can be utilized for trading momentum or mean reversion strategies
Bolingger Bands + Inside Bar BoxesBollinger Bands are a technical analysis tool consist of three bands—an upper, middle, and lower band—that are used to spotlight extreme short-term prices in a security. The upper band represents overbought territory, while the lower band can show you when a security is oversold. Most technicians will use Bollinger Bands® in conjunction with other analysis tools to get a better picture of the current state of a market or security.
An Inside Bar is a two-bar price action trading strategy in which the inside bar is smaller and within the high to low range of the prior bar. Inside bars show a period of consolidation in a market. They often form following a strong move in a market, as it ‘pauses’ to consolidate before making its next move. However, they can also form at market turning points and act as reversal signals from key support or resistance levels.
Donchian Quest Research// =================================
Trend following strategy.
// =================================
Strategy uses two channels. One channel - for opening trades. Second channel - for closing.
Channel is similar to Donchian channel, but uses Close prices (not High/Low). That helps don't react to wicks of volatile candles (“stop hunting”). In most cases openings occur earlier than in Donchian channel. Closings occur only for real breakout.
// =================================
Strategy waits for beginning of trend - when price breakout of channel. Default length of both channels = 50 candles.
Conditions of trading:
- Open Long: If last Close = max Close for 50 closes.
- Close Long: If last Close = min Close for 50 closes.
- Open Short: If last Close = min Close for 50 closes.
- Close Short: If last Close = max Close for 50 closes.
// =================================
Color of lines:
- black - channel for opening trade.
- red - channel for closing trade.
- yellow - entry price.
- fuchsia - stoploss and breakeven.
- vertical green - go Long.
- vertical red - go Short.
- vertical gray - close in end, don't trade anymore.
// =================================
Order size calculated with ATR and volatility.
You can't trade 1 contract in BTC and 1 contract in XRP - for example. They have different price and volatility, so 1 contract BTC not equal 1 contract XRP.
Script uses universal calculation for every market. It is based on:
- Risk - USD sum you ready to loss in one trade. It calculated as percent of Equity.
- ATR indicator - measurement of volatility.
With default setting your stoploss = 0.5 percent of equity:
- If initial capital is 1000 USD and used parameter "Permit stop" - loss will be 5 USD (0.5 % of equity).
- If your Equity rises to 2000 USD and used parameter "Permit stop"- loss will be 10 USD (0.5 % of Equity).
// =================================
This Risk works only if you enable “Permit stop” parameter in Settings.
If this parameter disabled - strategy works as reversal strategy:
⁃ If close Long - channel border works as stoploss and momentarily go Short.
⁃ If close Short - channel border works as stoploss and momentarily go Long.
Channel borders changed dynamically. So sometime your loss will be greater than ‘Risk %’. Sometime - less than ‘Risk %’.
If this parameter enabled - maximum loss always equal to 'Risk %'. This parameter also include breakeven: if profit % = Risk %, then move stoploss to entry price.
// =================================
Like all trend following strategies - it works only in trend conditions. If no trend - slowly bleeding. There is no special additional indicator to filter trend/notrend. You need to trade every signal of strategy.
Strategy gives many losses:
⁃ 30 % of trades will close with profit.
⁃ 70 % of trades will close with loss.
⁃ But profit from 30% will be much greater than loss from 70 %.
Your task - patiently wait for it and don't use risky setting for position sizing.
// =================================
Recommended timeframe - Daily.
// =================================
Trend can vary in lengths. Selecting length of channels determine which trend you will be hunting:
⁃ 20/10 - from several days to several weeks.
⁃ 20/20 or 50/20 - from several weeks to several months.
⁃ 50/50 or 100/50 or 100/100 - from several months to several years.
// =================================
Inputs (Settings):
- Length: length of channel for trade opening/closing. You can choose 20/10, 20/20, 50/20, 50/50, 100/50, 100/100. Default value: 50/50.
- Permit Long / Permit short: Longs are most profitable for this strategy. You can disable Shorts and enable Longs only. Default value: permit all directions.
- Risk % of Equity: for position sizing used Equity percent. Don't use values greater than 5 % - it's risky. Default value: 0.5%.
⁃ ATR multiplier: this multiplier moves stoploss up or down. Big multiplier = small size of order, small profit, stoploss far from entry, low chance of stoploss. Small multiplier = big size of order, big profit, stop near entry, high chance of stoploss. Default value: 2.
- ATR length: number of candles to calculate ATR indicator. It used for order size and stoploss. Default value: 20.
- Close in end - to close active trade in the end (and don't trade anymore) or leave it open. You can see difference in Strategy Tester. Default value: don’t close.
- Permit stop: use stop or go reversal. Default value: without stop, reversal strategy.
// =================================
Properties (Settings):
- Initial capital - 1000 USD.
- Script don't uses 'Order size' - you need to change 'Risk %' in Inputs instead.
- Script don't uses 'Pyramiding'.
- 'Commission' 0.055 % and 'Slippage' 0 - this parameters are for crypto exchanges with perpetual contracts (for example Bybit). If use on other markets - set it accordingly to your exchange parameters.
// =================================
Big dataset used for chart - 'BITCOIN ALL TIME HISTORY INDEX'. It gives enough trades to understand logic of script. It have several good trends.
// =================================
WinningWave By Sercan V1Winningwave is a hurricane algorithm that works in all time frames and all transactions (stock exchange-coin), is too comprehensive to be explained in detail and includes many strategies.
To explain briefly; It is a layered oracle algorithm that gives signals by filtering the formations (Normal and Harmonic formations) created by multiple account movements containing many calculations and algorithms, based on the instantaneous momentum of the price and the overbought or oversold levels in a certain time period. Of course, formations refer to situations in which price movements occur in a certain order in financial markets. These patterns are specific patterns seen on the price chart and can often provide clues about future movements of prices. For example; Reverse Shoulder, Head and Shoulder, Symmetrical Triangle etc. Dozens of formation formation conditions and targets were filtered and made suitable for signaling. It also creates bands using YDK3 with the channel algorithm it contains. This band is usually calculated using the standard deviation method to measure price movements and indicate a specific deviation. The upper and lower bands obtained as a result of standard deviation calculations are drawn on the price chart. After a certain band is created, automatic expansion is carried out in order to predict possible movements of future prices. Additionally, Winningwave includes Ema calculations and has identified stop points after the main entry signal to help you in case you miss the main exit signal or choose a different strategy.
STRATEGY 1: As I mentioned in the general statement, the signals that emerged after many formations were filtered in 2 stages (SMI and CCI values served as filters for the formations) and the false signal rate was reduced to a minimum. You can combine signals into your own strategy using oscillators and tactics you trust.
It is important to remember that no indicator or tactic works 100% accurately. That's why filters and combinations are the right methods for you.
STRATEGY 2: Channel programs often create bands using the standard deviation method to indicate price movements and a specific deviation. Standard deviations are a measure of how far prices are generally from the mean. Channel programs draw price charts by creating upper and lower bands using these standard deviation values.
These bands can become very narrow depending on the playability of the price and the strength of the trends. In this way it can change the normal range of movement of prices and indicate potential overbought or oversold.
Once the channel is created, it is automatically expanded and gives us some clues about the direction of price movements. This expansion automatically signals the change according to the price movements of the bands. This feature becomes a predictive tool to predict price movements on the indicator.
Thus, using channel updates and standard deviation, the bands show the normal range of prices and these bands expand or contract dynamically, giving an idea about possible changes in prices. This can help investors gain insight into potential trend reversals or overbought or oversold prices.
In channel band strategy . It is a second strategy in which we calculate the profit rate with the most logical calculations when the prices touch the channel bottoms and channel tops and move up or down.
STRATEGY 3: We aimed to create a stop zone by blending the most appropriate ema values with buy signals. In some cases where you don't want to follow the signals or are confident in the transaction (written to filter out successive sell signals where price action generally rises without correction), it has created a more reliable stopping point for your trading strategy. It gives you a stopping point.
*** Calculations and mathematical settings will be in the menu. For healthy signals and filters, do not play with the numbers. For your personal use, color options or On-Off settings of each feature are available in the menu.
[imba]lance algo🟩 INTRODUCTION
Hello, everyone!
Please take the time to review this description and source code to utilize this script to its fullest potential.
🟩 CONCEPTS
This is a trend indicator. The trend is the 0.5 fibonacci level for a certain period of time.
A trend change occurs when at least one candle closes above the level of 0.236 (for long) or below 0.786 (for short). Also it has massive amout of settings and features more about this below.
With good settings, the indicator works great on any market and any time frame!
A distinctive feature of this indicator is its backtest panel. With which you can dynamically view the results of setting up a strategy such as profit, what the deposit size is, etc.
Please note that the profit is indicated as a percentage of the initial deposit. It is also worth considering that all profit calculations are based on the risk % setting.
🟩 FEATURES
First, I want to show you what you see on the chart. And I’ll show you everything closer and in more detail.
1. Position
2. Statistic panel
3. Backtest panel
Indicator settings:
Let's go in order:
1. Strategies
This setting is responsible for loading saved strategies. There are only two preset settings, MANUAL and UNIVERSAL. If you choose any strategy other than MANUAL, then changing the settings for take profits, stop loss, sensitivity will not bring any results.
You can also save your customized strategies, this is discussed in a separate paragraph “🟩HOW TO SAVE A STRATEGY”
2. Sensitive
Responsible for the time period in bars to create Fibonacci levels
3. Start calculating date
This is the time to start backtesting strategies
4. Position group
Show checkbox - is responsible for displaying positions
Fill checkbox - is responsible for filling positions with background
Risk % - is responsible for what percentage of the deposit you are willing to lose if there is a stop loss
BE target - here you can choose when you reach which take profit you need to move your stop loss to breakeven
Initial deposit- starting deposit for profit calculation
5. Stoploss group
Fixed stoploss % checkbox - If choosed: stoploss will be calculated manually depending on the setting below( formula: entry_price * (1 - stoploss percent)) If NOT choosed: stoploss will be ( formula: fibonacci level(0.786/0.236) * (1 + stoploss percent))
6. Take profit group
This group of settings is responsible for how far from the entry point take profits will be and what % of the position to fix
7. RSI
Responsible for configuring the built-in RSI. Suitable bars will be highlighted with crosses above or below, depending on overbought/oversold
8. Infopanels group
Here I think everything is clear, you can hide or show information panels
9. Developer mode
If enabled, all events that occur will be shown, for example, reaching a take profit or stop loss with detailed information about the unfixed balance of the position
🟩 HOW TO USE
Very simple. All you need is to wait for the trend to change to long or short, you will immediately see a stop loss and four take profits, and you will also see prices. Like in this picture:
🟩 ALERTS
There are 3 types of alerts:
1. Long signal
2. Short signal
3. Any alert() function call - will be send to you json with these fields
{
"side": "LONG",
"entry": "64.454",
"tp1": "65.099",
"tp2": "65.743",
"tp3": "66.388",
"tp4": "67.032",
"winrate": "35.42%",
"strategy": "MANUAL",
"beTargetTrigger": "1",
"stop": "64.44"
}
🟩 HOW TO SAVE A STRATEGY
First, you need to make sure that the “MANUAL” strategy is selected in the strategy settings.
After this, you can start selecting parameters that will show the largest profit in the statistics panel.
I have highlighted what you need to pay attention to when choosing a strategy
Let's assume you have set up a strategy. The main question is how to preserve it?
Let’s say the strategy turned out with the following parameters:
Next we need to find this section of code:
// STRATS
selector(string strategy_name) =>
strategy_settings = Strategy_settings.new()
switch strategy_name
"MANUAL" =>
strategy_settings.sensitivity := 18
strategy_settings.risk_percent := 1
strategy_settings.break_even_target := "1"
strategy_settings.tp1_percent := 1
strategy_settings.tp1_percent_fix := 40
strategy_settings.tp2_percent := 2
strategy_settings.tp2_percent_fix := 30
strategy_settings.tp3_percent := 3
strategy_settings.tp3_percent_fix := 20
strategy_settings.tp4_percent := 4
strategy_settings.tp4_percent_fix := 10
strategy_settings.fixed_stop := false
strategy_settings.sl_percent := 0.0
"UNIVERSAL" =>
strategy_settings.sensitivity := 20
strategy_settings.risk_percent := 1
strategy_settings.break_even_target := "1"
strategy_settings.tp1_percent := 1
strategy_settings.tp1_percent_fix := 40
strategy_settings.tp2_percent := 2
strategy_settings.tp2_percent_fix := 30
strategy_settings.tp3_percent := 3
strategy_settings.tp3_percent_fix := 20
strategy_settings.tp4_percent := 4
strategy_settings.tp4_percent_fix := 10
strategy_settings.fixed_stop := false
strategy_settings.sl_percent := 0.0
// "NEW STRATEGY" =>
// strategy_settings.sensitivity := 20
// strategy_settings.risk_percent := 1
// strategy_settings.break_even_target := "1"
// strategy_settings.tp1_percent := 1
// strategy_settings.tp1_percent_fix := 40
// strategy_settings.tp2_percent := 2
// strategy_settings.tp2_percent_fix := 30
// strategy_settings.tp3_percent := 3
// strategy_settings.tp3_percent_fix := 20
// strategy_settings.tp4_percent := 4
// strategy_settings.tp4_percent_fix := 10
// strategy_settings.fixed_stop := false
// strategy_settings.sl_percent := 0.0
strategy_settings
// STRATS
Let's uncomment on the latest strategy called "NEW STRATEGY" rename it to "SOL 5m" and change the sensitivity:
// STRATS
selector(string strategy_name) =>
strategy_settings = Strategy_settings.new()
switch strategy_name
"MANUAL" =>
strategy_settings.sensitivity := 18
strategy_settings.risk_percent := 1
strategy_settings.break_even_target := "1"
strategy_settings.tp1_percent := 1
strategy_settings.tp1_percent_fix := 40
strategy_settings.tp2_percent := 2
strategy_settings.tp2_percent_fix := 30
strategy_settings.tp3_percent := 3
strategy_settings.tp3_percent_fix := 20
strategy_settings.tp4_percent := 4
strategy_settings.tp4_percent_fix := 10
strategy_settings.fixed_stop := false
strategy_settings.sl_percent := 0.0
"UNIVERSAL" =>
strategy_settings.sensitivity := 20
strategy_settings.risk_percent := 1
strategy_settings.break_even_target := "1"
strategy_settings.tp1_percent := 1
strategy_settings.tp1_percent_fix := 40
strategy_settings.tp2_percent := 2
strategy_settings.tp2_percent_fix := 30
strategy_settings.tp3_percent := 3
strategy_settings.tp3_percent_fix := 20
strategy_settings.tp4_percent := 4
strategy_settings.tp4_percent_fix := 10
strategy_settings.fixed_stop := false
strategy_settings.sl_percent := 0.0
"SOL 5m" =>
strategy_settings.sensitivity := 15
strategy_settings.risk_percent := 1
strategy_settings.break_even_target := "1"
strategy_settings.tp1_percent := 1
strategy_settings.tp1_percent_fix := 40
strategy_settings.tp2_percent := 2
strategy_settings.tp2_percent_fix := 30
strategy_settings.tp3_percent := 3
strategy_settings.tp3_percent_fix := 20
strategy_settings.tp4_percent := 4
strategy_settings.tp4_percent_fix := 10
strategy_settings.fixed_stop := false
strategy_settings.sl_percent := 0.0
strategy_settings
// STRATS
Now let's find this code:
strategy_input = input.string(title = "STRATEGY", options = , defval = "MANUAL", tooltip = "EN: To manually configure the strategy, select MANUAL otherwise, changing the settings won't have any effect RU: Чтобы настроить стратегию вручную, выберите MANUAL в противном случае изменение настроек не будет иметь никакого эффекта")
And let's add our new strategy there, it turned out like this:
strategy_input = input.string(title = "STRATEGY", options = , defval = "MANUAL", tooltip = "EN: To manually configure the strategy, select MANUAL otherwise, changing the settings won't have any effect RU: Чтобы настроить стратегию вручную, выберите MANUAL в противном случае изменение настроек не будет иметь никакого эффекта")
That's all. Our new strategy is now saved! It's simple! Now we can select it in the list of strategies:
Linear Regression Channel 200█ OVERVIEW
This a simplified version of linear regression channel which use length 200 instead of traditional length 100.
█ FEATURES
Color change depends light / dark mode.
█ LIMITATIONS
Limited to source of closing price and max bars back is 1500.
█ SIMILAR
Regression Channel Alternative MTF
Regression Channel Alternative MTF V2
Monday range by MatboomThe "Monday Range" Pine Script indicator calculates and displays the lowest and highest prices during a specified trading session, focusing on Mondays. Users can configure the trading session parameters, such as start and end times and time zone. The indicator visually highlights the session range on the chart by plotting the session low and high prices and applying a background color within the session period. The customizable days of the week checkboxes allow users to choose which days the indicator should consider for analysis.
Session Configuration:
session = input.session("0000-0000", title="Trading Session")
timeZone = input.string("UTC", title="Time Zone")
monSession = input.bool(true, title="Mon ", group="Trading Session", inline="d1")
tueSession = input.bool(true, title="Tue ", group="Trading Session", inline="d1")
Users can configure the trading session start and end times and the time zone.
Checkboxes for Monday (monSession) and Tuesday (tueSession) sessions are provided.
SessionLow and SessionHigh Functions:
SessionLow(sessionTime, sessionTimeZone=syminfo.timezone) => ...
SessionHigh(sessionTime, sessionTimeZone=syminfo.timezone) => ...
Custom functions to calculate the lowest (SessionLow) and highest (SessionHigh) prices during a specified trading session.
InSession Function:
InSession(sessionTimes, sessionTimeZone=syminfo.timezone) => ...
Determines if the current bar is inside the specified trading session.
Days of Week String and Session String:
sessionDays = ""
if monSession
sessionDays += "2"
if tueSession
sessionDays += "3"
tradingSession = session + ":" + sessionDays
Constructs a string representing the selected days of the week for the session.
Fetch Session Low and High:
sessLow = SessionLow(tradingSession, timeZone)
sessHigh = SessionHigh(tradingSession, timeZone)
Calls the custom functions to obtain the session low and high prices.
Plot Session Low and High and Background Color for Session
plot(sessLow, color=color.red, title="Session Low")
plot(sessHigh, color=color.red, title="Session Low")
bgcolor(InSession(tradingSession, timeZone) ? color.new(color.aqua, 90) : na)
Pivot Break [ProjeAdam]OVERVIEW
This indicator provides us great convenience when analyzing the parity by drawing a range at the highest, lowest and middle levels of the previous time period in the time period we choose, and showing where the price is currently in the range it has created in the past.
ALGORITHM - How does the indicator work ?
It draws the highest and lowest values in the time of the parity you selected in the previous ‘’Time Value’’ setting by creating a range.
We can change our ‘’Time Value’’ from the settings.
In the example above, we select our Time Value setting as "Monthly" and it draws the highest and lowest values of the month in the past parity.
In this example above, we select our Time Value setting as "Weekly", it captures the highest and lowest values of the price of the past week.
The algorithm automatically plots the selected Time Value of the price in the past.
When our price falls below its past value by the Time Value we selected, our background color becomes red.
In the example above, our background becomes red for places where the price has fallen below the values of the past week
When our price rises above its historical value by the Time Value we selected, our background color becomes green.
In the example above, our background is green for the places where the price breaks above last week's values.
When breaking up or down, our background color changes only at the first break and an alarm comes here.
The breakdowns in this indicator can also be used as an auxiliary tool in trend analysis.
While the price breaking the previous time frame up and holding there is a positive confirmation for the uptrend in the market, we can consider the price breaking the previous time frame down and holding here as a downtrend in the parity.
SETTINGS PANEL
1-We can change Language of Price Labels
2-We can choose the past time highest or lowest of our price with which we want to create a range
3-Show background of break up and break down
4-If we activeted buttons allow us to receive alarms in case of breakdown in these parities that we activate.
If you have any ideas what to add to my work to add more sources or make calculations cooler, suggest in DM .
Trading Range FinderThere are 5 horizontal lines printed by this indicator, and they extend from the last bar to a user-defined look-back period (the number of bars back from the last bar). The dark blue lines are the swing high and swing low within the look-back period. The magenta lines are the range high and range low used to define a trading range for the look-back period. The light blue line in the middle is the halfway point within the trading range, or the equilibrium.
The majority of the script logic focuses on the placement of the magenta lines (range high and range low). To do this, a histogram analysis is used. The price difference between the swing high and swing low is broken up into discrete bins which are monitored by an array. The high and low of each bar within the look-back period is used to populate the bins. There is also a toggle to use the midpoint of each bar to populate the bins as well. This means that for every bar two bins (three with the toggle) within the array will increase by a value of 1. The two bins with the highest count are used to print the magenta lines. Around each magenta line are two dotted lines and a shaded area to show the size of the bins used in the analysis.
Regarding bin size:
The bin size is a fraction of the asset price. If the price difference between the swing high and swing low is $1000, and the bin size is 1, then there are 1000 bins. I initially made the bin size a user input, but for a given look-back period the trading range would have wildly different range highs/lows when the bin size was incremented by small amounts. It was also difficult to manage a user input when the asset price is near, or less than 1. I then used a loop to optimize the bin size so it is no longer a user input. The optimization parameter is the maximization of the distance between the range high and range low. I capped the bin size within the script somewhat arbitrarily (but with a lot of testing) at ((swing high - swing low)/50) because sometimes very large bin sizes (one third or one quarter of the difference between swing high and swing low) would maximize the distance between the range high and range low, but with the line placed in the middle of the bin, its level wouldn't always make sense. Besides the maximum bin size, the only other hardcoded part of the script was to test 50 bin sizes, up to and including the maximum bin size. The loop finds the bin size that gives the largest separation between prices, and then uses that bin size to set the up the array with the bin counts.
Toggles for the plots are available to show how the range high, range low, and equilibrium move as new bars are added to the chart. The effects of these plots can most readily be seen in replay mode. There is also to a toggle to show the Fibonacci levels between the range high and range low. I made the midpoint a toggle because sometimes it is detrimental, meaning it contracts the trading range to the point of not being useful on a given chart. If there are periods of very low volatility and the bin size is large enough, the midpoint might end up in the same bin as the high or the low (or both!), and a single bar could unevenly weight a particular bin. The midpoint toggle, along with different lookback periods, will be needed to find a suitable trading range for a given chart.
Channel CorridorOVERVIEW
The Channel Corridor indicator is designed to operate on a log chart of asset prices (e.g., BTCUSD), specifically on a weekly timeframe.
The intent of the indicator is to provide a visual representation of market dynamics, focusing on a dynamically adjusted corridor around a Simple Moving Average (SMA) of an asset's price. The corridor adapts to changing market conditions. The indicator includes channels within the corridor for additional reference points.
PURPOSE
Trend Identification: The channel corridor can aid in visualising the overall trend, as it dynamically adjusts the corridor based on an SMA and user-defined parameters.
Volatility Assessment: The width of the channel corridor can may act as a gauge of market volatility.
Reversal Points: The channel corridor may signal potential trend reversals or corrections when an asset price approaches the upper or lower bounds of the corridor.
Long-Term Trend Analysis: The channel corridor may aid in longer-term trend analysis.
CONSIDERATIONS
Validation: It's recommended that careful back-testing over historical data be done before acting on any identified opportunities.
User Discretion: Trading decisions should not rely solely on this script. Users should exercise judgment and consider market conditions.
CREDIT
Ideation: Thanks @Sw1ngTr4der for the idea and corridor seed code
ATR Based Stoploss - TakeProfit [CharmyDexter]
This script combines the power of Average True Range (ATR) and a Moving Average (MA) to dynamically set stop-loss and take-profit levels. It introduces a volatility surge condition and includes a risk management table for comprehensive trade insights.
1) **Originality:**
- This script is original in its approach to combining Average True Range (ATR) with a Moving Average (MA) to create a dynamic stop-loss and take-profit strategy. The addition of a volatility surge condition and the inclusion of a risk management table further contribute to its uniqueness.
2) **Functionality:**
- The script aims to provide traders with a dynamic stop-loss and take-profit strategy based on ATR, incorporating a volatility surge condition and a moving average. The risk management table displays crucial information, including the fund size, potential profit/loss, ATR values, and risk.
3) **Operation:**
- The script uses ATR to calculate volatility, identifying surges in volatility. It adjusts the stop-loss and take-profit levels based on the average of ATR during these surge periods. The moving average acts as a trend indicator, and the script dynamically adjusts stop-loss and take-profit levels accordingly.
4) **Usage:**
- Traders can use this script by applying it to their preferred financial instrument's chart. The script automatically plots the moving average and dynamically adjusts stop-loss and take-profit levels based on ATR and volatility surges. Users can observe the levels on the chart for potential trade management.
5) **Concepts:**
- The script employs concepts of ATR for volatility, moving average for trend identification, and a dynamic adjustment mechanism during volatility surges. Risk management is incorporated by calculating potential profit/loss percentages based on user-defined risk.
6) **Mashup Explanation:**
- The script combines ATR, moving average, and volatility conditions to create a comprehensive strategy. ATR determines the market's volatility, the moving average serves as a trend indicator, and volatility surges trigger dynamic adjustments to stop-loss and take-profit levels. The risk management table enhances the script's utility.
7) **Line Descriptions:**
- Blue Line (Moving Average): Indicates the trend direction.
- Lime Line (Long Take Profit): Represents the level for taking profit in a long position.
- Maroon Line (Short Take Profit): Represents the level for taking profit in a short position.
- Fuchsia Line (Short Stop Loss): Represents the level for setting a stop loss in a short position.
- Orange Line (Long Stop Loss): Represents the level for setting a stop loss in a long position.
8) **Line Usage:**
- Use the blue line for trend identification.
- When taking long positions, the close should be above the blue line.
- For long positions, the lime line is a potential take-profit level, and the orange line is a potential stop-loss level.
- For short positions, the maroon line is a potential take-profit level, and the fuchsia line is a potential stop-loss level.
- The risk management table provides insights into fund size, potential profit/loss, ATR values, and risk.
Note: The profit/loss calculations in this script may not be entirely accurate due to factors like market execution. Market execution may not always occur at the exact levels specified by the script due to slippage or delays in order processing. This can impact the realized profit or loss compared to the calculated levels.
It is crucial to note that this ATR Based Stop-loss - Take-Profit indicator is merely one tool among many that traders can employ to establish trading targets. Additional technical indicators are essential for taking trades and making informed decisions.
Commented-out sections for alerts and shape plotting are provided, allowing for visual and auditory notifications if desired.
It's crucial for traders to be aware of these factors and use the script as a tool within a broader trading strategy. Additionally, regular monitoring and adjustments based on real-time market conditions are recommended to enhance the accuracy of profit/loss assessments.
Choose Symbol, Mode with Hull,Stochatic Mom,EMA,MACD,RSI,TableThis Pine Script code is a comprehensive indicator for the TradingView platform, offering a variety of technical analysis tools. Below is an English introduction to its features and purposes:
Introduction:
This indicator is designed for traders on TradingView and provides a multi-functional analysis toolset. It includes different charting modes (Heikin-Ashi, Linear, and Normal), a Hull Moving Average (Hull), Stochastic Momentum, RSI (Relative Strength Index), MACD (Moving Average Convergence Divergence), EMA (Exponential Moving Average), Bollinger Bands, and a summary table displaying key metrics.
Key Features:
Charting Modes:
Users can choose between "Heikin-Ashi," "Linear," or "Normal" modes to visualize price data in different ways.
Hull Moving Average:
The script incorporates the Hull Moving Average for trend analysis, highlighting potential buy and sell signals.
Stochastic Momentum:
Stochastic Momentum, with customizable parameters (K, D, and Smooth), is included to identify overbought and oversold conditions.
RSI (Relative Strength Index):
RSI is calculated and displayed, aiding in identifying potential trend reversals or exhaustion points.
MACD (Moving Average Convergence Divergence):
The MACD indicator is included, along with a histogram, to highlight changes in momentum and potential crossovers.
RSI Momentum:
RSI Momentum is calculated, providing additional insights into momentum changes.
Exponential Moving Averages (EMA):
The script calculates and displays three EMAs (Exponential Moving Averages) with customizable periods.
Bollinger Bands:
Bollinger Bands are incorporated, offering insights into volatility and potential price reversals.
Summary Table:
A table is displayed on the chart summarizing key metrics, including Stochastic MoM, RSI, MACD, RSI EMA, Hull percentage change, and EMA values.
Customization:
Users have the option to customize various parameters, including chart modes, lengths of moving averages, Stochastic parameters, and more.
Usage:
The indicator aims to provide a comprehensive view of price action and potential trend changes. Traders can use it for technical analysis and decision-making.
Important Note:
This script is provided for educational purposes and does not constitute financial advice. Traders and investors should conduct their research and analysis before making any trading decisions.
Fibonacci Enhanced Bollinger BandsDiscover the synergistic power of Fibonacci ratios with traditional Bollinger Bands in the 'Fibonacci Enhanced Bollinger Bands' indicator. Ideal for traders seeking dynamic price levels for strategic entries and exits, this tool adds a unique Fibonacci twist to your technical analysis toolkit.
Introduction to Fibonacci Enhanced Bollinger Bands
'Fibonacci Enhanced Bollinger Bands' is a trading indicator that combines the classic Bollinger Bands approach with the powerful insights of Fibonacci ratios. By integrating these two concepts, this indicator offers traders a unique perspective on market volatility and potential support/resistance levels.
How It Works
Core Concept : The indicator calculates Bollinger Bands using a selected Fibonacci ratio. This ratio is applied to the standard deviation of the price series, providing a dynamic range around a Simple Moving Average (SMA).
Trading Strategies
Long Opportunities : The area below the lower band can be considered a potential zone for long positions. Prices in this zone may indicate an oversold market condition, suggesting a possible reversal or pullback.
Short Opportunities : Conversely, the area above the upper band might signal short-selling opportunities. Prices in this region could imply an overbought scenario, potentially leading to a price decline.
Versatility : Whether you're a day trader, swing trader, or long-term investor, this indicator adapts to various timeframes and assets, making it a versatile tool in your trading arsenal.
Conclusion
The 'Fibonacci Enhanced Bollinger Bands' indicator is designed for traders who wish to leverage the power of Fibonacci ratios in conjunction with the volatility insights provided by Bollinger Bands. It's an excellent tool for identifying potential reversal zones and refining entry and exit points. Try it out to enhance your market analysis and support your trading decisions with the combined wisdom of Fibonacci and Bollinger Bands.