Drawing toolThis indicator is a simple drawing tool without changing the code!
You need:
1. activate the display of coordinates (Show coordinate input)
You will see a 17 by 17 table with indexes of intersection points, in the format: (x,y)
2. activate the Enable custom drawing input
3. enter the sequence of points that you want to connect into the Coordinate for drawing input in the format: (x,y);(x,y)....
4. select line color and fill color
5. if necessary, activate Curved and Closed
In addition, you can look at some examples
Educational
DXY Overlay corelation to compare forex pairs with dollar index . helps in if analyzing how different assets correlate with the strength or weakness of the USD.
Volume-Supported Linear Regression Trend Modified StrategyHi everyone, this will be my first published script on Tradingview, maybe more to come.
For quite some time I have been looking for a script that performs no matter if price goes up or down or sideways. I believe this strategy comes pretty close to that. Although nowhere near the so called "buy&hold equity" of BTC, it has produced consistent profits even when price goes down.
It is a strategy which seems to work best on the 1H timeframe for cryptocurrencies.
Just by testing different settings for SL and TP you can customize it for each pair.
THE STRATEGY:
Basically, I used the Volume Supported Linear Regression Trend Model that LonesomeTheBlue has created and modified a few things such as entry and exit conditions. So all credits go to him!
LONG ENTRY: When there is a bullish cross of the short term trend (the histogram/columns), while the long term trend is above 0 and rising.
SHORT ENTRY: When there is a bearish cross (green to red) of the short-term trend (the histogram/columns), while the long term trend is beneath 0 and decreasing.
LONG EXIT: Bearish crossover of short-term trend while long term trend is below 0
SHORT EXIT: Bullish crossover of short-term trend while long term trend is above 0
Combining this with e.g. a SL of 2% and a TP of 20% (as used in my backtesting), combined with pyramiding and correct risk management, it gives pretty consistent results.
Be aware, this is only for educational purpose and in no means financial advise. Past results do not guarantee future results. This strategy can lose money!
Enjoy :)
PS: It works not only on BTC of course, works even better on some other major crypto pairs. I'll leave it to you to find out which ones ;)
EnchiridionThis script contains excerpts of stoic statements to help in any life situation.
Hover over the title of one of the statements to get the saying.
Keep your head while trading !
Epictetus' Enchiridion is a great work written in 50 B.C. Containing the eidos of Stoic philosophy, or a brief guide to moral living, it will help you keep a clear mind and calm while trading.
Inside Bar + Bullish and Bearish candlestick [Tarun]
Inside Bar Detection:
The function isInsideBar() checks if a bar is an inside bar, meaning its high is lower than the previous bar's high and its low is higher than the previous bar's low.
Inside bars are highlighted with an orange color.
Bearish Candlestick Patterns:
Bearish Engulfing: When the current candlestick's body completely engulfs the previous candlestick's body.
Dark Cloud Cover: When a bullish candle is followed by a bearish candle that opens above the previous bullish candle's close but closes below its midpoint.
Bearish Harami: When a small bullish candlestick is engulfed by a larger bearish candlestick.
Evening Star: A three-candle pattern consisting of a large bullish candle, a small-bodied candle with a gap up or down, and a large bearish candle that closes below the midpoint of the first candle.
Shooting Star: A single candlestick pattern with a small real body near the bottom of the price range and a long upper shadow.
Bearish Marubozu: A candlestick with a long bearish body and little to no upper or lower shadows.
Bearish candlestick patterns are highlighted with a red color and labeled with abbreviated names.
Bullish Candlestick Patterns:
Bullish Engulfing: Opposite of bearish engulfing, where the current candlestick's body completely engulfs the previous candlestick's body.
Piercing Pattern: When a bearish candle is followed by a bullish candle that opens below the previous bearish candle's low but closes above its midpoint.
Bullish Harami: Similar to bearish harami but bullish, where a small bearish candlestick is engulfed by a larger bullish candlestick.
Morning Star: A three-candle pattern opposite to the evening star, signaling a potential reversal from downtrend to uptrend.
Bullish Hammer: A single candlestick pattern with a small real body near the top of the price range and a long lower shadow.
Bullish Marubozu: A candlestick with a long bullish body and little to no upper or lower shadows.
Bullish candlestick patterns are highlighted with a purple color and labeled with abbreviated names.
Fibonacci Trend Reversal StrategyIntroduction
This publication introduces the " Fibonacci Retracement Trend Reversal Strategy, " tailored for traders aiming to leverage shifts in market momentum through advanced trend analysis and risk management techniques. This strategy is designed to pinpoint potential reversal points, optimizing trading opportunities.
Overview
The strategy leverages Fibonacci retracement levels derived from @IMBA_TRADER's lance Algo to identify potential trend reversals. It's further enhanced by a method called " Trend Strength Over Time " (TSOT) (by @federalTacos5392b), which utilizes percentile rankings of price action to measure trend strength. This also has implemented Dynamic SL finder by utilizing @veryfid's ATR Stoploss Finder which works pretty well
Indicators:
Fibonacci Retracement Levels : Identifies critical reversal zones at 23.6%, 50%, and 78.6% levels.
TSOT (Trend Strength Over Time) : Employs percentile rankings across various timeframes to gauge the strength and direction of trends, aiding in the confirmation of Fibonacci-based signals.
ATR (Average True Range) : Implements dynamic stop-loss settings for both long and short positions, enhancing trade security.
Strategy Settings :
- Sensitivity: Set default at 18, adjustable for more frequent or sparse signals based on market volatility.
- ATR Stop Loss Finder: Multiplier set at 3.5, applying the ATR value to determine stop losses dynamically.
- ATR Length: Default set to 14 with RMA smoothing.
- TSOT Settings: Hard-coded to identify percentile ranks, with no user-adjustable inputs due to its intrinsic calculation method.
Trade Direction Options : Configurable to support long, short, or both directions, adaptable to the trader's market assessment.
Entry Conditions :
- Long Entry: Triggered when the price surpasses the mid Fibonacci level (50%) with a bullish TSOT signal.
- Short Entry: Activated when the price falls below the mid Fibonacci level with a bearish TSOT indication.
Exit Conditions :
- Employs ATR-based dynamic stop losses, calibrated according to current market volatility, ensuring effective risk management.
Strategy Execution :
- Risk Management: Features adjustable risk-reward settings and enables partial take profits by default to systematically secure gains.
- Position Reversal: Includes an option to reverse positions based on new TSOT signals, improving the strategy's responsiveness to evolving market conditions.
The strategy is optimized for the BYBIT:WIFUSDT.P market on a scalping (5-minute) timeframe, using the default settings outlined above.
I spent a lot of time creating the dynamic exit strategies for partially taking profits and reversing positions so please make use of those and feel free to adjust the settings, tool tips are also provided.
For Developers: this is published as open-sourced code so that developers can learn something especially on dynamic exits and partial take profits!
Good Luck!
Disclaimer
This strategy is shared for educational purposes and must be thoroughly tested under diverse market conditions. Past performance does not guarantee future results. Traders are advised to integrate this strategy with other analytical tools and tailor it to specific market scenarios. I was only sharing what I've crafted while strategizing over a Solana Meme Coin.
Bar ReplayThis indicator mirrors TradingView's bar replay feature to a certain extent, offering traders a streamlined way to analyze past market movements. It's a practical tool for strategy testing, pattern recognition, and refining trading approaches.
While it may have some limitations, it offers a practical solution for strategy testing and refining trading approaches for free and gets the job done. After all, having a tool is better than having none.
This is just an experiment so don't take it that seriously. I hope you guys find it useful.
If you have some ideas for improvement or found any bugs, kindly let me know.
How to use it?
Step 1 : Add the indicator to the chart.
Step 2 : Select the candle .
Step 3 : Make the changes visible.
Step 4 : How to Navigate
Step 5 : Change the date easily
The blank screen issue.
Note : There are some limitations
The data is limited to the free plan.
It's not smooth as the real Bar replay feature.
I haven't checked the bugs so let me know if you found any.
Speedometer RevisitedSpeedometer Revisited is a new way to draw custom metric speedometers and is intended to be a utility for other coders to use.
@rumpypumpydumpy originally introduced the Speedometer Toolkit in version 4 of Pine Script. Since then, Pine Script has been updated to version 5, introducing some amazing new features such as polylines and chart.points. This indicator is an example of what can be done with these newer features.
The indicator starts off with a handful of functions that will be used to create the drawings. Notes are left throughout the code explaining what each line of the functions does. My goal was to make these functions user-friendly and somewhat easy to understand. I then demonstrate two examples: one speedometer with five segments and another with three.
The first example demonstrates how to visually represent the analysts' ratings for a stock using the built-in syminfo.recommendations. The speedometer is divided into five segments, each representing a different level of analyst recommendation: strong sell, sell, hold, buy, and strong buy.
Each segment is drawn using a polyline from the createSeg function, with colors assigned as follows:
Red for 'Strong Sell'
Maroon for 'Sell'
Yellow for 'Hold'
Green for 'Buy'
Lime for 'Strong Buy'
The script identifies the maximum value among the analyst ratings, calculates the midpoint of the corresponding segment, and draws a needle pointing to this midpoint.
The second example employs the speedometer design to display market sentiment through the put-call ratio. The put-call ratio is a gauge of investor sentiment, where values above 1 indicate a bearish sentiment (more puts being bought relative to calls), and values below 1 suggest a bullish outlook (more calls being bought relative to puts).
The speedometer is divided into three segments, reflecting different ranges of the put-call ratio:
Red for a ratio greater than 1 (bearish sentiment)
Yellow for a ratio between 0.8 and 1 (neutral to bearish sentiment)
Lime for a ratio less than 0.8 (bullish sentiment)
Depending on the value of the put-call ratio, the script calculates which segment the current value falls into and determines the appropriate segment number. The script calculates the midpoint of the selected segment and draws a needle pointing to this value.
Both examples show how the speedometer can be used as a visual indicator of certain market conditions, helping traders quickly recognize trends and adjust their strategies accordingly.
A big thanks to @rumpypumpydumpy for his original Speedometer Toolbox. I hope this take on it can be useful for other coders.
20% in Last 5 DaysWhat we have
Condition met 1 --> It means we have more than 20% move in last 5 Days
we have Lookback Period of 504 days that means 2 years data it will analyze
The first blue label means --> We have a move of 20% or more in last fast days
--It is very helpful who want to create a idea chart book for them to study all 20% moves
--Like what happened on the first day, second day, third day, fourth day and fifth day
--If they study a lot of charts they have many 20% moves in last 5 days
After analyzing 1000 of charts You can create a model book for best 100 charts
Like what you want to see in the full move
it will create a visual memory and help you in trading 20% moves in 5 days
EMA Scalping StrategyEMA Slope Indicator Overview:
The indicator plots two exponential moving averages (EMAs) on the chart: a 9-period EMA and a 15-period EMA.
It visually represents the EMAs on the chart and highlights instances where the slope of each EMA exceeds a certain threshold (approximately 30 degrees).
Scalping Strategy:
Using the EMA Slope Indicator on a 5-minute timeframe for scalping can be effective, but it requires adjustments to account for the shorter time horizon.
Trend Identification: Look for instances where the 9-period EMA is above the 15-period EMA. This indicates an uptrend. Conversely, if the 9-period EMA is below the 15-period EMA, it suggests a downtrend.
Slope Analysis: Pay attention to the slope of each EMA. When the slope of both EMAs is steep (exceeds 30 degrees), it signals a strong trend. This can be a favorable condition for scalping as it suggests potential momentum.
Entry Points:
For Long (Buy) Positions: Consider entering a long position when both EMAs are sloping upwards strongly (exceeding 30 degrees) and the 9-period EMA is above the 15-period EMA. Look for entry points when price retraces to the EMAs or when there's a bullish candlestick pattern.
For Short (Sell) Positions: Look for opportunities to enter short positions when both EMAs are sloping downwards strongly (exceeding -30 degrees) and the 9-period EMA is below the 15-period EMA. Similar to long positions, consider entering on retracements or bearish candlestick patterns.
Exit Strategy: Use tight stop-loss orders to manage risk, and aim for small, quick profits. Since scalping involves short-term trading, consider exiting positions when the momentum starts to weaken or when the price reaches a predetermined profit target.
Risk Management:
Scalping involves high-frequency trading with smaller profit targets, so it's crucial to implement strict risk management practices. This includes setting stop-loss orders to limit potential losses and not risking more than a small percentage of your trading capital on each trade.
Backtesting and Optimization:
Before implementing the strategy in live trading, backtest it on historical data to assess its performance under various market conditions. You may also consider optimizing the strategy parameters (e.g., EMA lengths) to maximize its effectiveness.
Continuous Monitoring:
Keep a close eye on market conditions and adjust your strategy accordingly. Market dynamics can change rapidly, so adaptability is key to successful scalping.
Timeframe Continuity Oscillator [TFO]This indicator is used to visualize timeframe continuity - a core concept of "The Strat" - along with some added logic for potential range limiters.
When discussing timeframe continuity, typically we are evaluating several timeframes to see if price is trading above or below the current open of each respective timeframe. If we are concerned with the 15m, 4h, and 1D for example, and price is trading above the current open of each of those timeframes, we can say that we have full timeframe continuity (FTFC) up. Conversely, if price is trading below the current open of each of those timeframes, we can say that we have FTFC down.
We can visualize this with an oscillator of sorts, where the zero line is anchored to the open price of the highest timeframe that we're concerned with. Using the prior example, this would be the 1D timeframe. As long as price is above the current 1D open, it is impossible to have FTFC down; and as long as price is below the current 1D open, it is impossible to have FTFC up. This is why we base the oscillator's values off of the highest timeframe's open (the values are simply how far price has traded from this open) - any value greater than zero tells us that there is potential to have FTFC up, and any value less than zero tells us that there is potential to have FTFC down.
There are a few ways we chose to visualize this data. First, we can choose the "Binary" option which simply uses one solid bullish color above the zero line, and one solid bearish color below the zero line.
Second, we can choose the "Gradient" option to help describe whether we have FTFC up or down. Values above the zero line will be a mix of the bullish color and mid color, where the mid color indicates no timeframe continuity up and the bullish color indicates FTFC up - sort of like a color spectrum of timeframe continuity to describe how many timeframes are in agreement. Similarly, values below the zero line will be a mix of the bearish color and the mid color, where the mid color again indicates no timeframe continuity down and the bearish color indicates FTFC down.
Lastly, we can choose the "FTFC Only" option which will only color the histogram bars as bullish if there is FTFC up, or bearish if there is FTFC down.
One more feature that we added is these upper and lower bands that aim to help describe the potential upper and lower limits that price may travel, relative to the highest timeframe's open. This is done by taking the standard deviation of some defined lookback period, for example, 2 standard deviations of the previous 10 weeks, assuming 1W is the highest timeframe enabled.
The concept is similar to that of an ADR (average daily range) as it can be used to estimate maximum range extensions for the largest timeframe. The arrows you see are plotted once the value exceeds either band - alerts can be enabled for these events as well through any alert() function call.
Open interest buildup & Session Open high-lowThis indicator is to be used on srcipts in Futures Segment.
1. It visually displays in tabular format the change in open interest and the change in price compared to the previous day.
2. It also displays the scenario where open price of session is near high price of session or low price of session, indicating a emergence of strong sellers or strong buyers from start of session respectively.
3. A positive change in open interest and a positive change in price is denoted by a long buildup and open price near low price is an additional confirmation for a probable long scenario in the script.
4. A positive change in open interest and a negative change in price is denoted by a short buildup and open price near high price is and additional confirmation for a probable short scenario in the script.
Key features of the indicator include:
Override Symbol Input: Traders can override the default symbol and input their preferred symbol for analysis.
Open Interest Data: The indicator retrieves open interest data for the selected symbol and time frame, facilitating analysis based on changes in open interest.
Dashboard: The indicator features a customizable dashboard that displays key information such as build-up conditions, OI change, and price change.
Build-Up Conditions: The indicator identifies long build-up and short build-up scenarios based on user-defined thresholds for OI change and price change percentages.
Customization Options: Traders have the flexibility to customize various aspects of the indicator, including colors for long build-up, short build-up, positive OI change, negative OI change, positive price change, and negative price change.
Label Plots: Buy and sell labels are plotted on the chart to highlight potential trading opportunities. Traders can customize the colors and text colors of these labels based on their preferences.
Overall, the indicator offers traders a comprehensive tool for analyzing price movements and open interest changes, helping them make informed trading decisions in the futures segment.
Candlestick Patterns detection and backtester [TrendX_]INTRODUCTION:
The Candlestick Patterns detection and backtester is designed to empower traders by identifying and analyzing candlestick patterns. Leveraging the robust Pine Script's add-in “All Candlestick Patterns”, this indicator meticulously scans the market for candlestick formations, offering insights into potential market movements. With its backtesting capabilities, we evaluate historical data to present traders with performance metrics such as win rates, net profit, and profit factors for each pattern. This allows traders to make informed decisions based on empirical evidence. The customizable settings, including trend filters and exit conditions, provide a tailored experience, adapting to various trading styles and strategies.
CREDIT:
This indicator is powered by the Pinescript add-in, *All Candlestick Patterns*, which provides a comprehensive library of candlestick formations.
TABLE USAGE:
The indicator features a detailed usage table that presents backtested results of all candlestick patterns. This includes:
Win Rates: The percentage of trades that resulted in a profit.
Net Profit: The total profit after subtracting losses from gains.
Profit Factor: A measure of the indicator’s profitability (gross profit / gross loss).
Total Trades: The total number of trades taken for every candlestick pattern's appearance.
CHART CANDLESTICK USAGE:
The indicator integrates candlestick pattern detections directly into the chart, displaying:
Pattern Detections: Each detected pattern is marked on the chart.
Win Rates: The win rate of each pattern is shown in brackets next to the detection.
CHART SETTINGS:
Users can customize the indicator with a variety of trend filters and settings:
Trend Filters: Apply filters based on SMA50, SMA200, Supertrend, and RSI threshold to refine pattern detections.
Exit Condition: Set an exit condition based on the crossing of a simple moving average of customizable length.
Visibility: Choose to show or hide the candlestick patterns’ detections on the chart.
Range Level [plx]This indicator automatically draws Fibonacci levels based on your selected timeframe: Monday, Monthly, or Quarterly.
For instance, if you choose Monday, it plots Fibonacci levels (0, 0.25, 0.5, 0.75, 1) based on that day's candle. You can also opt to display titles on the top right of each line for clarity.
Additionally, it offers the feature to show a dashed line between levels for easier visualization of the midpoint.
Designed for educational purposes.
TCLC - Options - Straddle/Strangle ChartInput :
* two option Premiums
* net Premium Paid for LONG
* net Premium Received for SHORT
based on the above data it plots the line chart of the premiums
the indicator can be used to monitor the straddle / strangle positions
the table displays the premiums of the corresponding options premiums and the current premiums
based on the positions the color of the net premiums will be in RED/ GREEEN
NCI - Timeframe + WatermarkDeveloped by Jayce in June 2022 and later updated by Light in January 2024.
Key Features:
Customizable Watermark: Enhance your chart with a personalized watermark. Enter any text, like your trading mantra or brand name, to keep your focus aligned with your trading strategy.
Adjustable Font Size: Tailor the appearance of your watermark and notes with adjustable font sizes, ranging from "Tiny" to "Huge," ensuring optimal visibility and integration with your chart setup.
Timeframe Display: Stay informed of the current chart's timeframe, neatly displayed alongside your chosen watermark. Whether you're analyzing trends in minutes, hours, or days, this feature keeps you oriented without cluttering your workspace.
Inspirational Note: Complement your watermark with an inspirational note or a quick reminder of your trading discipline and risk management strategies, keeping your principles front and center.
Zone TP SL [By Gone]It creates a price zone for TP 3 Level, increasing from the price by 500 points and setting an SL zone of 500 points of the price.
You must enter the price range yourself, recommended to be 500 points apart.
1. select Type Bay And Sell
2. Input Price Start And End
suitable for gold
Made to help with hitting the price zone. For use in making decisions about trading.
Smart Money Setup 05 [TradingFinder] Minor OB & Trend Proof🔵 Introduction
The "Smart Money Concept" transcends the realm of mere technical trading strategies to embody a comprehensive philosophy on the dynamics of market operations. It posits that key market participants engage in price manipulation, thereby complicating the trading landscape for smaller, retail traders.
Under this doctrine, retail traders are advised to tailor their strategies in alignment with the maneuvers of "Smart Money" - essentially, the capital operated by market makers.
To this end, one should endeavor to mirror the trading patterns of these influential market participants, who are adept at navigating through the nuances of supply, demand, and overall market structure. As a proponent of Smart Money trading, these elements are pivotal in your decision-making process for trade entries.
🟣 Key Insights
The core principle of this strategy hinges on misleading other traders. A sudden market movement against the prevailing trend that results in the formation of either a lower low or a higher high, followed by a pullback where a divergence pattern emerges, sets the stage.
Subsequently, the market may form another lower low or higher high. Traders, persuaded that the market will continue along the trajectory of the new movement, are caught off-guard when the price abruptly reverses direction. Following a "Stop Hunt" of the traders' open positions, the market resumes its initial trend.
To grasp the essence of this setup, observe the following illustrations.
"Bullish Setup" :
"Bearish Setup" :
🔵 How to Use
The setups can be customized based on the desired formation period. This adjustment can be made through the indicator's price setting options, where the default period is set at 2.
Upon configuring your preferred period, the signals become actionable. Once a setup forms, the subsequent step involves waiting for the price to reach the "Order Block".
"Bullish Setup" :
"Bearish Setup" :
UT Bot Stochastic RSIUT Bot Stochastic RSI is a powerful trading tool designed to help traders identify potential buy and sell signals in the market. This indicator combines the Stochastic and RSI (Relative Strength Index) oscillators, two of the most popular and effective technical analysis tools, to provide a comprehensive view of market conditions.
The Stochastic oscillator is a momentum indicator that compares a security's closing price to its price range over a given time period. The RSI, on the other hand, is a momentum oscillator that measures the speed and change of price movements. By combining these two indicators, the UT Bot Stochastic RSI can help traders identify overbought and oversold conditions, as well as potential trend reversals.
The UT Bot Stochastic RSI also includes an ATR (Average True Range) trailing stop, which can be used to set stop-loss levels and manage risk. This feature is particularly useful in volatile markets, where price movements can be large and unpredictable.
In addition to its powerful technical analysis tools, the UT Bot Stochastic RSI also includes a backtesting feature, allowing traders to test their strategies on historical data. This can help traders identify the most effective settings for the indicator and improve their trading performance.
Overall, the UT Bot Stochastic RSI is a versatile and effective tool for traders of all levels, providing valuable insights into market conditions and helping to improve trading decisions
Relative Volume (RV)Relative Volume take the volume at a given time of day and compares it to the average volume at that time of day. You can either use the current volume or the cumulative volume in this analysis. You have the option to either see the average and the current volume or a comparative view where you see the percent difference between now and the average.
My implementation of relative volume uses a key-value pair to simplify the process of getting the average volume for the time of day. This reduces the lines of code needed and makes it easier to understand. I have added the normal features you would find in a relative volume indicator with the addition of an average above/below average section for comparing the significance of above/below average moves are. I hope this script is not only useful but educational.
Enjoy
OPEN=HIGH/LOW LabelsIntroduction:
The "OPEN=HIGH/LOW Labels" script is designed to visually indicate instances where the opening price is equal to the high or low price of the candle. It overlays labels on the chart to highlight these conditions, providing traders with additional insights into price action.
Key Features:
Customizable Inputs: Traders can adjust parameters such as the maximum percentage difference between the opening price and the high/low prices, as well as the maximum number of labels to display.
Buy and Sell Conditions: The script defines conditions for both buy and sell scenarios based on whether the low price is equal to or greater than the opening price (indicating potential buying interest) or the high price is equal to or less than the opening price (indicating potential selling interest).
Limited Label Display: To prevent clutter on the chart, the script limits the number of labels displayed by removing older labels when the maximum number is reached.
Usage:
High Price Max % : Adjust this parameter to set the maximum percentage difference allowed between the opening price and the high price of the candle.
Low Price Max %: Set the maximum percentage difference allowed between the opening price and the low price of the candle.
Max Labels: Define the maximum number of labels to be displayed on the chart.
Interpretation:
OL-Buy Label: This label is displayed when the low price of the candle is equal to or greater than the opening price, indicating potential buying interest.
OH-Sell Label: This label is displayed when the high price of the candle is equal to or less than the opening price, suggesting potential selling interest.
Conclusion:
The "OPEN=HIGH/LOW Labels" script is a useful tool for traders to identify instances where the opening price aligns closely with the high or low price of a candle. By customizing parameters and interpreting the labels, traders can gain valuable insights into market sentiment and potential trading opportunities.
Long / Short OI Build Up ntroduction
The "Long / Short OI Build Up" script is designed to identify potential long or short build-up opportunities based on changes in open interest (OI) and price movements. Open interest refers to the total number of outstanding contracts for a financial asset, such as futures or options, that have not been settled. This script provides insights into whether there is a build-up of long positions (bullish sentiment) or short positions (bearish sentiment) in the market.
Script Overview
Indicator Overlay: This script functions as an overlay indicator, meaning it plots its output on the price chart.
Input Customization: Users can customize the symbol for which they want to analyze open interest data. Additionally, they can adjust parameters like the percentage change in open interest and price to define build-up conditions.
Dashboard Display: The script includes a dashboard feature that displays the build-up analysis at a chosen location on the chart.
Build-Up Analysis: Based on the defined criteria, the script identifies whether there is a long build-up (bullish) or short build-up (bearish) scenario. It calculates the change in open interest and price and compares them against user-defined thresholds.
Table Visualization: The results of the analysis are presented in a table format, showing the build-up type, percentage change in open interest, and percentage change in price.
Usage
Override Symbol: Users can choose to override the default symbol for analysis by selecting this option and entering the desired symbol.
Price Change Percentage: Set the percentage change in price that should trigger a build-up signal.
OI Change Percentage: Define the percentage change in open interest necessary to signal a build-up scenario.
Dashboard Location: Choose the location on the chart where the build-up analysis table will be displayed (options include Top Right, Bottom Right, and Bottom Left).
Interpretation
Build Up: Indicates whether there is a long build-up (green) or short build-up (red) based on the defined criteria.
OI Change: Shows the percentage change in open interest relative to the previous value. Positive values are highlighted in green, indicating an increase, while negative values are highlighted in red, indicating a decrease.
Price Change: Displays the percentage change in price relative to the previous close. Positive values are highlighted in green for price increase, while negative values are highlighted in red for price decrease.
Conclusion
The "Long / Short OI Build Up" script provides traders with valuable insights into potential bullish or bearish build-up scenarios based on changes in open interest and price movements. By customizing parameters and visualizing the analysis on a chart dashboard, traders can make more informed decisions regarding their trading strategies.
Index Generator [By MUQWISHI]▋ INTRODUCTION :
The “Index Generator” simplifies the process of building a custom market index, allowing investors to enter a list of preferred holdings from global securities. It aims to serve as an approach for tracking performance, conducting research, and analyzing specific aspects of the global market. The output will include an index value, a table of holdings, and chart plotting, providing a deeper understanding of historical movement.
_______________________
▋ OVERVIEW:
The image can be taken as an example of building a custom index. I created this index and named it “My Oil & Gas Index”. The index comprises several global energy companies. Essentially, the indicator weights each company by collecting the number of shares and then computes the market capitalization before sorting them as seen in the table.
_______________________
▋ OUTPUTS:
The output can be divided into 3 sections:
1. Index Title (Name & Value).
2. Index Holdings.
3. Index Chart.
1. Index Title , displays the index name at the top, and at the bottom, it shows the index value, along with the daily change in points and percentage.
2. Index Holdings , displays list the holding securities inside a table that contains the ticker, price, daily change %, market cap, and weight %. Additionally, a tooltip appears when the user passes the cursor over a ticker's cell, showing brief information about the company, such as the company's name, exchange market, country, sector, and industry.
3. Index Chart , display a plot of the historical movement of the index in the form of a bar, candle, or line chart.
_______________________
▋ INDICATOR SETTINGS:
(1) Naming the index.
(2) Entering a currency. To unite all securities in one currency.
(3) Table location on the chart.
(4) Table’s cells size.
(5) Table’s colors.
(6) Sorting table. By securities’ (Market Cap, Change%, Price, or Ticker Alphabetical) order.
(7) Plotting formation (Candle, Bar, or Line)
(8) To show/hide any indicator’s components.
(9) There are 34 fields where user can fill them with symbols.
Please let me know if you have any questions.