Fundur - Easy ZonesFundur Easy Zones Trading Indicator
The Fundur Easy Zones trading indicator is designed to simplify market analysis by visually marking critical trading zones. This tool helps traders identify optimal buy and sell areas based on historical price action, making it easier to make informed trading decisions.
Calculation Methodology
The Easy Zones indicator employs pivot point calculations combined with price action analysis and the Average True Range (ATR) to determine key trading zones. These zones are calculated by analyzing market volatility and price movements within each timeframe, allowing the identification of significant discount and premium levels.
Pivot Points: The indicator calculates pivot points based on the average of high, low, and close prices from previous periods. These pivot points serve as the foundational levels from which discount and premium zones are derived.
Price Action Analysis: Historical price data is scrutinized to identify patterns and behaviors that signify potential reversal points. This analysis helps in pinpointing zones where the market is likely to experience significant support (discount) or resistance (premium).
Average True Range (ATR): ATR is used to measure market volatility. By incorporating ATR into the calculations, the indicator adjusts the zone boundaries to reflect current market conditions, ensuring that the zones remain relevant and accurate. Higher ATR values indicate greater volatility and wider zones, while lower ATR values result in narrower zones.
Discount and Premium Levels: Based on the pivot points and ATR, the indicator calculates various tiers of discount and premium levels. These tiers (D1, D2, D3 for discounts and P1, P2, P3 for premiums) represent increasing levels of price deviation from the mean, providing traders with clear entry and exit points.
Features Overview
Zones Settings:
Zones History Length: Adjust the number of historical zones displayed on the chart to analyze past price behavior.
Levels Line Width: Customize the thickness of the zone lines for better visibility.
Structure Settings:
Show Fair Value: Display the fair value zone, providing a visual reference for equilibrium price levels. The fair value is calculated based on the median price over the selected period.
DP (Discount and Premium) Settings:
Enable Discount and Premium Levels: Activate the display of critical buy (discount) and sell (premium) zones. These zones are determined using price deviation analysis from the mean, identifying significant discount (support) and premium (resistance) levels.
Tiered Levels: Visualize up to three levels of discount and premium zones, each with specific target prices (TP1, TP2, TP3), representing different levels of price deviation significance.
Highlight Buy and Sell Zones:
Enable Background: Highlight the background of buy and sell zones for enhanced clarity.
Label Settings:
Enable All Labels: Ensure all labels are visible for quick reference.
Show Descriptive Title: Display titles for each zone, making it easier to understand the context.
Show Take Profit Targets (TP): Clearly mark take profit targets within each zone.
Show Price: Display price levels for each zone for precise entry and exit points.
Symbols Settings:
Fair Value, Premium, and Discount Indicators: Customize symbols to represent gaining or losing fair value, premium, and discount levels, enhancing visual cues for market sentiment.
How to Use the Easy Zones Indicator
Identifying Entry Points:
Use the Discount Zones to identify optimal buy areas. The levels (D1, D2, D3) represent increasing levels of discount, with D1 being the least discounted and D3 the most.
Place buy orders at or near these zones to take advantage of potential price reversals.
Identifying Exit Points:
Use the Premium Zones to identify optimal sell areas. The levels (P1, P2, P3) represent increasing levels of premium, with P1 being the least and P3 the highest.
Place sell orders at or near these zones to maximize profits on upward price movements.
Using Fair Value:
The Fair Value Zone provides a balanced price level where the market is likely to return. Use this as a reference point for setting realistic entry and exit targets.
Strategic Planning:
Combine Discount and Premium Zones with the Fair Value Zone to create a strategic trading plan.
Monitor the zones for price reactions and adjust your trading strategy accordingly.
Best Practices
Historical Analysis:
Regularly review historical price actions within the marked zones to understand market behavior.
Customization:
Adjust the settings to suit your trading style and market conditions. Experiment with different zone lengths and line widths for optimal clarity.
Risk Management:
Always use stop-loss orders in conjunction with the identified zones to manage risk effectively.
By integrating the Fundur Easy Zones indicator into your trading strategy, you can enhance your market analysis, make more informed decisions, and ultimately improve your trading performance.
SNR
close price numberIn this script, we're creating a custom indicator to plot the previous day's closing price on the chart. This script retrieves the previous day's close using ta.change(time('d')) function. Then, it checks the value of the previous day's close and determines the increment accordingly input . Finally, it calculates the current day's close by adding the increment to the previous day's close and plots it on the chart.
The script can be integrated into a trading strategy to generate buy or sell signals based on the crossing closing price+increment line ...
Psychological Levels: previous day close price + increment numbers tend to have psychological significance in trading. Traders often pay attention to these levels because they represent key price levels that are easy to remember and widely recognized. When the price approaches these levels, traders may anticipate increased buying or selling pressure, leading to potential support or resistance.
For take profit and stop loss -Trader can use this as a take profit level on every previous day close+increment or close-decrement
buy signal-
1)whenever price cross any previous day close+number it give buy signal
2) i am using ma for filter buy signal we can enable and disable that function from input
sell signal-
1)whenever price cross any previous day close-number it give sell signal
2) i am using ma for filter sell signal we can enable and disable that function from input
Malaysian SnR LevelsThis indicator can be used to display support and resistance levels in accordance with Malaysian SnR , in which Support and Resistance are not areas in a chart but clear levels of a line chart. The term line chart refers the current chart in Tradingview as type Line (not Candles) with it's peaks and valleys.
There are 3 different horizontal levels in Malaysian SnR:
A-Level: This level is located at the peak of this line chart. It is named so because this peak has the shape of the letter A.
V-Level: Level at the valley of a line chart, which reminds of the letter V.
The A- and V-Levels are formed for the current chart / timeframe and you can define with the parameter Bars Lookback how many candles will be taken into account for adding the levels.
Gap level: This level is located at the Close/Open gap between two candles of the same color. The period for these levels is also defined by the option Bars Lookback .
The levels are shown as horizontal lines and mark Support when they are below the current price and Resistance when they are above it.
What makes the indicator so special is that conventional support and resistance indicators only use ranges, but Malaysian SnR uses clear and accurate levels at the peaks and valleys (and gaps), which can be of the state Fresh or Unfresh . But what does this state mean and how is it displayed in this indicator?
A level is designated as fresh if it has either not yet been tested, i.e. it has not been touched by a wick. If a level was no longer fresh, it can become fresh again if it is crossed by the body of a candle. If it is then touched by a wick again afterwards, it is considered unfresh (tested) again.
If a level is fresh, the theory of Malaysian SnR assumes that there is a greater probability that the price will react at that level and move in the opposite direction because this fresh Support / Resistance level is more significant than an unfresh level.
The indicator is calculating this state and displays the levels then in a different way. Fresh levels are displayed as solid lines, unfresh levels are displayed as dashed lines. It is also possible to hide unfresh levels, so that only the fresh levels are visible in the chart.
The Fresh -state of a level would be very hard to see without it the indicator:
If the script would just display all the levels that can be found for the Bars Lookback period, the chart woulkd still be full of levels. To filter this and display the most relevant levels, you can use the options Levels above/below price (number of levels) so that only the levels are displayed that are the closest ones to the current price.
Parameters of the indicator
Line Color: Line color of the levels
Line Width: Thickness of the levels
Display gap levels: Should the Gap-Levels be displayed or not
Display fresh levels only: Should unfresh / tested levels be hidden in the chart
Bars Lookback: Number of bars lookback period at which levels will be added to the chart
Levels Above Price: Number of levels that should be displayed above the price. It will be the closest levels to the price that can be found.
Levels Below Price: Number of levels that should be displayed below the price. It will be the closest levels to the price that can be found.
Timeframe Limit: Indicator will only be visible for this timeframe and above.
How to trade with Malaysian SnR levels?
One way to trade with these levels is for instance to wait on a higher timeframe like the Daily til price is reaching a fresh level. At this point a trader could switch to a lower timeframe to check if price is reacting at this level, which is when price is moving into the opposite direction.
So reaching a level of Support and then see price moving to the upside on a lower timeframe can be used as a buy signal - on the other hand if price is reaching a level of Resistance and then moving away from it to the downside on a lower timeframe, this can be used as a sell signal.
Multi Timeframe Support and Resistance [ABA Invest]About
Automatic level of support and resistance ( SnR ) in the chart. It helps users to decide where is the level of SnR and also optimize the level by changing the input base on their needs
Input:
Pivot - The number of bars left and right side of the pivot to choose how detailed the SnR level
Type - To draw the line on the candle wick endpoints or body
Timeframes option - you can choose to display other timeframes beside the current chart timeframe
Adaptive moving average - to help users identify breaks of the SnR level with the moving average line
Line length - length of the moving average line if you activate the adaptive moving average option
How to use:
Attach the indicator to the chart and then you will find the red and green lines. Red line work as resistance level and green line works as support level and also you can merge adjacent line levels into an area of SnR.
The Adaptive moving average (AMA) line function is to see the break of SnR level and prepare for the setup.
Buy setup: AMA line break resistance level, when the price retest the support (the previous break resistance) we can enter buy trade
Sell setup: AMA line break support level, when the price retest the resistance (the previous break support) we can enter sell trade
Note: Don’t blindly follow the AMA trend signal
[blackcat] L2 Ehlers Enhanced Signal to Noise IndicatorLevel: 2
Background
John F. Ehlers introuced another Enhanced Signal to Noise Indicator in his "Rocket Science for Traders" chapter 8.
Function
blackcat L2 Ehlers Signal to Noise Indicator is used to measure Signal-to-Noise Ratio (SNR). In this code, the period of the measured dominant cycle is calculated in exactly the same manner as we calculated it for the Primary SNR Indicator. Near the end of the code, after the dominant cycle is determined, Dr. Ehlers computes the SNR. The Quadrature component Q3 is calculated by multiplying the 2-bar momentum of the Weighted Moving Average (WMA) smoothing by the dominant cycle amplitude correction factor.
Key Signal
Smooth --> 4 bar WMA w/ 1 bar lag
Detrender --> The amplitude response of a minimum-length HT can be improved by adjusting the filter coefficients by
trial and error. HT does not allow DC component at zero frequency for transformation. So, Detrender is used to remove DC component/ trend component.
Q1 --> Quadrature phase signal
I1 --> In-phase signal
Period --> Dominant Cycle in bars
SNR --> Signal-to-Noise Ratio
Pros and Cons
100% John F. Ehlers definition translation of original work, even variable names are the same. This help readers who would like to use pine to read his book. If you had read his works, then you will be quite familiar with my code style.
Remarks
The 6th script for Blackcat1402 John F. Ehlers Week publication.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
[blackcat] L2 Ehlers Signal to Noise IndicatorLevel: 2
Background
John F. Ehlers introuced Signal to Noise Indicator in his "Rocket Science for Traders" chapter 8. Dr. Ehlers terms the case where half the average daily trading range is equal to the signal amplitude as our zero decibel Signal-to-Noise Ratio (0 dB SNR) condition. He wants the signal amplitude to be at least twice the noise amplitude (6dB SNR) so that there exists a reasonable chance to make a profit from the chart analysis.
Function
blackcat L2 Ehlers Signal to Noise Indicator is used to measure Signal-to-Noise Ratio (SNR). The SNR in decibels is calculated in a single line of code near the end. The signal power is divided by the noise power to get a power ratio. The logarithm of the power ratio. At 0 dB, the peak-to-peak noise signal is twice the amplitude of the signal. Therefore, when we compute the 0 dB case, the ratio is calculated to be 10*log(1/2)^2 = -6 dB. We must then add 6 dB back into the computation to remove this bias, establishing the definition of 0 dB SNR.
Key Signal
Smooth --> 4 bar WMA w/ 1 bar lag
Detrender --> The amplitude response of a minimum-length HT can be improved by adjusting the filter coefficients by
trial and error. HT does not allow DC component at zero frequency for transformation. So, Detrender is used to remove DC component/ trend component.
Q1 --> Quadrature phase signal
I1 --> In-phase signal
Period --> Dominant Cycle in bars
SNR --> Signal-to-Noise Ratio
Pros and Cons
100% John F. Ehlers definition translation of original work, even variable names are the same. This help readers who would like to use pine to read his book. If you had read his works, then you will be quite familiar with my code style.
Remarks
The 5th script for Blackcat1402 John F. Ehlers Week publication.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
True Strong Classical Support/Resistance LevelsThis script is based on the approach of filtering signals by checking higher timeframes.
So basically setting higher numbers in "Strength Of Levels" option, will make the indicator check for support and/or resistance levels in timeframes higher than the current.
Unfortunately, I was forced to still use inefficient built-in functions pivothigh() and pivotlow(). I hope they fix them up soon!
I'm looking for any opinion about the idea and if you like any of my scripts, anything you send means a lot to me.
This script is published for the third time because of some moderators absurd behavior.
But thank heavens, the code is now more clean and of course the option "Strength Of Levels" accepts float numbers.
Ehlers Enhanced Signal To Noise Ratio [CC]The Enhanced Signal To Noise Ratio was created by John Ehlers (Rocket Science For Traders pgs 87-88) and this is my favorite Ehlers Signal To Noise Ratio indicator. Scalpers like to use this indicator because when it is above the dotted line then the stock is trending and not trading sideways. Buy when the indicator line is green and sell when it is red.
Let me know when you want to see me publish other indicators or if you want something custom done!
Ehlers Alternate Signal To Noise Ratio [CC]The Alternate Signal To Noise Ratio was created by John Ehlers (Rocket Science For Traders pgs 84-85) and this is a variation of his signal to noise ratio that some scalpers might find more useful than his default signal to noise ratio. You would want to buy and sell when the indicator is above the dotted line because that means the stock is volatile enough to maximize any movement of the trade in either direction. Buy when the indicator line is green and sell when it is red.
Let me know if there are other indicators you would like to see me publish or if you want something custom done!
Hidden Supports & Resistances + Round LevelsIf you search the internet, you won't find much about these types of resistance and support levels. Hidden levels are SnR levels calculated based on some psychological patterns and sometimes it's unbelievable that the chart responds to these levels.
So use the indicator and check the idea.
Classical Supports & ResistancesThis indicator shows classical resistance and support levels which retraced the chart lately. Notice that the condensed lines laying close together are showing an area of support and/or resistance.
But after all, it was a tedious work creating this indicator because like I've already said, pine script is a very odd and weak language which does not have many ordinary features like useful loops, simple line drawing and even reasonable variable casting!
So I was forced to use its built-in pivothigh() and pivotlow() functions without any handy documentation. I assume that even these functions don't work as expected, and because of that, I embedded "Sensitivity" and "Lookback Time" options in the indicator as a workaround.
Feel free to use it and send me your comments/solutions.
Ehlers Signal To Noise Ratio [CC]The Signal To Noise Ratio was created by John Ehlers (Rocket Science For Traders pgs 81-82) and this indicator is perfect for all of the scalpers out there! This will let you know when the stock is at a high volatility or not and when to buy or sell. If the indicator crosses over the dotted line then that means the stock is volatile and it is trading flat then it will be below the dotted line. Buy when the indicator line is green and sell when it is red.
This was a custom request so let me know if there are any other scripts you would like me to publish or if you want something custom done!
ProfitBee59 v5.0ProfitBee59 v5.0 for TradingView (pb5 ai) helps you do tedious works on your technical charts. It does CC59 counting and prints out positive or negative number on each price bar. When the counting arrives at -9 or +9, it creates respectable support and resistance ( SNR ) levels on the chart. It draws a pair of fast/slow average lines with pink/red colors for corresponding downtrend and yellow/green for uptrend. A yellow cross sign shows a crossing point between these fast/slow average line. It also draws a mega average line in gray to give a mega trend picture. Pb5 ai provides time/price analyseses. Up/Dn arrows are printed out at high probability buy/sell regions. In addition, other auxiliary tools such as Max/Min finder used to find the candlesticks with local max/min prices or Gap finder used to locate discontinuity between candlesticks.
For Forex trading, other intraday parameters are also available including the day opening level, high/low of yesterday and intraday brown background marking time interval for key trading hours in Asian-London-New York markets.
Smart phone/tablet and PC notifications of events occurring in the chart can be sent to you by server-side alerts so that you don't have to stay in front of the screen all the time.
=================================================================
The script ProfitBee59 v5.0 for TradingView (pb5 ai) is locked and protected. Contact the author for your access.
=================================================================
How to install the script:
------------------------------
*Go to the bottom of this page and click on "Add to Favorite Scripts".
*Remove older version of the script by clicking on the "X" button behind the indicator line at the top left corner of the chart window.
*Open a new chart at and click on the "Indicators" tab.
*Click on the "Favorites" tab and choose "ProfitBee59 v5.0".
*Right click anywhere on the graph, choose "Color Theme", the select "Dark".
*Right click anywhere on the graph, choose "Settings".
*In "Symbol" tab, set "Precision" to 1/100 for stock price or 1/100000 for Forex and set "Time Zone" to your local time.
*In "Scales" tab, check "Indicator Last Value Label".
*In "Events" tab, check "Show Dividends on Chart", "Show Splits on Chart" and "Show Earnings on Chart".
*At the bottom of settings window, click on "Template", "Save As...", then name this theme of graph setting for future call up such as "My chart setting".
*Click OK.
Intraday Support and ResistanceDisplay daily preferred trading and display support and resistance (modified) which is calculate using daily pivots
Signal To Noise Ratio IndicatorThis is a trend indicator at its core so combine with rsi or a moving average of your choice to see which direction the stock is trending in.
Only enter a position (long or short) when signal to noise ratio is above the signal line
This is one of my first indicators posted on here so be sure to leave me feedback
[CS] AMA Strategy - Channel Break-Out"There are various ways to detect trends with moving averages. The moving average is a rolling filter and uptrends are detected when either the price is above the moving average or when the moving average’s slope is positive.
Given that an SMA can be well approximated by a constant-α AMA, it makes a lot of sense to adopt the AMA as the principal representative of this family of indicators. Not only it is potentially flexible in the definition of its effective lookback but it is also recursive. The ability to compute indicators recursively is a very big positive in latency-sensitive applications like high-frequency trading and market-making. From the definition of the AMA, it is easy to derive that AMA > 0 if P(i) > AMA(i-1). This means that the position of the price relative to an AMA dictates its slope and provides a way to determine whether the market is in an uptrend or a downtrend."
You can find this and other very efficient strategies from the same author here:
www.amazon.com
In the following repository you can find this system implemented in lisp:
github.com
To formalize, define the upside and downside deviations as the same sensitivity moving averages of relative price appreciations and depreciations
from one observation to another:
D+(0) = 0 D+(t) = α(t − 1)max((P(t) − P(t − 1))/P(t − 1)) , 0) + (1 − α(t − 1))D+(t − 1)
D−(0) = 0 D−(t) = −α(t − 1)min((P(t) − P(t − 1))/P(t − 1)) , 0)+ (1 − α(t − 1))D−(t − 1)
The AMA is computed by
AMA(0) = P(0) AMA(t) = α(t − 1)P(t) + (1 − α(t − 1))AMA(t − 1)
And the channels
H(t) = (1 + βH(t − 1))AMA(t) L(t) = (1 − βL(t − 1))AMA(t)
For a scale constant β, the upper and lower channels are defined to be
βH(t) = β D− βL(t) = β D+
The signal-to-noise ratio calculations are state dependent:
SNR(t) = ((P(t) − AMA(t − 1))/AMA(t − 1)) / β D−(t) IfP(t) > H(t)
SNR(t) = −((P(t) − AMA(t − 1))/AMA(t − 1)) / β D−(t) IfP(t) < L(t)
SNR(t) = 0 otherwise.
Finally the overall sensitivity α(t) is determined via the following func-
tion of SNR(t):
α(t) = αmin + (αmax − αmin) ∗ Arctan(γ SNR(t))
Note: I added a moving average to α(t) that could add some lag. You can optimize the indicator by eventually removing it from the computation.
Signal to Noise Ratio [SNR]Intro
This script measures the Signal to Noise ratio of a security and plots it in deciBels scale!
Usage
Ideally, you would want the ratio to be above 10 dB, meaning the Signal strength is 10x the noise strength.
As a baseline, you should not rely on indicators that use any kind of moving average if the SNR is below 6 dB - meaning Signal strength is only 4x noise strength.
I've written the SNR as a functional block so you may simply copy and paste, then call getSNR() to get the ratio in dB.
Principle
I consider a bar's High and Low to be the range of that period and (High + Low)/2 to be the "real" value of the signal.
This script compares a bars range (noise) to the perceived signal using a Hilbert Transform.
Cheers,
DasanC
Support & Resistance FilterVisualize support and resistance levels with a high level of user control. Tired of meaningless, tightly clustered, support and resistance lines (shouldn't those just be considered bounces)? Just filter them out with the Bounce Filter. Want to visualize S&R in a crisp, clear new way? Use "Areas of S&R". Want to have a ridiculous amount of control over what counts for support and resistance in the first place? Use the Swing Filter (built-in). Perhaps most interesting... ...want to see support and resistance for (say) Bitfinex-BTC/USD on a Coinbase chart to see how they affect Coinbase candles? Then check out the advanced settings and have fun ;)
Support & Resistance levels are determined by historic pivots (swings). If a price breaks through the first resistance level, it may really take off. If it breaks through the second level, or through all five resistance levels, you might be on your way to the moon (Lambos not included). The inverse is true when the price breaks-down, through support levels.
5 Levels of Support and 5 levels of Resistance are available.
In a very bullish or bearish situation, searching back in time for the next highest Support or Resistance level can become quite demanding on TradingView's server. I've pushed it to the limit:
R2 & S2 look back 1,000 candles
R3 & S3 look back 2,250 candles
R4 & S4 look back 3,500 candles
R5 & S5 look back 4,999 candles
When TradingView's servers are getting a little bogged down, you may get an error about "a loop being longer than 100ms". That just comes with the territory of searching so many candles back. To resolve it, just click "Force Reload" in the settings.
I'd love to post the manual, the instructions for the settings, here in the description, but the publishing policy sets a limit as to how long these descriptions can be. So check the comments for a manual on how to use this indicator. And if you'd like to plug this kind of indicator into your scripts, just contact me for custom work.
~jdhadwin