X% Drop in X Days, sold X Days afterIt identifies potential buy signals based on a specified percentage drop in price over a set number of days and calculates the total profit or loss (P/L) over a predefined period. Here's a breakdown of the script and its key parameters:
Script Description:
Indicator Name: "X% Drop in X Days, sold X Days after"
Functionality:
The script signals a buy opportunity when the price of an asset drops by a certain percentage (percentage_drop) within a specified length (length) in days.
It calculates the profit or loss percentage after a set number of days (hold_days) from the buy signal.
The script also displays the cumulative total profit or loss over a specified time frame, from a start date (start_period) to an end date (end_period), which is by default set to the current date.
Display:
Buy signals are marked on the chart.
The profit or loss for each trade after the hold period is displayed.
A label showing the total cumulative profit or loss, along with the start and end dates, is displayed on the chart.
Key Parameters:
percentage_drop (10.0% by default) : The percentage decrease in price that triggers a buy signal. It represents the threshold for the price drop to consider a buying opportunity.
length (3 days by default): The period over which the drop in price is considered. It's the timeframe used to evaluate the percentage drop.
hold_days (30 days by default) : The duration for holding the asset after the buy signal before selling. This parameter defines the time after which the profit or loss is calculated.
start_period (Set to "2022-11-21" by default): The beginning date for calculating the cumulative total profit or loss. This parameter allows the user to define a specific starting point for the analysis.
end_period (Set to the current date by default): The end date for the cumulative total profit or loss calculation. It defaults to the current date but can be set to a specific date for backtesting purposes.
Script Mechanics:
Buy Signal Logic: A buy signal is generated when the closing price is below the highest price of the last 'length' days, adjusted by the 'percentage_drop'.
Profit/Loss Calculation: For each buy signal, the script calculates the profit or loss percentage after 'hold_days' from the purchase. This is displayed on the chart for each trade.
Total P/L Display: The script calculates and displays the cumulative total profit or loss in the defined period (from 'start_period' to 'end_period') in a label on the chart.
Usage:
This script is useful for traders who follow a strategy based on buying assets after significant price drops and holding for a predetermined period. It automates the detection of potential buy opportunities and the calculation of profit or loss, aiding in decision-making and performance analysis.
Pesquisar nos scripts por "Cycle"
Re8bile's Vertical Lines atThis indicator draws vertical lines at 9.30 am, 11.00 am, 1 pm and 4 pm EST.
SMA Comparison with Buy and Sell Signals ShrutIndicator Name: SMA Comparison with Buy and Sell Signals
Overlay: Enabled (Indicator is displayed on the main price chart)
Description:
The "SMA Comparison with Buy and Sell Signals" indicator is designed to identify potential buying and selling opportunities in a financial instrument by comparing three Simple Moving Averages (SMAs) – the 20-day SMA, 50-day SMA, and 200-day SMA.
Features:
Simple Moving Averages (SMAs):
Calculates and displays three SMAs based on the closing price: SMA-20, SMA-50, and SMA-200.
Buy and Sell Conditions:
Buy Condition : Triggered when the 200-day SMA is greater than the 50-day SMA, the 50-day SMA is greater than the 20-day SMA, and the current closing price is lower than the 20-day SMA.
Sell Condition: Triggered when the 200-day SMA is less than the 50-day SMA, the 50-day SMA is less than the 20-day SMA, and the current closing price is higher than the 20-day SMA.
Signal Generation:
Generates buy and sell signals on the chart based on the identified conditions.
Implements a 15-day cooldown period between consecutive buy or sell signals to prevent frequent signals in volatile market conditions.
Signal Display:
Displays buy signals as green triangle shapes below the price bars.
Displays sell signals as red triangle shapes above the price bars.
Usage:
Buy Signals: Considered when the green triangle shapes (buy signals) appear below the price bars, indicating a potential buying opportunity based on the defined SMA conditions.
Sell Signals: Considered when the red triangle shapes (sell signals) appear above the price bars, indicating a potential selling opportunity based on the defined SMA conditions.
Notes:
This indicator is customizable and can be adjusted by modifying the conditions based on specific trading strategies and preferences.
Traders should consider additional analysis and risk management strategies before making trading decisions based solely on the indicator signals.
Time Of Interest - PFXTime Of Interest by Pedro Fernandez.
This indicator helps you highlight customized time of interest on the chart.
# Settings #
Frames = Session of interest.
Read Frame = If you want the selected frame to be displayed on the chart.
Frame Color = Customize the selected frame color.
# Additional Settings #
Transparency = Modify the transparency of all frames.
RSI SuperstackThis script integrates three Relative Strength Index (RSI) indicators across multiple time frames, providing a comprehensive overview of oversold and overbought conditions. This holistic approach enhances the precision of entry and exit points on shorter time frames.
As a momentum indicator, the Relative Strength Index assesses a security's strength during upward and downward price movements within the specified time period.
In a broader context, an upward slope in all indicators (green, purple, and orange) signifies an increasing market momentum, suggesting a potential continuation of the upward trend.
More specifically, a collective upward slope reaching or surpassing the 40 level in all indicators serves as a buy signal. Conversely, a uniform downward slope descending to or below the 60 level in all indicators constitutes a sell signal.
The default time frames for analysis include:
- 1 Hour (1H)
- 4 Hours (4H)
- Daily (D)
It is imperative to note that this indicator should not serve as the sole determinant for initiating long or short positions. Instead, it is recommended to consider it as part of a broader analysis, incorporating factors such as trend analysis and significant support levels.
Disclaimer: The utilization of this indicator should complement a comprehensive analysis and not be solely relied upon for decision-making regarding long or short positions.
Market SessionsDraws a vertical line at market opens and closes.
The colors can be changed and the opening times can be changed too.
[KenStrat] - Catching trend for the PipsDescription:
The " - Catching trend for the Pips" indicator is designed to help traders identify potential trend reversal points and capture significant price movements, with a focus on both daily and weekly perspectives.
**Friday Close Analysis:**
This component of the indicator concentrates on the Friday close of each week. The script displays visual elements on the daily chart exclusively. Specifically, it marks key price levels, providing insights into the closing position relative to the week's range. The indicator categorizes the closing price into three zones: above 66%, between 33% and 66%, and below 33%. This distinction aids traders in assessing the strength and directionality of the market at the end of the week. The displayed label offers a concise summary of the Friday's closing behavior, aiding in quick trend analysis.
**Weekly Trend Verification:**
The second part of the indicator focuses on verifying the weekly trend. By identifying the highest highs and lowest lows of the past two weeks, the script determines whether the current price action exhibits a bullish or bearish trend. The visualization on the chart helps traders assess the broader trend direction and make informed decisions based on the prevailing market sentiment. The label dynamically updates to indicate whether the overall trend is bullish, bearish, or neutral.
**Key Features:**
- Differentiates between Friday closing price zones for trend assessment.
- Weekly trend verification based on highest highs and lowest lows.
- Visual representation of trend conditions on the chart.
- Dynamic labels for quick interpretation of trend strength and direction.
- Exclusively designed for daily and weekly timeframes.
The " - Catching trend for the Pips" indicator provides a comprehensive tool for traders seeking to capture and analyze trend movements efficiently, allowing for informed decision-making in the dynamic Forex market.
YOY Change (Log Scale)ear-Over-Year Change Indicator (Log Scale) calculates the percentage change of a security's price over the past year, on a logarithmic scale. It is a momentum indicator that can be used to identify trends and potential reversals.
A positive value on the indicator indicates that the security's price has increased over the past year, while a negative value indicates that the price has decreased. A larger positive or negative value indicates a stronger trend.
The indicator can be used to identify overbought and oversold conditions. When the indicator is significantly above or below zero, it may be a sign that the security is overbought or oversold and a reversal may be imminent.
Normalized Price VolumeThe Normalized Price Volume (NPV) indicator is a unique tool designed to offer insights into the relationship between price movements and trading volume. By normalizing these factors, NPV helps traders identify potential price trends and reversals with greater precision.
Key Features:
Normalization: NPV leverages the Average True Range (ATR) to normalize price changes, making them comparable across different assets and timeframes.
Price and Volume Ratios: The indicator calculates the ratio of normalized price changes and volume to provide valuable information about the dynamics between price and trading activity.
Sum of Changes: NPV also presents the sum of normalized price changes over a user-defined period, allowing you to gauge the overall trend strength.
Customizable Averages: Adjust the length of the moving averages used in the price and volume ratios to fine-tune the sensitivity of the indicator to your trading strategy.
NPV is a versatile tool that can be used for various trading and investment approaches. Whether you're a day trader, swing trader, or investor, NPV can help you make more informed decisions by shedding light on the interactions between price and volume in the market.
Disclaimer: This indicator is for educational and informational purposes only. It should be used in conjunction with other analysis techniques and not solely for making trading decisions.
Normalized Detrended Price OscillatorThe Normalized Detrended Price Oscillator (NDPO) is a powerful tool for traders and analysts to understand price trends with greater clarity. This indicator is derived from the Detrended Price Oscillator (DPO) and offers a normalized perspective to help you assess price movements more effectively.
Key Features:
Length Control: Adjust the indicator's sensitivity to price fluctuations with the customizable length parameter.
Centered or Not: Choose between centered or non-centered calculations for the DPO, allowing you to align the indicator with your specific trading strategy.
Normalized Values: The NDPO normalizes the DPO values by dividing them by the Average True Range (ATR), providing a standardized view of price movements.
The NDPO helps traders identify potential reversals, divergences, and overbought/oversold conditions in the market. It's a valuable addition to your technical analysis toolkit, offering insights into price action that can lead to more informed trading decisions.
Disclaimer: This indicator is for educational and informational purposes only. It should be used in conjunction with other analysis techniques and not solely for making trading decisions.
Full Moon Delta IndicatorThis unique indicator highlights the dates of full moons on your chart with vertical dotted lines. The significance of the full moon in trading and its potential influence on market behavior has been a topic of interest for many traders. With this indicator, you can easily visualize these lunar events and their potential impact on the market.
THISMA fndtimeDescription:
This indicator is crafted to assist traders in tracking the time left until the next funding event. It's tailored for platforms like Binance, Bitget, Bybit, and any other platforms that have regular 8-hour funding intervals synchronized with 16h UTC.
Key Features:
Adaptability: Designed for major platforms such as Binance, Bitget, and Bybit.
Precision: Synchronized with UTC time to ensure countdown accuracy.
Visibility: Clear display in the bottom-left corner for quick reference.
How It Works:
Display: The remaining time until the next funding event is displayed in the upper-right corner of the chart. The format is in hours and minutes (e.g., "2h 15m" for 2 hours and 15 minutes).
Applications:
Risk Management: Always be aware of the next funding event to better manage your positions.
Planning: Use the counter to plan your entries and exits around funding events.
THISMA fndoverlayDescription:
This indicator is designed to visually assist traders in identifying candles that align with 16h, 0h, and 8h UTC. Whenever a candle matches one of these times, a label is displayed below the candle to signify this event.
Key Features:
Simplicity: The indicator is straightforward with no complicated parameters.
Visibility: Blue labels are clearly visible and positioned below the corresponding candles to avoid any confusion.
Adaptability: Works on any timeframe but is especially useful for intraday charts to spot key candles.
How It Works:
Display: Look for blue labels below the candles. These labels indicate that the candle aligns with one of the target times (16h, 0h, or 8h UTC).
Applications:
Session Planning: If you trade based on specific sessions or want to be aware of major market openings/closings, this indicator can quickly highlight these key moments.
Technical Analysis: Use these markers to align your technical analyses with specific times of the day.
HILOCLOP AnalysisThe "HILOCLOP Analysis" indicator is designed to analyze price data based on different conditions and provide insights into market trends and patterns. Let's break down its features and understand its potential usefulness in trading:
Sample Length: The indicator allows the user to specify the sample length, which determines the number of bars or periods considered for the analysis. This parameter can be adjusted to capture short-term or long-term trends and patterns in the market.
Raw Up/Down Analysis: The indicator calculates the number of occurrences where the current price values (high, low, open, close) are higher or lower than their previous values. It provides separate counts for each price component. By visualizing these counts on the chart, traders can identify periods of upward or downward movement in the price data.
HICLOP Analysis: The indicator offers a color scheme option called "HICLOP," which determines the color of the plotted results. If the HICLOP analysis is enabled, the plots representing raw up/down counts will have different colors based on whether the current count is higher or lower than the previous count. This color coding helps traders quickly identify changes in price trends.
Unchecking this Box will Show the general trend.
Raw HICLOP Color Scheme
Trend Color Scheme
Analysis Up vs. Down: The indicator provides an option to analyze instances where all four price components (high, low, open, close) are higher or lower than their respective previous values. This analysis helps traders identify periods of strong upward or downward movement in the market.
Analysis High vs. Low: The indicator compares the number of occurrences where the current high is higher than the previous high and the current low is higher than the previous low. It provides insights into whether the market is experiencing higher highs or higher lows, which can help traders determine the strength of an upward or downward trend.
Analysis Open vs. Close: The indicator compares the number of occurrences where the current close is higher than the previous close and the current open is higher than the previous open. This analysis helps traders assess the relationship between opening and closing prices, providing insights into the strength of buying or selling pressure in the market.
The usefulness of the "HILOCLOP Analysis" indicator in trading depends on the specific trading strategy and the trader's preferences. Here are a few potential use cases:
Trend Identification: By analyzing the raw up/down counts and the HICLOP color scheme, traders can identify trends and changes in price momentum. Increasing raw up counts and corresponding color changes to positive values may indicate an upward trend, while increasing raw down counts and negative color changes may suggest a downward trend.
Confirmation of Breakouts: Traders often look for confirmation of breakouts from key levels or chart patterns. The "Analysis Up V Dn" feature can help identify instances where all four price components simultaneously confirm a breakout, indicating a potentially significant move in the market.
Trend Reversals: The "Analysis High V Low" and "Analysis Open V Close" features can provide insights into potential trend reversals. For example, if there are more higher highs than higher lows, it may indicate a weakening trend, potentially signaling a reversal or a correction.
Daily Session Windows background highlight indicatorIn intraday studies of stock indexes and Forex I have this weird habit of highlighting premarket, core session, lunch break and extended session with different backgrounds. If done by hand, this is tedious work that has to be repeated daily.
I think this feature should be built-in in TradingView. But it isn't.
For a few months now, I have been using this tiny indicator that does precisely that job. It saved me literally hours of focus time and mistakes. I have decided to revamp it and release it. I'm sure it can be useful to others.
Features:
Background color highlighting for premarket , core session , lunch hour and extended session of the trading day.
Session timing preset to match US session, but can be customized.
Can be enabled or disabled on a day of the week basis, including week-end.
Timezone is selectable, matches the chart's instrument but can be set independently to track a different timezone.
Not affected by the timezone you decided to assign to the chat's time scale.
Ready for stock indexes, but can be used to highlight Forex sessions too.
Commodity Channel Index -30/30 by Jean-BiffleurUn CCI classique avec les bornes -30 et 30 ajoutées pour une strat scalping m1 m3 m5.
Time Zones Vertical Lines LoneMelone Open/ClosesYou have Sydney , Tokyo , London and NY close and open
Highlight candles by time by VincentThis is an indicator made to highlights a precise time of the day, on my screenshot this is the spread hours so the volume is very low and I won't work with this zone.
The script has been modify from the script made by u-20bf "highlight candles by time"
CryptoArmy Firetest this for market shifts and entries.
test this for market shifts and entries.
test this for market shifts and entries.
test this for market shifts and entries.test this for market shifts and entries.test this for market shifts and entries.
test this for market shifts and entries.test this for market shifts and entries.test this for market shifts and entries.
DW ModelsThis indicator follows the session timings and levels as specified in the DW trading community
Window Periods// Work in progress.. visualize event windows
// to do:
// - assign sector relevance (add opec events and weight more to commodity typed instruments, whereas revenue forecasts of walmart won't be as relevant to commodities)
// - create weighting onto macro probability valuators
// - create means to store window weight/values in an accessible way so that additional scripts can access this data (post hidden text in window?) or maybe just duplicate arrays elsewhere in additional code (terrible option)
// - correct colors to scale within like types of events (opex the same, rebalancing periods the same, political and financial meeting the same color etc..)
// - find a way to make transfer the timestamps or date strings as const variables usable within functions. v5 sends as series and cannot be converted back making this an overly complicated case instead of a function/library
// - add dates back to 2017 for better referencing
// - convert a number of the variables to inputs so they can be controlled in-chart, such as transparancy, and color of each window period?