Combo Backtest 123 Reversal & PFE (Polarized Fractal Efficiency) This is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 The Polarized Fractal Efficiency (PFE) indicator measures the efficiency 
 of price movements by drawing on concepts from fractal geometry and chaos 
 theory. The more linear and efficient the price movement, the shorter the 
 distance the prices must travel between two points and thus the more efficient 
 the price movement.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Reversal
Combo Backtest 123 Reversal & Perfomance indexThis is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 The Performance indicator or a more familiar term, KPI (key performance indicator), 
 is an industry term that measures the performance. Generally used by organizations, 
 they determine whether the company is successful or not, and the degree of success. 
 It is used on a business’ different levels, to quantify the progress or regress of a 
 department, of an employee or even of a certain program or activity. For a manager 
 it’s extremely important to determine which KPIs are relevant for his activity, and 
 what is important almost always depends on which department he wants to measure the 
 performance for.  So the indicators set for the financial team will be different than 
 the ones for the marketing department and so on.
 Similar to the KPIs companies use to measure their performance on a monthly, quarterly 
 and yearly basis, the stock market makes use of a performance indicator as well, although 
 on the market, the performance index is calculated on a daily basis. The stock market 
 performance indicates the direction of the stock market as a whole, or of a specific stock 
 and gives traders an overall impression over the future security prices, helping them decide 
 the best move. A change in the indicator gives information about future trends a stock could 
 adopt, information about a sector or even on the whole economy. The financial sector is the 
 most relevant department of the economy and the indicators provide information on its overall 
 health, so when a stock price moves upwards, the indicators are a signal of good news. On the 
 other hand, if the price of a particular stock decreases, that is because bad news about its 
 performance are out and they generate negative signals to the market, causing the price to go 
 downwards. One could state that the movement of the security prices and consequently, the movement 
 of the indicators are an overall evaluation of a country’s economic trend.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Anomaly Detection Indicator[Fournier-Eaton]Detect unusual activity with this script. 
This algorithm should detect significant events RELATIVE to the benchmark of your choice. The default is benchmark is QQQ. 
 
 upcoming earnings should be visible
 dividend announcements 
 news events relative to the stock
 possible reversals 
 etc. 
 
