Isolated PivotsThis script identifies potential price reversals at pivot high/low points using sets of 3 candles.
Pivot High: The middle candle must have a higher high and a higher low than the two outer candles.
Pivot Low: The middle candle must have a lower low and a lower high than the two outer candles.
Potential usage: When a market is moving higher in an uptrend, if a pivot low is identified then that might be a sign of price weakness.
樞軸點
[CP]Pivot Boss Floor Pivots with ATR Dilation and Dynamic LevelsINTRODUCTION:
Compared to all the Pivot Indicators available on Trading View Public Library, this Floor Pivots Indicator differentiates itself in two major original ways:
Dilates the Pivot Support/Resistance Levels into Support/Resistance Bands based on volatility
Displays the S/R Levels Dynamically , that is, only those levels will be shown that are close enough to the price resulting in much cleaner looking charts.
There were a few features whose logic I had figured out, but I could not implement them due Pine Script’s Limitation (they should really work on increasing Pine Script’s capacity instead of adding more and more features to the language in order to make it look ‘better’):
Showing multiple timeframe pivots at the same time (not possible due to Pine Script’s limitation on the ‘Max Number of Outputs’ )
Automatic Detection of highly profitable Double Hot Pivot Zones (DPZ), also due to the ‘Max Number of Outputs’ limit
GENERAL USER INPUTS:
Most of the settings are self-explanatory, however, a few of them need some explanation:
Show Floor Pivots Dynamically – This will turn ON the dynamic pivot levels, please note that this function will work ONLY IN INTRADAY timeframes.
Dynamic Pivot ATR Period – Period over which the ATR value is calculated to show the pivots dynamically.
ATR Threshold for Dynamic Floor Pivots – Simply put, the indicator will start displaying Pivot Levels if they fall within the 2*ATR distance (default value) of the price. You can increase this number if the volatility increases and vice-versa.
Use ATR to Dilate Intraday Pivot Levels – This will turn ON Floor Pivot Dilation, turning pivot ‘lines’ into ‘bands’ .
ATR Dilation Factor – This number decides the width of the Pivot bands. Larger this number, thicker the bands. Typically, high volatility stocks will require a higher number.
ATR Period – Same as Dynamic Pivot ATR Period, but for Pivot Level Dilation.
INDICATOR USAGE EXAMPLES:
This indicator works great in conjunction with my Pivot Boss Candlestick Scanner indicator.
There are a lot of optimizations I have done in the code, although it looks trivial at first glance, but it's fairly complex.
Feel free to use it and modify it as you wish.
Here are a few examples where the indicator has shown great entries and exits, with the default settings:
NIFTY 5m Chart
Reliance 5m Chart
Tesla 5m Chart
Bitcoin-USDT 15m Chart
FINAL WORDS:
Please understand that I have Cherry Picked the examples to showcase the capability of the indicator and its usage.
DO NOT conflate the accuracy of examples with the accuracy of this indicator.
Once you start using floor pivots, you will realize that a lot of days simply don’t give any high probability setups and you will simply sit out of the market and do nothing (which is a good thing).
If you really want to learn how to use Pivots, read the book ’Secrets of a Pivot Boss’ . This book can change your life.
Indicators OverlayHello All,
This script shows the indicators in separate windows on the main chart. Included indicators are RSI, CCI, OBV, Stochastic, Money Flow Index, Average True Range and Chande Momentum Oscillator. indicator windows are located at the top or bottom of the chart according to last moves of the Closing price. Different colors are used for each indicator. Horizontal levels are shown as dashed line and label as well.
Using the options;
You can enable/disable the indicators you want to see or not
You can change source and length for each indicator
You can set window length. using this length indicator windows are located on the chart
After you added this indicator to your chart I recommend: right click on any of the indicator windows => "Visual Order" => "Bring to front" as seen screenshot below:
in this example only 3 indicators enabled and period is set as 80:
indicator windows moves to the top or bottom of the chart according to the close price:
P.S. if you want to see any other indicator in the options then leave a comment under the indicator ;)
Enjoy!
Anchored VWAP Hand-OffBrian Shannon's "VWAP hand off" strategy, Has been my "go to" for some time now. Version 5 makes this much easier, with drag and drop placement.
When price taps the base anchored VWAP, a second VWAP is plotted at that point. When price taps the second, a third is plotted, and so on.
Each consecutive VWAP can be used to identify trend and future pivot points as trend continues.
IF the VWAPS look messy, price action is choppy and a trend hasnt yet started.
Order BlocksThis is experimental Indicator is to help identifying Order Blocks.
It uses not confirmed higher order pivots as Higher Highs (HH) and Lower Lows (LL), finds high/lows that created most recent LL/HH and in case if this high/low are broken it notes candle that broke structure, market structure broke line (MSB) and demand box (candle that created liquidity for the move that broke structure).
Concepts and parts of code used in this study:
1) @rumpypumpydumpy - Higher Order Pivots
2) @MarkMiddleton2020 - Order Blocks
Central Pivot Ranges & Pivot based BarcolorsThe Central Pivot Range derived from the pivot of a defined higher timeframe is the considered by some traders as the bread and butter levels of the market for a reason.
A combination of 3 CPRs from different timeframes can provide you with some some more insight into the assets your analysing and might offers you some more confidence in performing your trades.
This script also offers you an extensive amount of options like:
- The option to look at current or developing CPRs.
- A resolution selector
- Options to hide and show Tops Bottoms and Pivots seperately
- Color selectors depending on the close price up or down the pivots
- And an option to colorize your candles by pivots crossed.
3C Sim SignalThis indicator offers the same deal start conditions available on Backtest script but now as an external signal so you can not only backtest but also set up alerts.
You can use the backtest script to backtest this indicator as an external signal and then once happy with the backtest results send directly tradingview alerts to your own bots on any exchange.
It supports most of the deal start conditions currently available for DCA bots on binance.com for example:
- TV technical ratings: buy, sell, strong buy, strong sell.
- RSI
- MFI
- CCI
- Ultimate Oscilator
- QFL
- min volume filter
Once added to the chart it will plot one when the deal start condition is true and zero when is not.
The conditions can be used in long or short strategy mode.
The biggest advantage compared to using it separately from the DSC already available in the backtest script is that because this is a separated study it will perform faster than the backtest and it resolves repainting issues. This two aspects make these indicator better suited for real time trading while still being able to connect to the backtest as an external indicator therefore still backtestable.
Now you can backtest symbols on any exchange and once your strategy is ready you then can send alerts directly to your bots.
Market Sessions Open/Close LevelsThis indicator displays the market open and close price levels for the main trading sessions (Sydney, Tokyo, Frankfurt, London and New York). The Daily Line changes color depending on if price is trading above or below the level. Feel free to add or replace levels depending on your trading style and trading times.
ORB with Shorty Targets
The ORBS indicator study utilizes the theory of an Opening Range Breakout occurring on a security. The indicator uses data collected from the first thirty minute session of the trading day to create fibonacci retracements at specific positions. The 'session' high and low are derived from the first thirty minutes and used as a basis to plot these values. Fibonacci retracement lines are plotted at key positions above and below the high/low values pulled during the opening 'session'. These fibonacci retracement lines are plotted at: 0 (ORB high); 1.272; 1.618; 2.00; 2.175; 2.618; and 3.236. Levels in-between these values are known as 'ranges'. Upper lines are shown green in color and indicate key levels at which the price may react within the market. No guarantees are given nor implied - ORBs is simply a tool to help plot out key fibonacci levels at specific levels accurately and completely.
This will only work on 3min or 5mins and it is intended for intraday trading only.
ORH - opening range high
ORL - opening range low
OR50% - mid between ORH and ORL aka 50% fib
The way i use ORBS:
1. ORH break - i go long on 3min or 5 min close above ORH. I use heiken-ashi candles.
2. ORL breal - i will short on 3min or 5 min close below ORL
3. Double bottoms on reclaims of ORL - i will go long with SL being the ORL
4. Double tops on ORH considering market is weak i will short with SL being the ORH
Trendbar:
Trendbar use combo of CCI and ATR to help figure out the trend the stock is in. Stock moving below the trendbar indicates it is loosing the trend dependent on what time-frame you are using it.
Pivots:
Shorty Pivots are a collection of daily/weekly/ monthly pivots indicator that allows for plotting a daily, weekly, and monthly line on a chart. The values are pulled from the three separate resolutions (daily, weekly, and monthly), and shown on the chart each day. Calculations pulled from each respective high/low/close (divided by 3.0) for the session values.
Settings:
Show Daily/Weekly/Monthly Pivot - Shows/Hides each respective pivot .
Pivot Colors - Change the color of each pivot .
Pivot Width - Line width of the plotted pivot .
Line Style - Choose Solid, Dashed, or Dotted to view different styled lines.
Label Text Color - Choose the label text color if it clashes with your chosen line color(s).
Extend Pivot Lines to Right Offset: This allws you to extend each pivot line to the right by an offset of X bars.
Day Session Timeframe - Ignore this setting.
Pivot Adjustment Timeframe - Ignore this setting.
Pivot Point (MM)It helps indicate the contraction point so that we can have a low-risk entry of a buy point.
It followed the strategy of Mark Minervini.
changing the lookback period input to change the percentile
changing the Pivot Length to decide how many bars you would consider as a pivot
changing the Close range to decide in how much percentage does the close range you would consider as a pivot
The percentile rank is represented in the colour of the background, you can alter how low you want to set to indicate lowering volatility.
The blue line shows the percentage range in ( pivot length) days/bars
The coloured background shows the signal of pivot point forming
TSLA $4 Red CandleThose who trade TSLA often have come to know that a $4ish red candle on the 15min chart is normally a sign of a trend reversal to the downside by the market makers. To help identify these with ease this script will label any candles that close red with a $4.00 -> $4.99 price gap.
ZigZag Chart with SupertrendHello All,
This script creates Zigzag Chart by using Zigzag waves, so it's timeless chart meaning that no time dependency on X-axis. Optionally it can calculate & show Zigzag Supertrend or Simple Moving Average. Also it can change bar colors of the main chart by trend direction of Zigzag Supertrend.
As seen below, each zigzag wave is a candle on Zigzag chart:
You have a few options and using these options you can find best settings for the securities/timeframes.
You can change Zigzag period, if you change Zigzag Period then all zigzag and the chart is recalculated/reconstructed.
You have option to show Zigzag Supertrend or Zigzag Moving Average, the options you have;
- You can change ATR Length and ATR multiplier for supertrend
- You can change Length for Simple Moving Average
You can change Zigzag candle & wick colors using options. Also you have option to change bar colors according to Zigzag Supertrend direction.
As it's timeless chart, below you can see how/when bar colors and Zigzag Supertrend change:
You can see Simple Moving Average of the Zigzag Candles:
You can play with ATR length and multiplier to find best supertrend:
You can play with the candle & wick colors:
Enjoy!
On-chart Wavetrend Divergence with PivotsThis is an OnChart WaveTrend Divergence Indicator with Pivots and Alerts
LazyBears WaveTrend Indicator or also known as "Market Cipher" is an Indicator that is based on Moving Averages, therefore its an "lagging indicator". Lagging indicators are best used in combination with leading indicators. In this script the "leading indicator" component are Daily, Weekly or Monthly Pivots. These Pivots can be used as dynamic Support and Resistance, Stoploss, Take Profit etc.
This indicator combination is best used in larger timeframes. For lower timeframes you might need to change settings to your liking.
What are those circles?
-These are the WaveTrend Divergences. Red for Regular-Bearish. Orange for Hidden-Bearish. Green for Regular-Bullish. Aqua for Hidden-Bullish.
Please keep in mind that this indicator is a tool and not a strategy, do not blindly trade signals, do your own research first! Use this indicator in conjunction with other indicators to get multiple confirmations.
Pivot Target (5m Futures)I am new to both Futures Trading and Pivots. Looking for shorter-term profitable opportunities, I have investigated the use of pivots from a higher timeframe. All the work of this script is performed using two lines. It calculates the pivot from the previous 2-hour bar and draws this pivot line on the 5-minute timeframe. Many many times, the price will reach back to this pivot point - sometimes fairly quickly within the same horizontal pivot line and sometimes farther out (4-hours to 6-hours, or within the next few days). Price tends to reach the level around ninety percent of the time, making for plenty of short-term trading opportunities.
I get the best results when I see the price rise or fall from the pivot, along with a second indicator indicating a possible reversal (my favorite is Divergence for Many Indicators v4 by LonesomeTheBlue . Who knew divergence (both regular and hidden) was so common and useful for finding probable reversals? If I find the price above or below the pivot line with a second signal, I'll place a buy or sell within that same 2-hour window the price tends to return back to the higher timeframe pivot for a nice profit very quickly. Other times it does take a little longer to return with only a small percentage of time not returning within a reasonable amount of time, or very unusually, not at all. The image above shows a number of profitable trading opportunities using a combination of the Pivot Target and LonesomeTheBlue's Divergence for Many Indicators v4. You can further limit risk by only taking trades that are in the same direction of the overall trend, possibly confirmed on a higher timeframe.
This script will only be visible on the 5-minute timeframe the way it is written right now. I wouldn't suggest shorter or longer timeframes unless some editing is done by you. It doesn't seem to work as well with stocks, but is best on Futures due to the wave-like natures of the futures market. Trade safe, trade with the trend, use stops and limits appropriately and stay safe.
Quickfingers Lucs Base Breaking Indicator v2.5 - 3Commas EditionIntroduction
The indicator attempts to implement a popular price action strategy by Luc Thomas (a.k.a. Quickfingers Luc) typically referred to as a QFL base-breaking strategy specifically for the 3Commas platform. The Input settings have been redesigned to match the same inputs as the 3Commas My Bot Settings page. Only the "Deal Start Condition" section will echo the required QFL-related settings found in the original Quickfingers Luc's Base Breaking Indicator v2.5 to successfully implement the strategy.
The strategy revolves around price action movements that reveal “bases”, which are price levels of support that have a significant, rapid price surges called “bounces”. Once a base is revealed, the base price level is used as reference to implement multiple entries below the base using a layering technique of dollar-cost averaging to place multiple limit orders at various price levels below the base price. As price action breaks below the base price, the limit orders will be filled, and the take profit, breakeven and stop loss prices will be recalculated.
How is it original and useful?
This indicator is unique in that the strategy version fully supports the TradingView backtester, which will enable you to perform experiments with various settings to evaluate performance using the historical chart data. The study version implements the "Start Deal" and "Close Deal" alerts for you to integrate with 3Comma's "Trading View Custom Signal" start condition. Both script versions will provide the same configuration abilities. The following list is a brief description of its usefulness:
The ability to define the QFL base confirmation settings, including volume analysis.
The ability to define your preferred layering strategy of either dollar-cost averaging (DCA) or grid-like layers along with precise layer placement.
The ability to define your trading parameters like take profit and stop loss offsets, exchange commission rates, trading start time, and position size multiplication for each layer.
The ability to define flexible trade eligibility rules that can use other chart indicators, like RSI or EMA, to exclude the selection of base prices for trading.
The ability to set the visibility & color theme of the detailed statistics from the chart history pertaining to trading sessions started and closed, session durations, win rate, price action drops and bounces, as well as layer utilization.
How does it compare to other scripts in the Public Library?
The indicator offers a very detailed, comprehensive settings to implement the QFL base-breaking strategy ion 3Commas. The strategy version leverages the full features of the TradingView backtester to provide informative, detailed performance measurements surrounding this unique trading strategy. The study version will implement the latest alert framework called "Any Alert() Function" where you can create a single alert to handle multiple events, which include:
Deal Start
Deal Close
What does it do and how does it do it?
The strategy can be applied to any chart at any time frame, but the minimum should be no lower than 10 minutes. When applied to the chart for the first time, the default settings will work to render base price levels in orange and 8 DCA layers in thin blue lines. As you scroll through the chart's history you should see price action crossing the DCA layers, denoted with blue triangles, and a green take-profit line will render with green triangle denoting the crossing. Lastly, when a deal session begins upon the crossing of the first layer, the indicator will continue to identify base price levels, but the color of the price lines will be gray. When the trade session concludes upon the crossing of the take profit line, the indicator will switch the most recent base price line from gray to orange to make it active and eligible for trading.
As price action develops, the indicator will use the "Base Confirmation Settings" to look back by counting the number of bars to the left and right of a pivot low point, measure the price drops and bounces, and volume amounts to validate that they are within the specified values. If so, the indicator will draw an orange triangle beneath the candle bar to denote it as the pivot low point and begin rendering the orange line as the base price. The DCA layers will be calculated and offset relative to the base price using thin blue lines.
Optionally, the breakeven price line will be drawn to help visualize the true breakeven price which takes into consideration the exchange fees being applied. Base line, take profit, stop loss and DCA layer crossings will be denoted with colorful shapes to help visually recognize the events on the chart.
The volume is validated only at the pivot low candle. It will measure the volume against the moving average to determine base confirmation. A volume factor of 1 will mean that the volume must be at least the same value as the moving average value. A volume factor of 2 means it must be twice the moving average value.
Lastly, a table of statistics is positioned to the upper-right corner of the chart that summarize all the events that have taken place since the indicator began simulating deal sessions from the chart's history.
Strategy Results
The default settings are designed to define a "weak" QFL base to ensure that the indicator will render chart elements when first loaded as well as to allow the backtester to gather order executions and display performance summary. The strategy version is using $10,000 initial capital, a commission rate of 0.1% for both entries and exits, and a 1 tick slippage setting. It is also using 3.4881% of the equity for the Base Order Size, 4.7097% of equity for the first Safety Order Size. The Maximum Safety Trade Count is 7 with a Safety Order Volume Scale of 1.35, and a take profit of 5% with no stop loss. All other settings are defaults.
It is recommended that the indicator be "tuned" for your specific market in order to best implement the QFL trading strategy and obtain better desirable results. You do so by using the statistics table and observe the Mean Price Drop and Bounce values to learn what the indicator is detecting when it measures from the pivot low points. Using this information, you can adjust the Base Confirmation Settings accordingly, along with any volume specifications you require, to configure the indicator for the chart.
Always keep in mind that past performance may not be indicative of future results. Settings that seem favorable for one market may be found to be disastrous in another. Therefore, do take the time needed to understand how the settings will behave with the given chart symbol.
Enjoy! 😊👍
How to obtain access to the script?
You have two choices:
Use the "Website" link below to obtain access to this indicator, or
Send us a private message (PM) in TradingView itself.
Quickfingers Luc's Base Breaking Indicator v2.5Introduction
The indicator attempts to implement a popular price action strategy by Luc Thomas (a.k.a. Quickfingers Luc) typically referred to as a QFL base-breaking strategy. The strategy revolves around price action movements that reveal “bases”, which are price levels of support that have a significant, rapid price surges called “bounces”. Once a base is revealed, the base price level is used as reference to implement multiple entries below the base using a layering technique of dollar-cost averaging to place multiple limit orders at various price levels below the base price. As price action breaks below the base price, the limit orders will be filled, and the take profit, breakeven and stop loss prices will be recalculated.
How is it original and useful?
This indicator is unique in that the strategy version fully supports the TradingView backtester, which will enable you to perform experiments with various settings to evaluate performance using the historical chart data. The study version implements numerous custom alerts for you to build TradingView notifications around specific price action events and stay informed with market activity in real-time. Both script versions will provide the same configuration abilities where you can define:
Base confirmation settings, including volume analysis.
Your preferred layering strategy of either Dollar-cost averaging (DCA) or grid-like layers along with precise layer placement.
Your trading parameters like take profit and stop loss offsets, exchange commission rates, trading start time, and position size multiplication for each layer.
Flexible trade eligibility rules that can use other chart indicators, like RSI or EMA, to exclude the selection of base prices for trading.
The visibility of detailed statistics from the chart history pertaining to trading sessions started and closed, session durations, win rate, price action drops and bounces, as well as layer utilization.
How does it compare to other scripts in the Public Library?
The indicator offers a very detailed, comprehensive settings to address all types of markets found on TradingView where you can implement the QFL base-breaking strategy. The strategy version can be considered the first of its kind on TradingView to leverage the backtester to provide informative, detailed performance measurements surrounding this unique trading strategy. The study version will contain numerous custom alerts to aid in your notification preferences and stay informed on the indicator's activities:
Base Created
Base Cracked
Base Respected
Any Layer Cracked
Layer 1 Cracked
Layer 2 Cracked
Layer 3 Cracked
Layer 4 Cracked
Layer 5 Cracked
Layer 6 Cracked
Layer 7 Cracked
Layer 8 Cracked
Layer 9 Cracked
Layer 1 Respected
Layer 2 Respected
Layer 3 Respected
Layer 4 Respected
Layer 5 Respected
Layer 6 Respected
Layer 7 Respected
Layer 8 Respected
Take Profit Crossed
Stop Loss Crossed
What does it do and how does it do it?
It is recommended that you start with a chart that is on an hourly timeframe with the "Scale Price Chart Only" chart setting enabled. When applied to the chart for the first time, the default settings will work to render base price levels in orange and 8 DCA layers in blue using a Fibonacci-like sequence for the deviation offset relative to the base price. As you scroll through the chart's history you should see price action crossing the DCA layers, denoted with blue triangles, and a green take-profit line will render with green triangle denoting the crossing. Lastly, when a trade session begins upon the crossing of the first layer, the indicator will continue to identify base price levels, but the color of the price lines will be gray. When the trade session concludes upon the crossing of the take profit line, the indicator will switch the most recent base price line from gray to orange to make it active and eligible for trading.
As price action develops, the indicator will use the "Base Confirmation Settings" to look back by counting the number of bars to the left and right of a pivot low point, measure the price drops and bounces, and volume amounts to validate that they are within the specified values. If so, the indicator will draw an orange triangle beneath the candle bar to denote it as the pivot low point and begin rendering the orange line as the base price. The DCA layers will be calculated and offset relative to the base price using thin blue lines.
Optionally, the breakeven price line will be drawn to help visualize the true breakeven price which takes into consideration the exchange fees being applied. Base line, take profit, stop loss and DCA layer crossings will be denoted with colorful shapes to help visually recognize the events on the chart.
The volume is validated only at the pivot low candle. It will measure the volume against the moving average to determine base confirmation. A volume factor of 1 will mean that the volume must be at least the same value as the moving average value. A volume factor of 2 means it must be twice the moving average value.
Lastly, the very last bar will render a table of statistics that summarize all the events that have taken place since the indicator began simulating trading sessions from the chart's history.
Strategy Results
The default settings are designed to define a "weak" QFL base to ensure that the indicator will render chart elements when first loaded as well as to allow the backtester to gather order executions and display performance summary. The strategy version is using $10,000 initial capital, a commission rate of 0.1% for both entries and exits, and a 1 tick slippage setting. It is also using 3.4887% of the equity with a Position Size Multiplier of 1.35, using 8 total DCA layers, and a take profit of 5% with no stop loss. All other settings are defaults.
It is recommended that the indicator be "tuned" for your specific market in order to best implement the QFL trading strategy and obtain better desirable results. You do so by using the statistics table and observe the Mean Price Drop and Bounce values to learn what the indicator is detecting when it measures from the pivot low points. Using this information, you can adjust the Base Confirmation Settings accordingly, along with any volume specifications you require, to configure the indicator for the chart.
Always keep in mind that past performance may not be indicative of future results. Settings that seem favorable for one market may be found to be disastrous in another. Therefore, do take the time needed to understand how the settings will behave with the given chart symbol.
Enjoy! 😊👍
How to obtain access to the script?
You have two choices:
Use the "Website" link below to obtain access to this indicator, or
Send us a private message (PM) in TradingView itself.
TWP Position Size Display█ OVERVIEW
Proper position sizing can significant alter your returns from a positive or negative perspective. Being aware of how much size you should put on per trade can help you in the heat of the trading moment and from blowing your account. This script sheds light on that by displaying your account balance, risk per trade, proper position size per trade relative to the pivot point entry level, entry & stop loss price levels and adjoining pivot point labels. This is a companion tool to be used in conjunction with the Automatic Risk to Reward Pivots and/or Standard Fibonacci Pivot Points.
█ FEATURES
1 — Trade Settings
• Trade bias - long or short
• Entry choice - static or dynamic
• Manual entry choice
2 — Account Settings
• Account Balance
• Account leverage
• Account currency
3 — Risk Settings
• Risk per trade (%)
4 — Text
• Size selection
• Color selection
5 — Display
• Frame color selection
• Display position selection
█ HOW TO USE
• Start your trading session by entering in your account balance into the setting and update after every trade it completed
• Set your risk per trade %
• You are ready to trade in a risk adjusted manner
█ NOTES
• The power of this tool is in its persistent placement on the screen. It is key to know where your account is at. This limit can be played with when dealing with larger values. For instance lets say your daily risk is 100k well you don't want to blow all of that in a day so you can set your risk higher than the usual retailer and still stay within your risk limits.
• The risk to reward pivots is the battery pack behind the indicator because the risk % is based on the trade setups from the pivot points.
TWP Higher Timeframe Pivot Points█ OVERVIEW
This script displays the nearest support and resistance fibonacci pivot point levels from the higher reference timeframes -- weekly, monthly, and yearly levels. When trading it is always been helpful for me to be aware of significant price levels of the players participating on larger timeframes. HTF pivot points are a great tool for finding confluence and/or gaining extra conviction on your trades. This is a companion tool to be used in conjunction with the Standard Fibonacci Pivot Points .
█ CONCEPTS
Pivot points are a technical indicator / calculation that can be used to determine the overall trend of the market or determine the level that price may face support or resistance. At the same time it can lead to confirmation of the overall trend when price travels through support or resistance lines continuously.
The pivot point is the average of the high, low, and closing price of the previous time window - Day, Week, Month, Year.
The going belief is that if price is trading above the pivot point (P) then there is a bullish sentiment and trading below the pivot point (P) is a bearish sentiment.
Pivot points can be calculated a multitude of ways but the way I am using it here is using the fibonacci method. See the calculations below.
Note: Tooltips are added for each lines label that display the calculation used.
Default Ratios + Matching Labels:
pivot point = (high + low + close) / 3
support lines = pivot - (prevhigh - prevlow) * 0.236
resistance lines = pivot - (prevhigh - prevlow) * 0.236
38.2% - S1/R1
61.8% - S2/R2
100% - S3/R3
Additional (Mid) Ratios + Matching Labels:
23.6% - SA/RA
50% - SB /RB
76.4% - SC / RC
127.2% - S4/R4
141.4% - S5/R5
161.8% - S6/R6
200% - S7/R7
█ FEATURES
1 — Line Extension - Left, Right, Both, None
2 — Pivot Levels for Week, Month, and Year Pivot Points
• Show line
• Show label
• Line color
• Line style
█ HOW TO USE
• As mentioned earlier it best used along with the Standard Fibonacci Pivot Points to find levels of potential confluence where you believe may be key support, resistance, or a potential inflection point in price action.
█ LIMITATIONS
• Depending on the chart and the amount of data it naturally pulls back, the yearly fibonacci pivot point levels may not show
• Pivot points may be found useful for some and not for others
• There is no assurance that price will stop at, reverse, or reach a specific pivot level
Pivot Points on SR linesAnalyzing price movements for a few years taught me one thing - markets always reverse bouncing off some horizontal Support/Resistance level. The only exception to this rule is when market pops new ATH (All Time High), which certainly happened in so-called "price discovery" run - this asset has never been in this space before, so no Support/Resistance could have been formed, while the rally had to stop at some point anyway.
In all other cases, analyzing past market movements, you will be able to find a place where the market reversed or gathered before. The difficulty is to understand (or guess?) from which S/R level market will reverse right now, because there are many of them. Even if this is probably not possible to make such guess correctly and always, it is good to know when potential reversal shown by whatever indicator you're using happened on SR line or in the middle of nowhere. That last case would turn out to be fake to your worst regrets. Ability to filter-out all those fake pivots is a value my indicator delivers.
Example? It is very often considered an entry signal when Stochastic %K and %D lines cross each other, especially in overbought/oversold area. It could work quite well in sideways markets, but when a trend begins, Stochastic would report CONSECUTIVE counter-trend signals, draining your trading balance to zero quickly. But this trend took place in price-discovery area (not necessarily when going for the new ATH ), so all those counter-trend signals happened not at S/R levels. Hence, they should be ignored.
Big triangles mark pivot point which happened on the S/R line. Small triangles - in the middle of nowhere.
How good is it? I compared it with one of my previous scripts, the "PivotPoints with Momentum confirmation" (), this new script confirms only 1/3 of pivots in the old script on 1m EURUSD chart. Filtering out 2/3 of potentially bad entries is a good result, I'd say :)
This script also fires alerts - alert is triggered as soon as PivotPoint is noticed, on a candle close.
I strongly recommend NOT using it not using this indicator as a standalone indicator. There is so much information you should take into consideration as well - market bias, volume , higher timeframe trend... To make it convenient to join PivotPoints information with other indicators, I have "exported" one plot so you can include it in your own - just use input.source in your own code to have it return 1 for PivotLow ( aka Long entry) and -1 for PivotHigh ( aka Short entry).
Pivot Points on SR lines DEMOAnalyzing price movements for a few years taught me one thing - markets always reverse bouncing off some horizontal Support/Resistance level. The only exception to this rule is when market pops new ATH (All Time High), which certainly happened in so-called "price discovery" run - this asset has never been in this space before, so no Support/Resistance could have been formed, while the rally had to stop at some point anyway.
In all other cases, analyzing past market movements, you will be able to find a place where the market reversed or gathered before. The difficulty is to understand (or guess?) from which S/R level market will reverse right now, because there are many of them. Even if this is probably not possible to make such guess correctly and always, it is good to know when potential reversal shown by whatever indicator you're using happened on SR line or in the middle of nowhere. That last case would turn out to be fake to your worst regrets. Ability to filter-out all those fake pivots is a value my indicator delivers.
Example? It is very often considered an entry signal when Stochastic %K and %D lines cross each other, especially in overbought/oversold area. It could work quite well in sideways markets, but when a trend begins, Stochastic would report CONSECUTIVE counter-trend signals, draining your trading balance to zero quickly. But this trend took place in price-discovery area (not necessarily when going for the new ATH ), so all those counter-trend signals happened not at S/R levels. Hence, they should be ignored.
Big triangles mark pivot point which happened on the S/R line. Small triangles - in the middle of nowhere.
How good is it? I compared it with one of my previous scripts, the "PivotPoints with Momentum confirmation" (), this new script confirms only 1/3 of pivots in the old script on 1m EURUSD chart. Filtering out 2/3 of potentially bad entries is a good result, I'd say :)
This script also fires alerts - alert is triggered as soon as PivotPoint is noticed, on a candle close.
I strongly recommend NOT using it not using this indicator as a standalone indicator. There is so much information you should take into consideration as well - market bias, volume , higher timeframe trend... To make it convenient to join PivotPoints information with other indicators, I have "exported" one plot so you can include it in your own - just use input.source in your own code to have it return 1 for PivotLow ( aka Long entry) and -1 for PivotHigh ( aka Short entry).
Posty PivotsIndicator plots anticipated support/resistance areas based on prior day price action and includes breakout/breakdown targets.
This work is an original interpretation of Camarilla Pivots as well as the techniques taught by Pivot Boss.
As with everything context along with price action is crucial when trading potential reversal zones.
This indicator is used for intraday trading.
Pivot CrossoverThis indicator work on pivot point crossover. In this indicator use three pivot point
White color line is Pivot point for current bar.
Green/Red color line is Pivot point for last bar.
Yellow color line is Pivot point for 2nd last bar.
For long
if last pivot crossover above 2nd last pivot then go long
if current pivot crossover below last pivot then exit long
For short
if last pivot crossover below 2nd last pivot then go short
if last pivot crossover above last pivot then exit short
[FN] Strategy - Store Level on ConditionThis is a function that you can use in strategies. Not a strategy in and of itself.
Example thumbnail is showing the function applied to a strategy.
Oftentimes, I am asked a question regarding how to hold a variable at a specific, constant level over a conditional period of time. This question is always asked in a very long convoluted way like "I want the strategy to know what the high of the last pivot was while I'm in a long." or some other variation of wanting a script to remember something from prior bars.
This function is designed to store a price or some numeric level on the bar that your conditional (bool) statements determine that it should be stored. In this construct, you would set conditional statement(s) to flip the 'hold condition' to be true on the next bar, then hold that value until either the "hold condition" is no longer true or the initial conditions trigger again, causing an update to the level that you want to capture.
You still have to come up with the logic for the start condition and hold condition on your own, but I've provided an example that should give you an idea of how to accomplish this and customize/deploy the function for your purposes.
The function will return 'na' when neither the start condition nor hold condition are true. There's multiple ways to implement this and variations on how the level is chosen. I've written extensive notes in the script to guide you through the logic behind the function. My hope is that it will be useful to those trying to build strategies or anyone attempting to get their script to remember a level under given conditions.
In the thumbnail example, the take profit level is defined at the beginning of the trade and held until the take profit order executes. The order execution is a separate matter. However, storing the take-profit level at a static value is key to telling the strategy.exit() function what price to execute a limit exit order at.
Example: strategy.exit("Exit Long", from_entry = "long", qty_percent = 100, limit = stored_value)
Let me know how it works out for you and if I can be of any assistance.
Note: Strategy results are mainly derived from the fact that the strategy is long-only, the NQ only goes up, and there is no stop loss in place. So don't ask for the specific strategy, because unless you're trading a single contract with a $500,000 account, you'll probably get liquidated using this strategy as it is presented.