WON WeekliesWilliam O'Neil was a big proponent of using weekly charts, often highlighting the significance of 3 or more tight weekly closes, or a sequence of five or more consecutive up weeks. This indicator recognizes both of these conditions providing clear visual cues to signify this institutional buying activity. When three tight weekly closes or more occur a circle will be drawn around the middle close or the background will change color, depending on user preference. If five or more consecutive up weeks are detected a box is drawn around all the price action of those weeks.
User Options:
- Choose to display both or only one condition
- Customizable colors
- Define what a tight close is (default is less than 1.5%)
- Change background color or display smaller circles for 3 weeks tight
- Alerts for both
Note: 5 weekly closes wont print until the 5th weeks candle is closed.
チャートパターン
Price Swing Detection - Smart Money ConceptSince my own style is Smart Money Concept and these days I have seen a lot of my friends who are having trouble identifying structures for their indicators and strategies. I wrote this code so they could use it in their strategy . In fact, this type of structure, as one of the strongest technical structures, can increase the success of your strategy according to your personalization.
The script detects swings (i.e. significant highs and lows) in a financial instrument's price action over a specified period. The user can set the lookback period (number of candles to consider) and the colors of the lines representing bullish and bearish trends.
The script has two functions: detectSwing and pivot high. The detectSwing function calculates the swing highs and lows for the specified number of candles. The function uses the ta.highest and ta.lowest functions to find the highest and lowest prices, respectively, over the lookback period. The function also determines the swing state (high or low) of the current candle and returns the calculated swing values.
The pivot high function calculates the pivot high, which is an important step in detecting bullish structures in the market. If a new top (i.e. swing high) is found, the script updates the pivot high values and creates a line from the recent top to the last bar. The script also updates the trailing maximum values, which are used to extend the top extension line.
For Strategy :
The variable "trendDirection" in the code is used to keep track of the trend state, either bullish (up trend) or bearish (down trend), in the market. The variable is initialized to 0 which represents a downtrend. The value of this variable is updated later in the code based on the calculations of swing highs and lows, pivot crosses, and the trailing maximum. If a bullish structure is detected, the value of "trendDirection" is set to 1, indicating an uptrend.
Broadening Formations [TFO]This indicator highlights deviations from broadening formations (or megaphone patterns). Deviations from broadening ranges can often foreshadow reversals, especially in consolidation phases. These deviations are highlighted via trendlines that change color when tested, and also have the option to be alerted.
These broadening formations are heavily used with "The Strat" and can add confluence when looking for reversals within higher timeframe points of interest.
Golden PocketGolden Pocket
This marks up the fibonacci retracement levels of 0.65 and 0.618 by default, these levels are often referred to as the golden pocket.
They are known by this because when price has an impulse either to the up or downside, price will end up retracing at some point. This Golden pocket often lines up with other means of confluence where it's considered a good entry price from the retrace.
Unlike standard fib retracement indicators, these boxes will extend with current price until they are hit. As well as this, there is a moving average filter which you can set to higher timeframes meaning that you can choose to only look for golden pockets which are following the higher time frame trend. You can easily monitor all of your settings by setting up just 1 alert.
Settings
You have the option to enable/disable the line which marks out the pivot points the fib is being calculated from, you can also change the colour and style of the line.
Below this you have the option to choose what colour the fib boxes are and what colour they change to once price hits it. If you want them to disappear change the colours opacity to 0%.
If you want to change the golden pocket levels you can do that by changing the 0.618 or 0.65 levels in the settings.
The pivot distance controls what part defines a pivot high or low, it must be the highest/lowest to the left/right of the pivot candle count.
MA filter will only accept golden pockets which are trending with the Moving average.
You can change all the settings of the Moving average which acts as a filter including which timeframe it is calculated on.
Alerts
Simply toggle this on int the settings and then click on the 3 dots next to the indicators name, 'add alert', leave the top boxes as they are, you can name the alert anything you like but once you confirm this, it will monitor all golden pockets on the particular asset and timeframe you are looking at. The alerts are set up to trigger as soon as price touches one of the boxes.
Use Cases
We like setting are moving average up on the daily timeframe and using the Moving average filter so we know we are only trading with the higher timeframe trend. From there we can set up alerts on any lower timeframe.
Feel free to use any part of this script in your own code, please just give us a mention so we can check out your contributions to the community as well!
Happy to take in any suggestions or ways of improving
RahulLines CloudJ-Lines Cloud is a technical analysis tool that is used to identify potential support and resistance levels on a chart. It is based on the concept of the "J-Lines," which are lines that are drawn on a chart in order to identify potential turning points in price. The J-Lines Cloud is a variation of the J-Lines that is used to identify levels of support and resistance using cloud, it typically uses multiple lines to create a cloud-like shape, which represents a zone of support or resistance.
To use the J-Lines Cloud, you will typically need a charting platform that has the ability to plot the J-Lines Cloud indicator. The indicator will typically take the form of a cloud-like shape on the chart, with different colors used to represent different levels of support and resistance.
Once the J-Lines Cloud is plotted on the chart, traders can use it to identify potential levels at which the price of an asset may change direction. For example, if the price of an asset is approaching a level of resistance identified by the J-Lines Cloud, a trader may choose to sell or exit a long position. Conversely, if the price of an asset is approaching a level of support identified by the J-Lines Cloud, a trader may choose to buy or enter a long position.
It's important to note that the J-Lines Cloud is a tool for technical analysis and not a standalone strategy, it should be used in combination with other indicators or strategies and also it should be used with the proper risk management and stop loss analysis.
Color Agreement Aggregate (CAA)This indicator helps finding patterns within market structure in a highly intuitive manner.
It does this by painting a picture instead of presenting numerical values.
It greatly reduces noise in trend/structure analysis.
----- HOW TO USE IT -----
1) Zoom out of chart to get a clearer picture of overall color patterns.
2) Consider areas of intense reds and greens as areas of interest.
3) There is always a pattern of intense reds followed by intense greens. Consider this pattern as the start of a new cycle.
4) Key spikes and dips are shown when all 3 bands are matching of intense colors.
5) Turn on Precision in the Style tab to get more information on decisive spikes in price (See "Precision" below).
Reach (top band):
This is the fast and more volatile movement of the market. It shows the direction in which the recent price action is reaching towards.
Energy (middle band):
This is the medium speed of market movement. It shows the energy of the Reach and how influential it is to market change.
Frequent and intense change of color in this band can be a precursor of change within the Basis.
Basis (bottom band):
This is the slower, broader movement of the market. It is the basis on which the Reach and Energy sit on.
Intense colors in this band show major changes in price levels and market structure.
Precision:
Precision shows the weaker levels of colors. It does this by making bars in a band half its size.
For example, if there is a light green bar that is half, it means that the current bar is on the weaker level of the light green level.
Precision helps in identifying where there are influential moves in price action. Note, there will never be a half-sized bar in the highest and lowest levels.
This is because these levels are the limits and don't have a weaker half.
See notes in chart for more information. Note, you can turn off the labels in the Style tab.
----- HOW THIS INDICATOR IS ORIGINAL; WHAT IT DOES AND HOW IT DOES IT -----
This indicator has an original, unique ability to paint the overall market structure in a highly intuitive manner. It "paints" an image instead of showing numbers.
It does this by color-coding different levels of varying speeds of market movement. It then presents these levels as simple bars.
Finally, it stacks them all and creates an overall image of clear breaks and/or repeats within market structure.
This greatly reduces noise in pattern finding, finding breaks in market structure, and in confirming repeated patterns.
----- VERSION -----
The only significant information from this indicator are the colors themselves and the patterns, agreement, and aggregate of the colors.
This indicator does not provide any numerical information of the underlying, mathematical calculations.
The levels for the Reach are made by the KPAM; for the Energy, the CCI; and for the Basis, the RSI.
However, this indicator is not a variant, replacement, or presentation of the KPAM, CCI, or the RSI in any way, shape, or form -- this indicator does not present itself as such.
The 3 indicators are only useful to this indicator in as much as they are what the colors are derived from -- nothing more.
They are needed in order to obtain, visualize, and create the overall aggregate and agreement of colors.
Thus, the KPAM, CCI, and RSI cannot be adjust nor are they plotted. They are not, in any way, a focus of this indicator.
WRBHG with visual gap blockCredit to AkifTokuz
I would like to give the credit to AkifTokuz, I built this indicator based on AkifTokuz's WRBHD indicator code.
What is added?
I have added the visual block to show the hidden gap (HG). The visual dovetailed the full range of the hidden gap. The size of the block give you a good idea on the strength of the hidden gap, namely a bigger block, a stronger support/resisdence encoutnered. I have also added the direction color code to the indicator, Green block is bull hidden gap and red block is bear hidden gap.
How to use the indicator?
Refer to the chart.
After a hidden gap appear, it has to be tested before placing a trade. Say if a green block appear, the price action tell some bullish traders want to move up the price by creating the price up thrust, however whether those traders are strong enought to continue or whether the market would agree that movement, it has to be tested.
The Test - if the hidden gap can withhold the retracement without being broken, it passed the test and order can be placed accordingly.
Hopes you find this indicator useful and my help you to develop a good winning strategy.
DR/IDR Case Study [TFO]This indicator was made to backtest the DR / IDR concept (Defining Range / Implied Defining Range). There is only one built in DR session, but it can be changed to fit whatever session you like. Just make sure that the beginning time of the Session parameter matches the end time of the Defining Range parameter.
I'm not trying to validate or invalidate the claims of the DR concept, as the sample size of the success rate from this indicator is likely significantly smaller than that of the backtests where the initial success rates were derived. I'm simply sharing this indicator to encourage others to do their own due diligence by collecting their own data before implementing new concepts in their trading. Likewise I'm also making this open source for those who wish to do different kinds of backtesting and extract more value from this concept - for example, what percentage of the time does the session actually close further from the DR after initially closing through the range? Data like this could be good to track for those looking to make a trading model out of the DR concept.
Please note that all times are set to the "America/New_York" time zone by default. Besides the fact that the input times will use New York local time, this also means that they automatically adjust for Daylight Savings (this only impacts areas that do not observe Daylight Savings).
Fibonacci compressionThis script will search x-bars back, if it can find a triangle formation that meets certain Fibonacci ratios.
Based on the trend-based fib extension tool from the first high to the first low and then the 2nd high (in a bullish structure, inverse for bearish), we can predict the take profit levels.
The main target is the 0.618, first take profit is at the 0.236. In a strong trend, one can aim for the 1 fib ratio.
Once the 3 points are known, the script will already plot the take profit levels. It is better to wait until the full pattern develops with a 2nd lower high and a 2nd higher low.
The way I use it, is closing 20% at TP1, 80% of the remainder at TP2 and final close out at TP3.
Stop loss is the red line which will show up after a full pattern is formed.
Plot out the profit levels with the trend based fib extension tool, because once there's a break-out of the pattern, the script won't show the compression any more. (or use the replay button to go back in time to plot it again)
The volume label will appear once there's a divergence between the low and higher low or the high and lower high. It is based on my cumulative volume script. It only works well on timeframes above 4 hour, but volume in favor of a short, doesn't always guarantee a good short setup, so don't take it for granted.
It has around a 30 - 33% chance of hitting your TP2, so make sure the risk to reward is at least 3.
Happy trading!
FOREX MASTER PATTERN Companion ToolWhat This Indicator Does
The Forex Master Pattern uses candlesticks, which provide more information than line, OHLC or area charts. For this reason, candlestick patterns are a useful tool for gauging price movements on all time frames. While there are many candlestick patterns, there is one which is particularly useful...
The Engulfing Pattern
An engulfing pattern provides an excellent trading opportunity because it can be easily spotted and the price action indicates a strong and immediate change in direction. In a downtrend, an up candle real body will completely engulf the prior down candle real body (bullish engulfing). In an uptrend a down candle real body will completely engulf the prior up candle real body (bearish engulfing).
Used in conjunction with the FOREX Master Pattern value line, the Engulfing Pattern can assist the trader with reversal timing or trend confirmation during the expansion and trend phases.
As shown in the screenshot below. Engulfing Candles usually precede a sharp move in price in the direction of the engulfing candle.
As shown in the screenshot below, when the Show Lines option is ON while using the indicator, both red and green lines are drawn on the chart automatically when engulfing candles form. These lines are projected forward 100 bars and tend to be reliable support and resistance areas. These areas are typically hidden from view.
In addition to the Show Lines option, the indicator (by default) creates boxes around trading zones that are created when an engulfing candle is formed. (There is an option to hide these from view if desired).
As seen in the screenshot below, these areas / zones are wider than a line and encompass a resistance / support zone rather than a specific price. Liquidity is usually high in these areas and a lot of selling / buying occurs here. These zones are drawn in advance out into the future giving the trader an idea of where price will revert to eventually.
A combination of LINES and AREAS can be used giving the user a better idea of where within the zone price will go.
As seen on the screenshot below, this combination provides a pretty accurate indication of the reversal point well in advance.
As seen in the screenshot below, when a ZONE / AREA has been fully breached (crossed) by price, the area is deactivated an no longer continues forward on the chart. Until price breaches an area, it remains valid and continues on the chart until and only if it is breached by price.
The Indicator is fully customizable.
The use can change the color of the engulfing candles, the color of the zones, transparency etc. You can turn OFF or ON any of the features such as lines, zones, bar coloring, and plotted arrows.
I really hope you get value from this indicator and... HAPPY TRADING!!
Rich Robin Index, The Crypto Fear & Greed Index with RSI Trend The Relative Strength Index (RSI) is a technical indicator based on price movements that is used to determine whether a particular asset is overbought or oversold. It measures the ratio of rising to falling prices over a certain period of time.
The Fear & Greed Index, on the other hand, is a composite index that tracks the sentiment of the crypto market. It is based on seven indicators, each of which measures a different aspect of market behavior. These indicators are: Safe Haven Demand, Stock Price Breadth, Market Momentum, Stock Price Strength, Put and Call Options, Junk Bond Demand, and Market Volatility.
The combination of the RSI and the Fear & Greed Index can provide valuable insights for crypto traders. The RSI can help identify overbought and oversold conditions, while the Fear & Greed Index can give an overall sense of the sentiment in the market. Together, they can provide a more complete picture of the market conditions. For example, if the RSI is indicating that an asset is overbought, but the Fear & Greed Index is showing that the market is still in a state of fear, it may be a good time to sell. On the other hand, if the RSI is indicating that an asset is oversold, but the Fear & Greed Index is showing that the market is in a state of greed, it may be a good time to buy.
Overall, the combination of the RSI and the Fear & Greed Index can provide useful information for traders to make more informed decisions, by giving a sense of the market conditions, and providing a way to identify overbought and oversold conditions.
Simple STRAT Tool by nnamWhat this Indicator Does
This indicator is a very simple tool created specifically for experienced Straters. It was created for those Straters who fully understand the 1-2-3 Strat Scenarios, are in need of an easy to use tool, and do not want or need a lot of messy markings on their chart.
The indicator simply allows the user to color code the Strat 1, 2 ,3 (Inside /Outside /Up / Down) Bars as desired and by default extends lines to the right of the chart from the Highs and Lows of the previous 2 Bars giving the user a simple reference for Strat scenario structure breaks.
As shown above, the bars are color coded, but the original bar color is maintained via the border and wick.
If a bar is an Outside Bar or an Inside Bar, it is still easy to identify whether or not the bar was a Bullish or Bearish 1 or 3.
The same goes for 2UP and 2Down Bars - It is easy to identify Bullish or Bearish UP or DOWN Bars.
Optionally, as show in the screenshot below, the user can extend the lines in both directions to get an "at a glance" better understanding of where price is currently vs previous support and resistance areas.
For Straters that prefer to trade only INSIDE BAR BREAKOUTS there is an optional input setting labeled "Trade Inside Bars ONLY".
This setting turns OFF the lines that extend from the 2nd previous bar back and only displays and extend lines from the previous bar IF and ONLY IF the current bar is an INSIDE (one) bar. .
The User Input settings allow for the following customizations:
1. Custom Outside Bar Color
2. Custom Inside Bar Color
3. Custom 2 Up Bar Color
4. Custom 2 Down Bar Color
5. Turn ON or OFF color coded bars
6. Trade only INSIDE Bar Breakouts
7. Extend Lines Both Directions
8. Hide all Lines
The customizable settings above allow the user to hide all lines and turn OFF color coding without having to fully remove the indicator from the chart. This is convenient when the user has another indicator that uses color coded bars or the lines conflict with another indicator and they need to be temporarily disabled.
If you have any questions regarding this indicator please let me know. If you have any suggestions for minor tweaks to the indicator do not hesitate to ask for them.
I hope you enjoy this indicator and get some usefulness from it... HAPPY TRADING!!
Higher High & Higher Low (Live) ━ [whvntr]This indicator is based on the trading formation Higher high and Higher low. It dynamically displays the current price above the bar on a label.
Features:
• If the current price is lower than the previous high the label color will dim.
• If the current price is lower than the previous low the price figure will turn red.
• Completely customizable
• Inspired by the Price label written by Westy_ , I have written different functions (coding) to make this indicator what it is.
These are not buy and sell signs, it's based on the HH & HL trading formation.
Harmonic Patterns Based SupertrendExtending the earlier implemented concept of Harmonic-Patterns-Based-Trend-Follower , in this script, lets make it work as supertrend so that it is more easier to operate.
🎲 Process
🎯 Derive Zigzag and scan harmonic patterns for last 5 confirmed pivots
🎯 If a pattern is found, bullish and bearish zones are calculated based on parameter Base
🎯 These bullish and bearish zones act as supertrend based on current trade in progress.
🎯 When in bullish mode, bearish zone will only go up irrespective of new pattern forming new low. Similarly when in bearish mode, bullish zones will only come down - this is done to imitate the standard supertrend behaviour.
🎲 Note
Patterns are not created on latest pivot as last pivot will be unconfirmed and moving. Due to this, patterns appear after certain delay - patterns will not be real time. But, this is expected and does not impact the overall process.
Here are few chart captures to demonstrate how it works.
🎲 Settings
Settings are explained in the screenshot below.
Stockbee Momentum BurstThis is a script to color code bars based on the bullish- and bearish combination.
Bullish Combination
Percent: Price >= 4% from yesterday and Volume today > Yesterday
Dollar: Price >= 0.9 dollar from open
Base Requirements
- Price > Yesterday's close
- Price > Open
- Price is within 30% of high
- Todays price range >= Yesterdays price range
- Yesterday's move <= 2%
- Volume >= 100 000
Bearish Combination
Percent: Price <= 4% from yesterday and Volume today > Yesterday
Dollar: Price <= 0.9 dollar from open
Base Requirements
- Price < Yesterday's close
- Price < Open
- Price is within 30% of low
- Todays price range >= Yesterdays price range
- Yesterday's move >= -2%
- Minimum volume for each of last 3 days >= 100 000
Momentum Filter
These are based on the 10 and 20 EMA crossover, where the former above would indicate upward momentum and below downward momentum. This can help to narrow down the color code to continuation phases. The linked option will override all other momentum filters, bullish candles will be displayed when EMA 10 > 20 and bearish candles when EMA 10 < 20.
Simple SuperTrend Strategy for BTCUSD 4HHello guys!, If you are a swing trader and you are looking for a simple trend strategy, you should check this one. Based in the supertrend indicator, this strategy will help you to catch big movements in BTCUSD 4H and avoid losses as much as possible in consolidated situations of the market
This strategy was designed for BTCUSD in 4H timeframe
Backtesting context: 2020-01-02 to 2023-01-05 (The strategy has also worked in previous years)
Trade conditions:
Rules are actually simple, the most important thing is the risk and position management of this strategy
For long:
Once Supertrend changes from a downtrend to a uptrend, you enter into a long position. The stop loss will be defined by the atr stop loss
The first profit will be of 0.75 risk/reward ratio where half position will be closed. When this happens, you move the stop loss to break even.
Now, just will be there two situations:
Once Supertrend changes from a uptrend to a downtrend, you close the other half of the initial long position.
If price goes againts the position, the position will be closed due to breakeven.
For short:
Once Supertrend changes from a uptrend to a downtrend, you enter into a short position. The stop loss will be defined by the atr stop loss
The first profit will be of 0.75 risk/reward ratio where half position will be closed. When this happens, you move the stop loss to break even.
Like in the long position, just will be there two situations:
Once Supertrend changes from a downtrend to a uptrend, you close the other half of the initial short position.
If price goes againts the position, the position will be closed due to breakeven.
Risk management
For calculate the amount of the position you will use just a small percent of your initial capital for the strategy and you will use the atr stop loss for this.
Example: You have 1000 usd and you just want to risk 2,5% of your account, there is a long signal at price of 20,000 usd. The stop loss price from atr stop loss is 19,000. You calculate the distance in percent between 20,000 and 19,000. In this case, that distance would be of 5,0%. Then, you calculate your position by this way: (initial or current capital * risk per trade of your account) / (stop loss distance).
Using these values on the formula: (1000*2,5%)/(5,0%) = 500usd. It means, you have to use 500 usd for risking 2.5% of your account.
We will use this risk management for apply compound interest.
Script functions
Inside of settings, you will find some utilities for display atr stop loss, supertrend or positions.
You will find the settings for risk management at the end of the script if you want to change something. But rebember, do not change values from indicators, the idea is to not over optimize the strategy.
If you want to change the initial capital for backtest the strategy, go to properties, and also enter the commisions of your exchange and slippage for more realistic results.
Signals meanings:
L for long position. CL for close long position.
S for short position. CS for close short position.
Tp for take profit (it also appears when the position is closed due to stop loss, this due to the script uses two kind of positions)
Exit due to break even or due to stop loss
Some things to consider
USE UNDER YOUR OWN RISK. PAST RESULTS DO NOT REPRESENT THE FUTURE.
DEPENDING OF % ACCOUNT RISK PER TRADE, YOU COULD REQUIRE LEVERAGE FOR OPEN SOME POSITIONS, SO PLEASE, BE CAREFULL AND USE CORRECTLY THE RISK MANAGEMENT
The amount of trades closed in the backtest are not exactly the real ones. If you want to know the real ones, go to settings and change % of trade for first take profit to 100 for getting the real ones. In the backtest, the real amount of opened trades was of 194.
Indicators used:
Supertrend
Atr stop loss by garethyeo
This is the fist strategy that I publish in tradingview, I will be glad with you for any suggestion, support or advice for future scripts. Do not doubt in make any question you have and if you liked this content, leave a boost. I plan to bring more strategies and useful content for you!
Harmonic Patterns Based Trend FollowerEarlier this week, published an idea on how harmonic patterns can be used for trend following. This script is an attempt to implement the same.
🎲 Process
🎯 Derive Zigzag and scan harmonic patterns for last 5 confirmed pivots
🎯 If a pattern is found, highest point of pattern will become the bullish zone and lower point of the pattern will become bearish zone.
🎯 Since it is trend following method, when price reaches bullish zone, then the trend is considered as bullish and when price reaches bearish zone, the trend is considered as bearish.
🎯 If price does not touch both regions, then trend remains unchanged.
🎯 Bullish and bearish zone will change as and when new patterns are formed.
🎲 Note
Patterns are not created on latest pivot as last pivot will be unconfirmed and moving. Due to this, patterns appear after certain delay - patterns will not be real time. But, this is expected and does not impact the overall process.
When new pattern formed
When price breaks over the zones
🎲 Output
🎯 Patterns formed are drawn in blue coloured lines. Due to pine limitation of max 500 lines, older patterns automatically get deleted when new ones come.
🎯 Bullish Zone and Bearish Zone are plotted in green and red colours and the zone will change whenever new pattern comes along.
🎯 Bar colors are changed according to calculated trend. Trend value can be 1 or -1 based on the current trend. You can also find the value in data window.
🎯 For simplicity purpose, input option for selection of specific patterns are not provided and also pattern names are not displayed on the chart.
Session Ranges by CeleSimple indicator that shows the various daily sessions and includes a pip counter for every different session.
Lines and Table for risk managementABOUT THIS INDICATOR
This is a simple indicator that can help you manage the risk when you are trading, and especially if you are leverage trading. The indicator can also be used to help visualize and to find trades within a suitable or predefined trading range.
This script calculates and draws six “profit and risk lines” (levels) that show the change in percentage from the current price. The values are also shown in a table, to help you get a quick overview of risk before you trade.
ABOUT THE LINES/VALUES
This indicator draws seven percentage-lines, where the dotted line in the middle represents the current price. The other three lines on top of and below the middle line shows the different levels of change in percentage from current price (dotted line). The values are also shown in a table.
DEFAULT VALUES AND SETTINGS
By default the indicator draw lines 0.5%, 1.0%, and 1.5% from current price (step size = 0.5).
The default setting for leverage in this indicator = 1 (i.e. no leverage).
The line closest to dotted line (current price) is calculated by step size (%) * leverage (x) = % from price.
Pay attention to the %-values in the table, they represent the distance from the current price (dotted line) to where the lines are drawn.
* Be aware! If you change the leverage, the distance from the closest lines to the dotted line showing the current price increase.
SETTINGS
1. Leverage: set the leverage for what you are planning to trade on (1 = no leverage, 2 = 2 x leverage, 5 = 5 x leverage...).
2. Stepsize is used to set the distance between the lines and price.
EXAMPLES WITH DIFFERENT SETTINGS
1) Leverage = 1 (no leverage, default setting) and step size 0.5 (%). Lines plotted at (0.5%, 1%, 1.5%, and –0.5%, –1%, –1,5%) from the current price.
2) Leverage = 3 and stepsize 0.5(%). Lines plotted at (1.5%, 3.0%, 4.5%, and –1.5%, –3.0%, –4.5%) from the current price.
3) Leverage = 3 and stepsize 1(%). Lines plotted at (3%, 6%, 9%, and –3%, –6%, –9%) from the current price.
The distance to the nearest line from the current price is always calculated by the formula: Leverage * step size (%) = % to the nearest line from the current price.
Open DriveOpen Drive is a market profile concept introduced by Jim Dalton. It occurs when the price moves directionally and persistently for the first 30 minutes from the cash market open.
It is necessary to use 30-minute bars as there needs to be enough time to measure an extreme move of the cash open. This means there will be fewer trades than other strategies using faster time periodicities.
The script finds open drives from these time points 0700/ 0800 and 1300/1430.
The entry signal also has a breakout threshold using the 5-bar high and 5-bar low to only take trades moving away from the prior 5-bar range. This weeds out most mid-range trades and small range expansion bars.
If the price has had a strong move from the open and has broken either below the prior 5-bar low or above the prior 5-bar high by an amount equal to the prior 5-bar range a trade is entered in the direction of the move.
The Exit criteria; exit after 3 bars which is 90mins when using a 30min periodicity.
Note, this script is shared to show that momentum generated on or around the cash open tends to persist. The entry and exits of this strategy are quite naive but there are plenty of ways to take more aggressive entries on faster time frames when an open drive occurs. The times chosen for this strategy will suit stock index futures mainly. The user can experiment with other futures products and their corresponding pit/ cash open hours.
Google "open drive market profile" for more information on open drives and market profile concepts.
Happy trading!
Visible Fibonacci█ OVERVIEW
This indicator displays Fibonacci retracement and extension levels on the price chart using data within the chart's visible range, providing traders with an automated alternative to our well-known drawing tool .
█ CONCEPTS
Fibonacci sequence and the Golden ratio
The Fibonacci sequence is a sequence of numbers where each term is the sum of the previous two terms. In his book Liber Abaci , Fibonacci used this sequence to estimate the growth of rabbit populations. Although most commonly associated with Fibonacci, this numeric sequence appeared in Indian mathematics as early as 200 BC. As this sequence approaches infinity, the ratio of the last element to the preceding approaches the Golden ratio (1.618033...), a well-known metallic ratio theoretically observed in many natural and synthetic systems. Many traders believe that the Fibonacci sequence and the Golden ratio carry significance in the financial markets.
Fibonacci retracements and extensions
Fibonacci retracements and extensions are extremely popular in technical analysis. They are created by connecting two extreme points, typically pivot points, by a trend line and multiplying the range between them by the ratios of steps in the Fibonacci sequence, or more precisely, powers of the Golden Ratio, to produce estimated levels of support and resistance. The ratios used for retracement multipliers are typically the Golden ratio raised to the power of 0, -0.5, -1, -2, and -3, or 1, 0.786, 0.618, 0.382, and 0.236, respectively. It is also common to see traders use a retracement ratio of 0.5. The ratios used for extension multipliers are typically the Golden ratio raised to the power of 0.5, 1, 2, and 3, or 1.272, 1.618, 2.618, and 4.236, respectively. Traders often combine these retracement and extension ratios with others they deem significant for a more personalized output.
Zig Zag
Zig Zag is a popular indicator that filters out minor price fluctuations to denoise data and emphasize trends. Traders commonly use Zig Zag for trend confirmation, identifying potential support and resistance, and pattern detection. It is formed by identifying significant local high and low points in alternating order and connecting them with straight lines, omitting all other data points from their output. There are several ways to calculate the Zig Zag's data points and the conditions by which its direction changes. This script uses the highest and lowest values over a specified length to estimate the locations of pivots. The Zig Zag reverses its direction when a new high or low emerges in the opposite direction. Additionally, enabling the "Detect additional pivots" option in the script settings will locate extra pivots when the number of bars in which no new pivot occurs exceeds the Zig Zag length.
Visible Fibonacci
This script uses the chart's visible bars to calculate and display an automated Fibonacci retracement tool with extreme points based on either of two calculation methods:
• Visible Chart Range: This method uses the highest and lowest points from the visible chart range for Fibonacci level calculation.
• Visible Zig Zag: This method uses historical pivots from a Zig Zag indicator for level calculation. The "nth Last Pivot" input in the script settings controls how many pivots back from the last visible one will be used to calculate the Fibonacci levels.
As traders pan and zoom on their charts, the script dynamically recalculates its values explicitly using the bars within the visible range.
Note that levels drawn outside the range between the high and low points may affect the scale of the chart. To prevent this, select the "Scale price chart only" option in the chart settings.
█ FOR Pine Script™ CODERS
• This script utilizes functions from the VisibleChart library by our resident PineCoders . The library exploits the chart.left_visible_bar_time and chart.right_visible_bar_time variables, which return the opening time of the leftmost and rightmost bars on the chart. They are only two of many new built-ins in the `chart.*` namespace. See this blog post for more information, or look them up by typing "chart." in the Pine Script™ Reference Manual .
• This script's architecture utilizes user-defined types (UDTs) to create custom objects which are the equivalent of variables containing multiple parts, each able to hold independent values of different types . The recently added feature was announced in this blog post.
Look first. Then leap.
Multi-timeframe Harmonic PatternsHello friends. In recent months I have been busy with my academic research and haven't had much time to publish new scripts. To fill the gap of these months, I decided to publish the indicator Multi-timeframe Harmonic Patterns . Harmonic technical chart patterns can predict the next price trend and provide traders with clues to the price direction, which is one of the indicators widely used by professional traders.
(1) Indicator description
This indicator is built on ZigZag Multi Time Frame with Fibonacci Retracement@LonesomeTheBlue . Thanks to LonesomeTheBlue for contributing the awesome indicator
The indicator supports 6 different timeframes , and 25 different harmonic patterns
This indicator supports indicating key indicator prices: entry price, stop loss price, and two take profit prices
(2) Key parameters
timeframe resolution: The timeframe of the harmonic pattern
pivot high/low source: Calculation method of high/low pivot points
timeframe pivot period: Minimum period of high/low pivot points
delay for confirmations: Wait for N candles to confirm the chart pattern
bullish/bearish colors: Bullish/bearish pattern colors
enable harmonic patterns: Enable current harmonic patterns
show harmonic patterns: Show harmonic patterns found
show trading prices of patterns: Show key prices of harmonic patterns
(3) Supported Patterns:
Gartlay
Cypher
Bat
Deepcrab
Crab
Butterfly
Shark
0-5
AB=CD
3-Drives
Anti-Gartlay
Anti-Cypher
Anti-Bat
Anti-Crab
Anti-Butterfly
Anti-Shark
Black-Swan
White-Swan
Descending-Triangle
Ascending-Triangle
Symmetrical-Triangle
Headers&Shoulders
Inverse-Headers&Shoulders
Double-Top
Double-Bottom
————————————————————————————————————————
各位朋友大家好。最近几个月我忙于自己的学术研究没有过多时间更新脚本。为弥补这几个月的空缺,我决定发布该 多时间周期的谐波指标 。谐波技术图表形态在一定程度上可以预测下一个价格走势,为交易者提供价格方向的线索,是广大专业交易人员广泛使用的指标之一。
(1) 指标说明
该指标建立于 ZigZag Multi Time Frame with Fibonacci Retracement@LonesomeTheBlue ,感谢LonesomeTheBlue贡献的出色指标
该指标支持 6种不同的时间周期 ,以及 25种不同的谐波形态
该指标支持指示关键的指标价格:入场价格、止损价格、以及两种止盈价格
(2) 关键参数
timeframe resolution: 谐波形态的时间周期
pivot high/low source: 高/低枢纽点的计算方式
timeframe pivot period: 高/低枢纽点的最小周期
delay for confirmations: 等待N个蜡烛以确认图表形态
bullish/bearish colors: 看涨/看跌的形态颜色
enable harmonic patterns: 使能当前的谐波形态
show harmonic patterns: 显示被发现的谐波形态
show trading prices of patterns: 显示谐波形态的关键价格
(3) 支持形态:
Gartlay
Cypher
Bat
Deepcrab
Crab
Butterfly
Shark
0-5
AB=CD
3-Drives
Anti-Gartlay
Anti-Cypher
Anti-Bat
Anti-Crab
Anti-Butterfly
Anti-Shark
Black-Swan
White-Swan
Descending-Triangle
Ascending-Triangle
Symmetrical-Triangle
Headers&Shoulders
Inverse-Headers&Shoulders
Double-Top
Double-Bottom
Renko Emulator - Rev NR - Released - 12-29-22Renko Emulator - Rev NR - Released 12-29-22
By Hockeydude84
Simple script to Emulate Renko Charting behavior on standard candle stick charts. Code provide capability to select between standard(ish) Renko bricks (in this code it's defined by percent vs ticks/value), or an ATR brick option. For ATR bricks, the code provides an option to inhibit emulator movement (formation of new bricks) by providing a minimum threshold that must be present. This threshold is the "Standard Brick" input (the input pulls double duty). Code also provides multiple plotting options.
Use the code to help see trends and reduce the chop/erroneous data. Also helps to identify where trend deviations are present.