The granularity of the algorithm changes with selected time-frame. 
This is an early version. Please suggest changes. 
V0.1
Combo Backtest 123 Reversal & Percentage Volume Oscillator (PVO) This is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 The Percentage Volume Oscillator (PVO) is a momentum oscillator for volume. 
 PVO measures the difference between two volume-based moving averages as a 
 percentage of the larger moving average. As with MACD and the Percentage Price 
 Oscillator (PPO), it is shown with a signal line, a histogram and a centerline. 
 PVO is positive when the shorter volume EMA is above the longer volume EMA and 
 negative when the shorter volume EMA is below. This indicator can be used to define 
 the ups and downs for volume, which can then be use to confirm or refute other signals. 
 Typically, a breakout or support break is validated when PVO is rising or positive. 
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Cuban's Range Reversal OverlayBeen a minute since a public script!
This one looks at the range and recommends potential reversal depending on degree of overextension.
Originally intended for low timeframe short time horizon reversals but works well on higher timeframes as well.
Oscillator included in the image so you can see under the skirt and check what's happening.
Combo Backtest 123 Difference between price and MA This is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 Percent difference between price and MA
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
FieryTrend IndicatorI created this indicator because it can be quite difficult sometimes to find the direction of the market, which supports and resistances are important, where to place targets, etc. This indicator is excellent for traders which trade on reversals and breakouts from resistances and supports.
The indicator tries to make it clear which areas are of importance and which are not. To find the market structure, all you have to do is to connect the dots by drawing a line between them. 
By connecting the dots, it becomes clearer where important resistances and support areas are located. By making this information easier to digest you can place your entries, targets and stops easier and faster, becoming a better trader in the process. With connecting the dots, it might be the case that they won’t line up perfectly, which is fine. It’s all about the bigger picture. 
The best time frames for this indicator are M15, H1 and H4. You can fiddle around with the Length input to get different results; I’ve found that the base input works the best for the aforementioned time frames.
For more examples, see below:
Implied Volatility BandsThis script produces price bands around an EMA based on a manually inputted Implied Volatility.  The idea builds on my previous "Implied Move" script which helps visualize the distribution of prices that the market is 'pricing in' via options/implied volatility.  It's up to the user to determine the implied volatility level they use, I like using the free version of QuikStrike that you can access via the CME Group website and then update the script's input daily. Another way to use the script is to input the implied volatility based on a forecast that you produce independently. Say implied volatility on June 2021 Crude Oil is 30% and you think it's rich by 2%, you can input 28% into the script to tweak the bands for a declining vol regime.  
Combo Backtest 123 Percent change bar This is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
  This histogram displays price or % change from previous bar. 
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Combo Backtest 123 Overbought/Oversold This is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 Simple Overbought/Oversold indicator
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Inverse BandsThis was the result of quite some time spent examining how much information could be gleamed by studying the interactions between Keltner Channels, STARC Bands and Bollinger Bands. I was surprised by the results.
First of all, there are four fills that are black. Set the transparency of those to 0 and you'll see this indicator the way that it's meant to be seen. Those fills belong to unused sections of the Bollinger Bands. 
There are two clouds which represent STARC Bands and the Keltner Channel. There is some delay when they flip from bullish (green) to bearish (red), but they are indicative of the trend. The space between them is black and the narrower that space is, the greater volatility is. Because of this, we don't need the exterior Bollinger Bands.
The Bollinger Bands remain visible as the yellow interior clouds on the top cloud and the blue interior clouds on the bottom cloud. Often, the thicker the yellow or blue cloud is, the less severe a throwback from a given trend reversal will be. Often the thinner that yellow or blue cloud is, the more severe the trend reversal will be. If price is rising into a thin interior yellow cloud, the following dip will be substantial. If price action dips towards a thicker interior blue cloud, often the pump following that dump will be less enthusiastic. 
We preserve the Keltner Channel and STARC bands as our cloud because the way that they interact with the three basis lines yields a lot of information.
The yellow Bollinger basis line tells us about trend strength. The closer the BB basis line is to the top of the top cloud or the bottom of the bottom cloud, the stronger the trend is. When it enters the cloud very close to the bottom of the bottom cloud, you know you're looking at a strong pump, and vice versa when it's close to the top of the top cloud. 
The purple Keltner Channel basis line and orange STARC Band basis line can forecast short term trend changes one candlestick in advance by contacting any line in either cloud. The moment either basis line touches or crosses any boundary of the clouds, you know that the next candle will change directions. In an uptrend, a touch or cross means the next candle will have a lower high point. In a downtrend, a cross or touch means the next candle will have a higher high point. This is most useful in scalping. 
It'd be pretty easy to slap some crossover alerts on to this and useful considering that they come a candle in advance. Feel free to further explore and develop this. 
Bollinger Bands Trending Reverse StrategyWelcome to yet another script. This script was a lot easier since I was stuck for so long on the Donchian Channels one and learned so much from that one that I could use in this one.
This code should be a lot cleaner compared to the Donchian Channels, but we'll leave that up to the pro's.
This strategy has two entry signals, long = when price hits lower band, while above EMA, previous candle was bearish and current candle is bullish.
Short = when price hits upper band, while below EMA, previous candle was bullish and current candle is bearish.
Take profits are the opposite side's band(lower band for long signals, upper band for short signals). This means our take profit price will change per bar.
Our stop loss doesn't change, it's the difference between entry price and the take profit target divided by the input risk reward.
Combo Backtest 123 Negative Volume Index This is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 The theory behind the indexes is as follows: On days of increasing 
 volume, you can expect prices to increase, and on days of decreasing 
 volume, you can expect prices to decrease. This goes with the idea of 
 the market being in-gear and out-of-gear. Both PVI and NVI work in similar 
 fashions: Both are a running cumulative of values, which means you either 
 keep adding or subtracting price rate of change each day to the previous day`s 
 sum. In the case of PVI, if today`s volume is less than yesterday`s, don`t add 
 anything; if today`s volume is greater, then add today`s price rate of change. 
For NVI, add today`s price rate of change only if today`s volume is less than 
 yesterday`s.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Combo Backtest 123 Reversal & N Bars Up This is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 Evaluates for n number of consecutive higher closes. Returns a value 
 of 1 when the condition is true or 0 when false.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Combo Backtest 123 Reversal & N Bars Down This is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 Evaluates for n number of consecutive lower closes. Returns a value 
 of 1 when the condition is true or 0 when false.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
[blackcat] L1 Swing Reversal IndicatorLevel: 1
Background
Many asked me about swing reversal indicators. There are many but less of them can guarantee high win rate. Because market is complex, the reversals can be nested together, which means sub level reversals will be contained in higher level waves. This can be well explained by Elloit wave theory.
Function
Here it is a simple moving average based swing reversal indicator as an example for many others to improve it. Although it simple, it could be very powerful to dedicated trading pairs in specific time frame. One can adjust N1~N4 as SMA peiords from short to long to customized this indicator or even by trying different moving average types to enhance its accuracy.
Key Signal
N1~N4 --> SMA look back periods
OB --> Overbought Threshold
OS --> Oversold Threshold
Pros and Cons
Simpe but powerful. More feedbacks are appreciated.
Remarks
Easy to be customized or integrated to your trading system.
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.
Combo Backtest 123 Reversal & MovROC (KST indicator) This is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 This indicator really is the KST indicator presented by Martin Pring. 
 the KST indicator is a weighted summed rate of change oscillator that 
 is designed to identify meaningful turns. Various smoothed rate of change 
 indicators can be combined to form different measurements of cycles. 
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Combo Backtest 123 Reversal & Moving Average Envelopes This is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 Moving Average Envelopes are percentage-based envelopes set above and 
 below a moving average. The moving average, which forms the base for 
 this indicator, can be a simple or exponential moving average. Each 
 envelope is then set the same percentage above or below the moving average. 
 This creates parallel bands that follow price action. With a moving average 
 as the base, Moving Average Envelopes can be used as a trend following indicator. 
 However, this indicator is not limited to just trend following. The envelopes 
 can also be used to identify overbought and oversold levels when the trend is 
 relatively flat. 
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Combo Backtest 123 Reversal & MA Displaced EnvelopeThis is combo strategies for get a cumulative signal. 
 First strategy
 This System was created from the Book "How I Tripled My Money In The 
 Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
 The strategy buys at market, if close price is higher than the previous close 
 during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
 The strategy sells at market, if close price is lower than the previous close price 
 during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
 Second strategy
 Moving Average Displaced Envelope. These envelopes are calculated 
 by multiplying percentage factors with their displaced expotential 
 moving average (EMA) core.
 How To Trade Using:
 Adjust the envelopes percentage factors to control the quantity and 
 quality of the signals. If a previous high goes above the envelope 
 a sell signal is generated. Conversely, if the previous low goes below 
 the envelope a buy signal is given.
 WARNING:
 - For purpose educate only
 - This script to change bars colors.
Whole NumbersThis is a simple indicator for the whole numbers. 
It breaks down every pair for 10 pips. 
Its also simple and nice to use 
OBV Correlation [Fournier-Eaton]This is the On Balance Volume Correlation (And Price Correlation) Indicator. Directions of each has been encoded with color. 
This Indicator is one of a series of scripts which I hope will aid in volume analysis. 
 
 The primary component is the histogram plot which represents the correlation between the direction of obv of your current equity and your chosen reference equity.  
  I have included the direction of OBV for your currently plotted equity encoded as color. (Thus you know that if the plot is negative and blue, that the correlation is negative but the OBV for your current equity is increasing.)
 Furthermore, I included a supplementary price correlation line for the given equities. This line has had price direction encoded as color for quick reference. 
  Thus as a quick example: if you see a blue negative histogram and an accompanying red positive line you know that: 1. obv is increasing and anti-correlated with your reference equity and the price is decreasing and positively correlated with your reference equity.  A lot of information encoded in one plot. 
 
If you find this at all useful, I'd love to hear from you. 
Bradford Fournier-Eaton, PhD
Inside Bar and special Outside Bar insider bar is old and classic theory. but special outside bar is type of trap by operator in stock market 
use this only daily or weekly time frame 
special out side bar is type of reversal 






















