TradiKator 09 HH HL LH LL & Linear Regression
TradiKator 09 HH HL LH LL & Linear Regression indicates whether current price movement exceed the trend or not.
Here, we use Higher High,Higher low, Lower High, Lower Low to identify a possible change of trend.
Also we use 2 Linear Regression Channels (short term & long term) to identify a price trend.
I hope this indicator can help traders to estimate trend change in the essential trading behavior.
1)Higher High,Higher low, Lower High, Lower Low
Higher High and Higher Low indicates a Bull trend
Lower High and Lower Low indicates a Bear trend
Those high low pivot points is a verg good mark to judge if current trend keeps going on or not.
Setting :
Left pivot length
Right pivot length
The longer pivot length is , the less sensetive and more delay you signal will be, especially the right privot
2)Linear Regression Channels
Linear Regression Line – is a line drawn according to the least-squares statistical method which produces a best fit line
The resulting can be used to predict price trend from the same system.
Setting :
Count ---> the length of the Linear Regression, remember more data in interest = less accuracy and bigger sigma
The End bar of Linear Regression ---> If you don't want latest K bar in the Linear Regression interest (they are not in the same trend), then you can move the Linear Regression to earlier bar
This indicator is inspired by GDT who is a great coder.
Known issue:
Not yet.
Cerca negli script per "high low"
Multi-Function RSI(MTF, divergence, signal and alert)Japanese below / 日本語説明は下記
Overview
Multi-function RSI indicator with functions below.
1.MTF with display timeframe control
2.Auto divergence drawing incl. hidden divergence
3.Signal when RSI crosses over upper band/crosses under lower band
4.Color background when MTF RSI crosses over/under lower band
5.Alert when RSI crosses over upper band/crosses under lower bands
Please see the details below.
Functions:
1.MTF with display timeframe control
You can display daily, 4hour or 1 hour RSI or all of them as upper timeframe MTF RSI.
How is it different from other MTF indicators?
Problems with other MTF RSI indicators are;
-If you set higher timeframe RSI, it will also be shown on further higher timeframes.
i.e. If you set 4hour chart’s RSI on 1 hour or lower time frame charts, it will also appear on daily and weekly chart, which is not necessary.
To tackle these problems, this indicator has incorporated functions below.
-To show MTF RSI on timeframe lower than the upper timeframe you set as MTF timeframe.
For example, if you select daily timeframe for MTF RSI , the RSI will be shown only on 4 hour or lower timeframes(1H, 30M, 15M, 5M, 1M).
Left: 4hour chart, Middle: Daily chart, Right: Weekly chart
If you look at 4hour chart, daily chart’s RSI is shown(pale blue and orange) but weekly chart does not show daily chart’s RSI.
2.Auto divergence drawing incl. hidden divergence
Regular divergence line and hidden divergence line will be automatically drawn for current timeframe RSI as per the logic below.
Bearish : When two consecutive pivot highs go up but RSI values corresponding to each high go down.
Bullish: When two consecutive pivot lows go down but RSI values corresponding to each low go up.
Pivot highs(lows) are identified when those are preceded by n lower highs(lows) and proceeded by n lower highs(lows).
* n is parameterized.
See the diagram below.
Bearish : When two consecutive pivot highs go down but RSI values corresponding to each highs go up.
Bullish : When two consecutive pivot lows go up but RSI values corresponding to each low go down.
3.Signal when RSI crossing upper/lower bands
Signal will be shown when;
-RSI(current timeframe) crosses over upper band
-RSI(current timeframe) crosses under lower band
Example:
Purple triangle is signals.
4.Color background when MTF RSI crosses over/under lower band
Background color can be applied when MTF RSI crosses over upper band/under lower band.
Example:
Pale purple is daily RSI on 4 hour chart. Background color applied while daily RSI is outside upper/lower bands.
5.Alert when RSI crosses over upper band/under lower band
Alert can be set when;
-RSI crosses over upper band
-RSI crosses under lower band
How to use this indicator?
This indicator is paid indicator and invited-only indicator.
Please contact me via private chat or follow links in my signature so that I can grant the access right to the indicator.
Comment section is only for comments on the indicator or updates. Please refrain from contacting me using comments to follow TradingView house rules.
———————————————————————————————————————
多機能RSIインジケーターです。以下の機能が搭載されています。
1.マルチタイムフレーム機能(表示時間足制御機能付き)
2.ダイバージェンス自動描画機能(ヒドゥンダイバージェンス対応)
3.RSIがアッパーバンド、ロワーバンドとクロスした時にシグナル表示
4.上位足RSI(MTF RSI)がアッパーバンドより上にある時、ロワーバンドより下にある時に背景をハイライト
5.RSIがアッパーバンド、ロワーバンドとクロスした時にアラート設定
機能詳細は以下の通りです。
機能詳細
1.マルチタイムフレーム機能(表示時間足制御機能付き)
日足、4時間足、1時間足のいずれか、もしくは全てをRSIをマルチタイムフレームRSIとして表示することができます。(不要な場合は非表示可能)
他のマルチタイムフレームRSIとの違い
他のマルチタイムフレームRSIのインジケーターでは、以下の問題に直面します。
・上位足のRSIを表示すると、さらに上位足でもそのRSIが表示され見にくくなる。
例: 4時間足のRSIを下位足で表示可能な様に設定すると、日足や週足でも表示され、チャートが見にくくなる。
この問題に対して、このインジケーターでは、
・上位足のRSIを表示する時間軸を制御することで上位足で不必要な情報を表示させない。
という機能を加えることでこの問題を解決しています。
具体的には、マルチタイムフレーム用に選択した上位足のタイムフレームより小さいタイムフレームでのみ上位足のRSIが表示されるようになっています。
例えば、上位足として日足を選択した場合、日足のRSIは4時間足、1時間足、30分足、15分足、5分足、1分足にのみ表示されます。
<サンプルチャート>
左から4時間足、日足、週足です。
4時間足では日足のRSI(薄いパープルのライン)が表示されていますが、週足には表示されません。これはオシレーターが表示される時間軸を裏側のロジックで制御しているためです。
2.ダイバージェンス自動描画機能(ヒドゥンダイバージェンス対応)
以下のロジックに基づきダイバージェンスを自動描画します。(不要な場合は非表示可能)
<通常のダイバージェンス>
下降示唆:2つの連続する高値(*)が切り上げられているが、 それぞれの高値に対応するRSIの値は切り下げている場合
上昇示唆:2つの連続する安値(*)が切り下がっているが、 それぞれの安値に対応するRSIの値は切り上がっている場合
*高値(安値)は、左右n本(**)ずつのローソク足の高値(安値)より高い(低い)高値(安値)をピボットハイ・ローとして算出しています。
** nはユーザ設定値です。
<例: ダイバージェンス>
高値PH1はPH1のローソクの高値より左側にn個のより低い高値、右側にn個のより低い高値があった場合に高値として認識されます。
上記の例では高値がPH2>PH1と切り上がっていますが、対応するRSIの値はvalue2
下降継続示唆:2つの連続する高値(*)が切り下がっているが、 それぞれの高値に対応するRSIの値は切り上がっている場合
上昇継続示唆:2つの連続する安値(*)が切り上がっているが、 それぞれの安値に対応するRSIの値は切り下がっている場合
言うまでもないことですが、ダイバージェンスが出たから逆張り、などの安易な発想は避けるべきです。
環境認識の一つの要素として見るべき指標でしょう。
3.RSIがアッパーバンドを上抜いた時、ロワーバンドを下抜いた時にシグナル表示
アッパーバンド(初期値70)とロワーバンド(初期値30)の数値は変更可能です。
サンプルチャート:
4.上位足RSI(MTF RSI)がアッパーバンドより上にある時、ロワーバンドより下にある時に背景をハイライト
サンプルチャート:
日足のRSI(薄いパープルのライン)がアッパーラインより上にある時に背景がグレーがかっています。
このように上位足のRSIの状況を視覚的に認識したい時に役立つでしょう。
日足RSIラインは非表示にすることができますので、背景色だけ表示しておいて、背景に色が付き、かつダイバージェンスも出たら反転を警戒といった状況判断が可能です。
5.RSIがアッパーバンド、ロワーバンドとクロスした時にアラート設定
アラートを設定したいタイムフレームを開いた状態で、アラート設定の画面を開き以下の条件を選択することができます。
・RSIがアッパーバンドを上抜いた時
・RSIがロワーバンドを下抜いた時
インジケーターの使用について
当インジケーターは招待制インジケーター(有料)となっています。
使用を希望される方はプライベートチャットや下記リンクのDMでご連絡ください。
このページのコメント欄はインジケーターそのものに対するコメントやアップデートの記載のためのものとなっております。Tradingviewのハウスルールを守るためにもコメント欄からの連絡はご遠慮ください。
Multi-Function Stochastic(MTF, divergence, signal and alert)Japanese below / 日本語説明は下記
Overview
Multi-function Stochastic indicator with functions below.
1.MTF with display timeframe control
2.Auto divergence drawing incl. hidden divergence
3.Signal when % K crosses over %D incl. MTF %K and %D
4.Alert when % K crosses over %D
Please see the details below.
Functions:
1.MTF with display timeframe control
You can select one upper timeframe from monthly, weekly, daily, 4hour, 1hour, 30mins, 15mins, 5mins to display upper timeframe’s Stochastic as MTF Stochastic.
How is it different from other MTF indicators?
Problems with other MTF Stochastic indicators are;
-If you set higher timeframe Stochastic, it will also be shown on further higher time frames.
i.e. If you set 4hour chart’s Stochastic on 1 hour or lower time frame charts, it will also appear on daily and weekly chart, which is not necessary.
To tackle these problems, this indicator has incorporated functions below.
-To show MTF Stochastic on timeframe lower than the upper timeframe you set as MTF timeframe.
For example, if you select daily timeframe for MTF Stochastic , the Stochastic will be shown only on 4 hour or lower timeframes(1H, 30M, 15M, 5M, 1M).
Left: 4hour chart, Middle: Daily chart, Right: Weekly chart
If you look at 4hour chart, daily chart’s Stochastic is shown(pale blue and orange) but weekly chart does not show daily chart’s Stochastic.
2.Auto divergence drawing incl. hidden divergence
Divergence line and hidden divergence line will be automatically drawn for the current timeframe Stochastic as per the logic below.
Bearish : When two consecutive pivot highs go up but %K values corresponding to each high go down.
Bullish: When two consecutive pivot lows go down but %K values corresponding to each low go up.
Pivot highs(lows) are identified when those are preceded by n lower highs(lows) and proceeded by n lower highs(lows).
* n is parameterized.
See the diagram below.
Bearish : When two consecutive pivot highs go down but %K values corresponding to each highs go up.
Bullish : When two consecutive pivot lows go up but %K values corresponding to each low go down.
3.Signal when % K crossing %D
Signal will be shown when;
-%K crosses over %D below lower band
-%K crosses under %D above upper band
-%K(MTF) crosses over %D(MTF) below lower band
-%K(MTF) crosses under %D(MTF) above upper band
4.Alert when % K crossing %D
Alert can be set when;
-%K crosses over %D below lower band
-%K crosses under %D above upper band
How to use this indicator?
This indicator is paid indicator and invited-only indicator.
Please contact me via private chat or follow links in my signature so that I can grant the access right to the indicator.
Comment section is only for comments on the indicator or updates. Please refrain from contacting me using comments to follow TradingView house rules.
———————————————————————————————————————
多機能ストキャスティクスインジケーターです。以下の機能が搭載されています。
1.マルチタイムフレーム機能(表示時間足制御機能付き)
2.ダイバージェンス自動描画機能(ヒドゥンダイバージェンス対応)
3.%Kが%Dをクロスした時にシグナル表示(MTFの%Kと%Dでも同様)
4.%Kが%Dをクロスした時にアラート設定可能
機能詳細は以下の通りです。
機能詳細
1.マルチタイムフレーム機能(表示時間軸制御機能付き)
月足、週足、日足、4時間足、1時間足、30分足、15分足、5分足の中から一つを選択し、上位足のストキャスティクスとして表示することができます。(不要な場合は非表示可能)
他のマルチタイムフレームストキャスティクスとの違い
他のマルチタイムフレームストキャスティクスのインジケーターでは、以下の問題に直面します。
・上位足のストキャスティクスを表示すると、さらに上位足でもそのストキャスティクスが表示され見にくくなる。
例: 4時間足のストキャスティクスを下位足で表示可能な様に設定すると、日足や週足でも表示され、チャートが見にくくなる。
この問題に対して、このインジケーターでは、
・上位足のストキャスティクスを表示する時間軸を制御することで上位足で不必要な情報を表示させない。
という機能を加えることでこの問題を解決しています。
具体的には、マルチタイムフレーム用に選択した上位足のタイムフレームより小さいタイムフレームでのみ上位足のストキャスティクスが表示されるようになっています。
例えば、上位足として日足を選択した場合、日足のストキャスティクスは4時間足、1時間足、30分足、15分足、5分足、1分足にのみ表示されます。
<サンプルチャート>
左から4時間足、日足、週足です。
4時間足では日足のストキャスティクスが表示されていますが、週足には表示されません。
2.ダイバージェンス自動描画機能(ヒドゥンダイバージェンス対応)
以下のロジックに基づきダイバージェンスを自動描画します。(不要な場合は非表示可能)
<通常のダイバージェンス>
下降示唆: 2つの連続する高値(*)が切り上げられているが、 それぞれの高値に対応するストキャスティクスの値は切り下げている場合
上昇示唆: 2つの連続する安値(*)が切り下がっているが、 それぞれの安値に対応するストキャスティクスの値は切り上がっている場合
*高値(安値)は、左右n本(**)ずつのローソク足の高値(安値)より高い(低い)高値(安値)をピボットハイ・ローとして算出しています。
** nはユーザ設定値です。
<例: ダイバージェンス>
高値SH1はSH1のローソクの高値より左側にn個のより低い高値、右側にn個のより低い高値があった場合に高値として認識されます。
上記の例では高値がSH1>SH2と切り上がっていますが、対応する%Kの値はvalue2>value1と切り下がっているためダイバージェンスと認識されダイバージェンスラインが自動描画されます。
<ヒドゥンダイバージェンス>
下降継続示唆: 2つの連続する高値(*)が切り下がっているが、 それぞれの高値に対応するストキャスティクスの値は切り上がっている場合
上昇継続示唆: 2つの連続する安値(*)が切り上がっているが、 それぞれの安値に対応するストキャスティクスの値は切り下がっている場合
言うまでもないことですが、ダイバージェンスが出たから逆張り、などの安易な発想は避けるべきです。
環境認識の一つの要素として見るべき指標でしょう。
3.%Kが%Dとクロスした時にシグナル表示(MTFの%Kと%Dでも同様)
以下の条件を満たした時にシグナルを表示します。
-ロワーバンドより下で、%Kが%Dを上抜けた時
-アッパーバンドより上で、%Kが%Dを下抜けた時
-ロワーバンドより下で、%K(MTF)が%D(MTF)を上抜けた時
-アッパーバンドより上で、%K(MTF)が%D(MTF)を下抜けた時
4.%Kが%Dとクロスした時にアラート設定
以下の条件でアラート設定が可能です。
-ロワーバンドより下で、%Kが%Dを上抜けた時
-アッパーバンドより上で、%Kが%Dを下抜けた時
インジケーターの使用について
当インジケーターは招待制インジケーター(有料)となっています。
使用を希望される方はプライベートチャットや下記リンクのDMでご連絡ください。
このページのコメント欄はインジケーターそのものに対するコメントやアップデートの記載のためのものとなっております。Tradingviewのハウスルールを守るためにもコメント欄からの連絡はご遠慮ください。
Volume EffectivenessI have been trying to work with volume as an indicator for quite some time, as it holds qualities as a 'leading indicator'.
However, please note that any indicator which to some extent predict a future trend has its issues as it can be misleading.
But, in some datasets in a selected timeframe the leading properties of volume as an indicator are useful.
So this script is not too complicated. It shows a numeric which resembles the 'effectiveness of volume' in moving price.
For example, if a small volume creates a large price change - the Volume Effectiveness indicator will be high and show a spike
Whereas, if a large volume creates a small price change - the Volume Effectiveness indicator will be low
I used 3 metrics to represent Volume Effectiveness (these are different colors on the bar chart)
One price difference is the absolute(high - low) for each bar
Another is the absolute(open - close)
The 'open-close' is smaller than the 'high-low', so note this when viewing the bar charts
The final metric depends on if the open is greater than the close or vice-versa
But it considers the 'absolute(high-low)' and the difference between the open and the high (or low) and the close and the low (or high)
So the final metric is the largest of the 3 metrics and is generally the most useful of the 3 however, the other 2 are displayed to provide a better understanding of what 'Volume Effectiveness' displays
Note, I use absolute values so they are only positive, i.e. there are no negative values to represent a price drop within a bar
So, why is this indicator useful - its because volume is a leading indicator
A decreasing volume tends to suggest a price change is coming
Also, when the volume within a bar is very small, its Volume Effectiveness tends to go very high
That means a small trade volume creates a relatively large change in price
This is ideal conditions for a big pump (or big dump - although this indicator seems to work better before pumps)
A large spike in the Volume Effectiveness is commonly/sometimes preceding a big pump
So watch this indicator - and if there is a big spike - evaluate other market conditions to consider getting into position
Large spikes in the Volume Effectiveness can precede big price changes and therefore can provide a leading indication before a pump or dump
Timeframe is important - I found on the daily timeframe this indicator did not provide sufficient lead to be useful. Similarly on the <15min timeframe the spikes were not highly correlated with pumps/dumps
However, in medium timeframes (15mins, 1hour, 4hours) this indicator can be useful for predicting sizeable price changes.
The CryptoPlayground FrameworkThe CryptoPlayground Framework & Built-in Strategy Analysis
CryptoPlayground’s Framework provides the community an “executive assistant” that teaches traders how to trade The CryptoPlayground Framework ‘LIVE’. Producing a structured approach with a built in Strategy where traders to learn the method as the trade pans out.
Cryptoplayground’s Framework pays close attentions to fundamental as well as technical analysis . In this publication we will be breaking down the simplicity of what makes the framework “tick”.
Traders take notice how the price moves between the double blue sets of lines marked #cpf, these are some of the most important aspects of the CryptoPlayground Framework. Let’s jump in and explain.. The built-in Fibonacci Retraction add+ tool is the method we use to frame up our technical analysis . Helping CryptoPlayground traders define support and resistance levels of extreme relevance and more importantly defining #cpf Optimal Trade Entries. Traders trading from these blue lines produce high probability low risk trade ideas and opportunities.
How it’s done: Drawn using (plot) the high and low of a particular time-frame (depicted by your chart settings, or set using custom time settings in the indicator settings itself). These high and low points have many names and can be defined in many ways. as basic as it comes these are knows as pivot points . Using these points, Cryptoplayground Framework draws levels respecting Fibonacci ratios. Reminder that CryptoPlayground is a framework to structure trades, these levels are supposed to change. Using a time series to do so allows traders to define their style of trading, whether intra, daily or swing.
When the CryptoPlayground Framework is “about to change” we call this a liquidity event and most commonly in crypto it’s some sort of purge in the direction that traders are willing to buy up to or sell to.
🤖 Technicals in the code:
// Fibonacci Retraction
Length(x)
Source( close)
Out = fib retract
High(close, x)
Low(close, x)
plot(…
Plotshape (fib = high - low within time series multiples by ratio)
Alert condition(
crossunder(close, x)…. ; candle close below x indicating our liquidity event)
Plot ( purge
Plotshape (purge
CryptoPlayground Framework traders have the added improvement of RSI add+ , as a further confirmation, defining whether bulls are in control, bears are in control or when defining overbought or oversold thresholds. Represented by the larger blue and grey dotted channel, traders are able to use this visual tool and add it to their analysis.
🤖 Technicals in the code:
//RSI+
Based on in-build RSI , where RSI is (rsiSource, rsilength)
RSI = close
Legth = x
Condition = x
Condition = x
plot ( plot as size 2 dotted lines on the chart )
CryptoPlaygound “Helper Tool” is an Exponential Moving Average function to determine bullish and bearish conditions, we are able to remain emotionless through the trade. As well as, when to book profit and the sign of a possible reversal. Backtested for optimal crypto conditions, the degree of weighted decrease provides observations faster for a volatile market. CryptoFramework makes these calculations available on all time frames or customisable for the style of trader. CryptoPlayground used a time settings (constant) that makes traders pay themselves first.
🤖 Technicals in the code:
// bullish . bearish
Length = ( x )
Source( close )
Out = ( ema )
High ( close, x )
Low ( close, x )
Last = ( high , x )
Last = ( low , x )
Bearish = cross ( close , x )
Bullish = cross ( close , x )
Plotshape ( bullish , style
Plotshape ( bearish , style
// Long.short exit
Ema = x
SMA = x
EMA ( close, x )
SMA ( close , x )
RSI (close , x )
Using the CryptoPlayground Framework, the description below will describe, How to trade a “Fake Out - Purge Event“, also known as “Purge and Revert”
Set alert: Purge Event (This way you will get notified, this type of trade can be ruined with emotions and therefor it is best traded with structure)
Purge Events indicate one of 3 things, a breakout/liquidity run or raid, a reach for liquidity or a possible fake-out. Purge Events are represented by the label “Purge”.
In this example, CryptoPlayground Framework has structured a trade example during a “Fakeout - Purge Event” to the sell side.
Further visual description provided.
On chart elaboration and description on how to trade
1. Set Alert Condition - Liquidity Purge Alert
(using TradingView alert settings)
2. Set entry at #cpf Entry 1 :
This is a level 2 entry.
Scaling down chart time-frame will create a further "Optimal Trade Entry
".
3. Pay yourself, book profit, move your stop loss up or to break even.
The trade is now risk free and you’ve made a successful trade.
The rest is just added bonus.
4. Opportunity to consider re-enter, add partials previously taken signified by bullish Label and Rejection of Fibonacci ratios.
5. Trade is complete, you paid yourself, lowered risk, added more into a trade and entered hopefully using a limit order :)
Blue horizontal lines marked #cpf are your long and short optimal trade entry location, where trading from these regions carry less risk. These blue lines are what the Cryptoplayground Framework refers to as Optimal Trade Entries.
In the opposition's corner we have a mirrored x2 blue horizontal lines marked #cpf these are your targets. Traders are made aware of a "liquidity Event" at these levels when bulls or bears are in control.
White "time to book profit" labels are there to remind traders to pay themselves first. Having Entered from #cpf a CryptoPlayground Trader would at this point take profit and move stop loss into profit or break even. Using this method further reduces downside and removes the risk from your original entry position. Leaving the CryptoPlayground Framework Trader with a "Risk Free Trade".
White "exit trade" indicates extreme limits of oversold and overbought conditions where it is likely that a reversal will take place as buyers or sellers increase in the respected direction.
Grey horizontal dotted lines indicate levels at which price action is likely to respect. In that regard, price action will make moves from these levels and to these levels.
If you have any questions please reach out, the script is invite-only.
If you wish to have access please reach out.
Hope you enjoy, please comment or message! 🙏
HhLl-OscilatorSimple oscillator which checks how many highs and how many lows the price is making. Parameters are as explained below:
lookback - Checks how many highs and lows it is making in these many bars. Sum of all highs and lows are taken for plotting.
periods - Initial period to check high and lows
multiples - Number of multiples on initial period for which highs and lows are checked
colorCandles - CandleColor based on the oscillator
If periods is 20 and multiples is 5 and loopback is 10
Indicator checks for last 10 bars how many highs/lows are made for 20, 40, 60, 80 and 100 periods. Sum of all highs and lows are plotted on the oscillator overlay
Fractal Trend Trading System [DW]This is an advanced utility that uses fractal dimension and trend information to generate useful insights about price activity and potential trade signals.
In this script, my Advanced FDI algorithm is used to estimate the fractal dimension of the dataset over a user defined period.
Fractal dimension, unlike spatial or topological dimension, measures how complexity or detail in an "object" changes as its unit of measurement changes, rather than the number of axes it occupies.
Many forms of time series data (seismic data, ECG data, financial data, etc.) have been theoretically shown to have limited fractal properties.
Consequently, we can estimate the fractal dimension from this data to get an approximate measure of how rough or convoluted the data stream is.
Financial data's fractal dimension is limited to between 1 and 2, so it can also be used to roughly approximate the Hurst Exponent by the relationship H = 2 - D.
When D=1.5, data statistically behaves like a random walk. D above 1.5 can be considered more rough or "mean reverting" due to the increase in complexity of the series.
D below 1.5 can be considered more prone to trending due to the decrease in complexity of the series.
In this script, you are given the option to apply my Band Shelf EQ algorithm to the dataset before estimating dimension.
This enables you to transform your data and observe how its newly measured complexity changes the outputs.
Whether you want to give emphasis to some frequencies, isolate specific bands, or completely alter the shape of your waveform, EQ filtration makes for an interesting experience.
The default EQ preset in this script removes the low shelf, then attenuates low end and high end oscillations.
The dominant cyclical components (bands 3 - 5 on default settings) are passed at 100%, keeping emphasis on 8 to 64 sample per cycle oscillations.
The estimated dimension is then used to calculate the High Dimension Zone and the Error Bands.
Both of these components are great for analyzing trends and for estimating support and resistance values.
The High Dimension Zone is composed of a high line, low line, and midline that update their values when D is at or above the user defined zone activation threshold.
The zone is then averaged over a user defined amount of updates and zone width is multiplied by a user defined value.
The Error Bands are composed of a high, low, and middle band that are calculated using an error adjusted adaptive filter algorithm that utilizes dimension as the smoothing constant modulator.
The basis filter for the error bands has two calculation types built in:
-> MA - Calculates the filters as adaptive moving averages modulated by D.
-> WAP - Calculates the filters as adaptive weighted average prices modulated by D.
The WAP starting point can be based on the High Dimension Zone being moved or a user defined interval.
You can also define the WAP's minimum and maximum periods for additional control of the initial and decayed sensitivity states.
The alpha (smoothing constant) modulator can be fine tuned using the designated dimension thresholds.
When D is at or below the low dimension threshold, the filter is most responsive, and vice-versa for the high dimension threshold.
Alpha is then multiplied by a user defined amount for additional control of sensitivity.
Band width is then multiplied by a user defined value.
A Hull transformation can be optionally performed on the zone averaging and band filter algorithms as well, which will alter the frequency and phase responses at the cost of some overshoot.
This transformation is the same as a typical Hull equation, but with custom filters being used instead of WMA.
The calculated outputs are then used to gauge the trend for signal and color scheme calculations.
First, a dominant trend indication is selected from its designated dropdown tab.
The available built in indications to choose from are:
-> Band Trend (Outer) - Detects band breakouts and saves their direction to gauge trend.
-> Band Trend (Median) - Uses disparity between source and the band median to gauge trend.
-> Zone Trend (Expansion) - Detects when the high fractal zone expands and saves its direction to gauge trend.
-> Zone Trend (Outer Levels) - Detects zone breakouts and saves their direction to gauge trend.
-> Zone Trend (Median) - Uses disparity between source and the zone median to gauge trend.
Then the trend output is optionally filtered before triggering signals.
There are multiple trend filtration options built into this script that can be used individually or in unison:
-> Filter Trend With High Fractal Zone - Filters the trend using the specified zone level or combination of levels with either disparity or crossover conditions.
There is a set of options for bullish and bearish trends.
-> Filter Trend With Error Bands - Filters the trend using the specified band level or combination of levels with either disparity or crossover conditions.
There is a set of options for bullish and bearish trends.
-> Filter Trend With Band - Zone Disparity Condition - Filters the trend using the specified band level, zone level, and disparity direction.
There is a set of options for bullish and bearish trends.
-> Filter By Zone That Moves With The Trend - Filters the specified trend by detecting when the high fractal zone’s direction correlates.
-> Filter By Bands That Move With The Trend - Filters the specified trend by detecting when the error bands’ direction correlates.
-> Filter Using Wave Confirmation - Filters the specified trend by detecting when source is in a correlating wave with user defined length.
You can also choose separate lengths for bullish and bearish trends.
-> Filter By Bars With Decreasing Dimension - Filters the specified trend by detecting when fractal dimension is decreasing, suggesting source is approaching more linear movement.
The filtered trend output is then used to generate entry and exit signals.
There are multiple options included to fine tune how these signals behave.
For entries, you have the following options built in:
-> Limit Entry Dimension - Limits the range of dimensional values that are acceptable for entry with user defined thresholds.
This can be incredibly useful for filtering out entries taken when price is moving in a more complex pattern,
or when price is approaching a peak and you’re a little late to the party.
-> Enable Position Increase Signals - Enables more entry signals to fire up to a user defined number of times when a position is active.
This is helpful for those who incrementally increase their positions, or for those who want to see additional signals as reference.
-> Limit Number Of Consecutive Trades - Limits the number of consecutive trades that can be opened in a single direction to a user defined maximum.
This is especially useful for markets that only trend for brief durations.
By limiting the amount of trades you take in one direction, you have more control over your market exposure.
There is a set of these options for both bullish and bearish entries.
For exits, you have the following options built in:
-> Include Exit Signals From High Fractal Zone - Enables exit signals generated from either crossover or disparity conditions between price and a specified zone level.
-> Include Exit Signals From Error Bands - Enables exit signals generated from either crossover or disparity conditions between price and a specified zone level.
-> Include Inactive Trend Output For Exits - Triggers exit signals when the filtered trend output is an inactive value.
-> Dimension Target Exit Method - Triggers exit signals based on fractal dimension hitting a user defined threshold.
You can either choose for the exit to trigger instantly, or after dimension reverts from the target by a user specified amount.
-> Exit At Maximum Entry Dimension - Triggers exit signals when dimension exceeds the maximum entry limit.
-> Number Of Signals Required For 100% Exit - Controls the number of exit signals required to close the position.
You can also choose whether or not to include partial exits.
Enabling them will fire a partial signal when an exit occurs, but the position is not 100% closed.
Of course, there is a set of these options for bullish and bearish exits.
In my opinion, no system is complete without some sort of risk management protocol in place.
So in this script, bullish and bearish trades come equipped with optional protective SL and TP levels with signals.
The levels can be fixed or trailing, and are calculated with a user defined scale.
The available scales for SL and TP distances are ticks, pips, points, % of price, ATR, band range, zone range, or absolute numerical value.
Now what if you have some awesome signals of your own that you’d like to use in conjunction with this script?
Well good news. You can!
In addition to all of the customizable features built into the script, you can integrate your own signals into the system using the external data inputs and linking your script.
This adds a whole new layer of customization to the system.
With external signals, you can use your own custom dominant trend indication, filter the dominant trend, and trigger exits and protective stops using custom signals.
The signal input is an integer format. 1=Bull Signal, -1=Bear Signal, 2=Bull Exit, -2=Bear Exit, 3=Bull SL Hit, -3=Bear SL Hit, 4=Bull TP Hit, -4=Bear TP Hit.
You can also use the external input as a custom source value for either dimension or global sources to further tailor the system to your liking.
The color scheme in this script utilizes two custom gradients that can be chosen for bar and background colors:
-> Trend (Dominant or Filtered) - A polarized gradient that shows green scaled values for bullish trend and red scaled values for bearish trend.
The colors are brighter and more vibrant as perceived trend strength increases.
-> Dimension - A thermal gradient that shows cooler colors when dimension is higher, and hotter colors when dimension is lower.
Both color schemes are dependent on the designated dimension thresholds.
The script comes equipped with alerts for entries, additional entries, exits, partial exits, and protective stops so you can automate more and stare at your charts less.
And lastly, the script comes equipped with additional external outputs to further your analysis:
-> Entry And Exit Signals - Outputs in the same format as the external signal input with these additions: 5=Bull Increase, -5=Bear Increase, 6=Bull Reduce, -6=Bear Reduce.
You can use these to send to other scripts, including strategy types so you can backtest your performance on TV’s engine.
-> Dominant Trend - Outputs 1 for bullish and -1 for bearish. Can be used to send trend signals to another script.
I designed this tool with individuality in mind.
Every trader has a different situation. We trade on different schedules, markets, perspectives, etc.
Analytical systems of basically any type are very seldom (if ever) “one size fits all” and usually require a fair amount of modification to achieve desirable results.
That’s why this system is so freely customizable.
Your system should be flexible enough to be tailored to your analytical style, not the other way around.
When a system is limited in what you can control, it limits your experience, analytical potential, and possibly even profitability.
This is not your typical pre-set system. If you're looking for just another "buy, sell" script that requires minimal thought, look elsewhere.
If you’re ready to dive into a powerful technical system that allows you to tailor the experience to your style, welcome!
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a premium script, and access is granted on an invite-only basis.
To gain access, get a copy of the system overview, or for additional inquiries, send me a direct message.
I look forward to hearing from you!
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
General Disclaimer:
Trading stocks, futures, Forex, options, ETFs, cryptocurrencies or any other financial instrument has large potential rewards, but also large potential risk.
You must be aware of the risks and be willing to accept them in order to invest in stocks, futures, Forex, options, ETFs or cryptocurrencies.
Don’t trade with money you can’t afford to lose.
This is neither a solicitation nor an offer to Buy/Sell stocks, futures, Forex, options, ETFs, cryptocurrencies or any other financial instrument.
No representation is being made that any account will or is likely to achieve profits or losses of any kind.
The past performance of any trading system or methodology is not necessarily indicative of future results.
Expanded Floor PivotsHello Everyone,
The Expanded Floor Pivots is introduced in the book "Secrets of a Pivot Boss: Revealing Proven Methods for Profiting in the Market " by Franklin Ochoa. He added four new levels: S4, R4, BC and TC. There are many great ideas in the book, such using these levels, following trend, time price opportunity and much more. (Thanks to @tonyjab for pushing me to read this book)
The definition/formula of the levels defined in the book:
r1 = 2 * pivot - Low
r2 = pivot + (High - Low)
r3 = r1 + (High - Low)
r4 = r3 + (r2 - r1)
tc = (pivot - bc) + pivot
pivot = (High + Low + Close) / 3
bc = (High + Low) / 2
s1 = 2 * pivot - High
s2 = pivot - (High - Low)
s3 = s1 - (High - Low)
s4 = s3 - (s1 - s2)
The area between TC and BC is used as Pivot Channel, (blue area in the chart). you can see how it helps on identifying the trend.
Options:
By default the script decides Higher Time Frame but if you want you can set HTF as you wish.
You can choose line style as: Solid, Circles or Cross
and also you have option to show only last period or all historical levels.
Enjoy!
™TradeChartist Intensity™TradeChartist Intensity is a visual indicator that comes with Intensity color candles and Auto-fibs feature that helps any trader with Entry/Exit and levels confirmation based on where the price is, in relation to the Orange Price Equilibrium line and the 5 zones of Bull/Bear limits that fade into the top or bottom outer space.
™TradeChartist Intensity itself doesn't plot BUY or SELL signals, but when used with ™TradeChartist Rubicon gives a better picture for trade confirmations. It can also be used as a standalone indicator and works equally effective with other traditional and non-traditional indicators.
The indicator comes with simple settings with useful features outlined below.
Intensity Color Candles
Intensity Color Candles when activated from settings paints the candles/bars with colors specific to the Bull/Bear limits or the outer space and is easy to identify the signal strength over time.
Uptrend - The bars/candles move away from the Orange Price Equilibrium line towards the upper Bull limits with bar color fading slowly leading to outer space where the bar color turns neon green.
Downtrend - The bars/candles move away from the Orange Price Equilibrium line towards the lower Bear limits with bar color fading slowly leading to outer space where the bar color turns neon red.
When the price candle wick or body touches the Orange Price Equilibrium line, distinct torchlight circle appears to signal the trader of a potential change in price direction which can be used as a signal confirmation in conjunction with another indicator before taking a trade position.
Show Auto Fib Levels
Auto Fib Levels plot automatic Fib levels based on significant Highs and Lows based on Intensity strategy which mostly are reference prices of recent highest high above Orange Equilibrium price line and recent lowest low below the Orange Equilibrium price line.
15m XBT chart with 'Show Auto Fib Levels' checked and 'Show Fibs from current High/Low' unchecked under indicator settings
These Auto Fib Levels change when the price movement/trend changes direction and will be based on trending price direction.
Show Fibs from current High/Low
When this option is chosen from indicator settings, the auto fib levels are drawn from the highest high of the trending price direction to lowest low of last trend for uptrend or vice-versa for downtrend.
15m XBT chart as above with 'Show Fibs from current High/Low' unchecked under indicator settings
Show Profit Candles
Activating this option from indicator settings will automatically plot $ labels above candle highs that hit important resistance levels during uptrend and candle lows that hit important support levels during downtrend. This will help traders take out profits during trades based on their personal profit goals and realistic trade targets based on momentum/RSI/volatility etc.
Example chart of XAUUSD 1hr Gold chart showing both Long and Short trade Profit candles
Give a thumbs up or leave a comment if you like the script.
B3 3-Stox - Scalping OscillatorThis is an indicator that combines what I see some scalpers use on youtube videos and webinars.
3 Stox = Three Stochastic Readings
Fast Stochastic of Highs
Fast Stochastic of Lows
Slow Stochastic of Bar Average
Bar Color Code
Bar Color Coded
Light Green = Long with trend
Dark Green = Long counter trend
Light Red = Short with trend
Dark Red = Short counter trend
Fast Line Color Code
Green = Lows leading highs up (Organized Rise)
Olive = Highs leading lows up (Rapid Rise)
Red = Highs leading lows down (Organized Fall)
Fuchsia = Lows leading lows down (Rapid Fall)
Trades to be looked at:
Trading in the direction of the fast lines, when they are similar to and near one another, in the same direction as the Slow stochastic line's color or slope
Trading Long Fastline green color when all 3 lines are oversold
Trading Short Fastline red color when all 3 lines are overbought
AVOID Trading when fast lines are spread out and a large cloud appears between them (Chop Filter)
Look for solid up & down & up & etc. oscillation or you can use the slow line to find trends to trade
Green and red fast lines are organized moves, the olive and purple lines are faster moves and harder to lock in sometimes
Things to note:
Pairs nicely with a level printing study like B3 Level Break (applied on above chart)
There are 2 color schemes for the Fast High and Low Stochastic lines, and 2 color schemes for the bars
In this script the bar average is defined as (open+high+low+close+close ) / 5, keep the slow line at a large length input so that you can get a macro trend reading without zooming out the chart
The Extended Stochastics from one of my previous scripts is defaulted as the style used, however, you may turn that feature off and use the classic Stochastics
More details: drive.google.com
Enjoy!
~ B3 d^.^b
Autonomous LSTM [Noldo] Structure
Feature Layer 1 : Formulation :
The Autonomous LSTM adaptive period equation is a multivariate equation created by averaging a table based on market weights and optimizing it for each time period, by specially Artificial Neural Networks (ANN) training and taking note of the instruments chosen from Foreign exchange instruments, Stock markets , Futures and Commodities , Interest Rates and Yields all over the Global Markets.
Market weights and liquidities were taken into consideration and included in the calculations.
Feature Layer 2: Forecast Algorithm :
When we apply only the first item, we only get the buy and sell signals in reverse.
In other words, since we measure the expectation, the positive signal informs the bear market and the negative scenario informs the bull market.
If we only act according to the expectations market, our system will be very sensitive.
When we associate this with real prices, both our accuracy increases and the reverse market returns to the normal market.
In other words, as in the indicators with standard average, the upward crosses are buy and the downward crosses are sell signal.
Examples:
a -) The normal deep learning script (ANN), which is only created according to expectations:
Unlike standard market, it gives reverse signals.
Original script :
b-) Script with Forecast Algorithm but it only uses valid and standard periods for certain instruments :
Original script :
Feature Layer 3 : Composite of Two Layers : Adaptive Period (Length) Algorithm
This layer is the most important layer.
Outputs the period.
It adjusts itself to market conditions and provides a more agile trading environment under all circumstances.
Display of smart period function and standard period :
Where the market is stagnant, the period increases automatically and reduces unnecessary trade, while in trendy markets the period decreases automatically and allows to see positions first.
The degree of stagnation of the instrument concerned is not calculated solely by volatility.
We may perceive this in relation to several factors, but yes volatility is one of these factors.
When we put the script system under the MACD (Moving Average Convergence Divergence) roof, I did the tests.
Where both averages were positive, they could report accurate harsh trend news, or vice versa.
But I decided to give it up and put it on the Stochastic Money Flow Index .
First of all , Stochastic Money Flow Index function takes the volume into account.
The reason for this is a very important factor, which is naturally contained in the structure of High - Low conditions related codes.
And by using this factor, it could be superfast adaptive in both stagnant and trendy markets.
Feature Layer 4 : High - Low Selection Algorithm
The High-Low Selection Algorithm does not depend on a specific period but scans all periods backwards.(Lookback Function - Lkb )
Outputs the lowest or highest values in the specified new period.
This algorithm was written by me with the concern that if everyone trades according to the same threshold values, it will cause problems and choosing between values of the whole period length will slow down the signals.
This algorithm consists of two functions.
a - Lkb (Lookback Function) :
The lookback function scans back all periods from 0 to Smart Period bars at the same time.
In order to show the effect of the function, it was done between 0 and 84 bars.
However, the scan period of the function is normally at the same time: 0 to adaptive period time.
If the adaptive period includes a fractional day, it can also scan it.
There is no need to be an integer.
All functions are written to make mutable variables appropriate.
And what this function will scan depends on the second feature.
The special selection algorithm is in this function.And the output is given in this function.
b-) High - Low Selection Algorithm
Outputs the lowest or highest values in the specified new period.
This function allows you to select the most advantageous low or high values, even though the adaptive period remains the same.
And the signals are even more accurate.
This is a comparison of the High-Low selection algorithm and the Function: Stochastic Money Flow Index in the standard period.
For the codes of the Stochastic Money Flow Index function:
Speed may not be clear here.
So let's take a look at on chart.
So I would like to show a comparison values of the standard and special selection algorithms on Standard Highest - Lowest Function (All effort goes to RicardoSantos)
Note: This function is the standard function and freed from integer loads.
Blue = Function Highest - Lowest (length = 10 )
Yellow = Smart High-Low Selection Algorithm (length = 10 )
You can better observe the different results in the same period on the chart.
***
4 layers are interdependent.
And when the inter-layer operations are completed, output is given.
*** - Usage of Autonomous LSTM
Plot Rules
Blue Zones = Crossover condition where the average of long and short lines is less than 50.
Orange Zones = Crossunder condition where long and short lines averages more than 50.
Green Zones = Crossover condition where the average of long and short lines is greater than 50.
Red Zones = Crossunder condition where long and short lines averages less than 50.
*** Autonomous LSTM Settings :
It is just the barcolor to be colored according to the crossover and crossunder conditions or not (I / 0) option.
*** Autonomous LSTM Alerts :
As an alert, it only reports crossover and crossunder status as "Long Signal" and "Short Signal" as a warning after the first bar closure.
*** CONCLUSION :
Autonomous LSTM Designed to be used in any time frame.
Does not repaint in any time frame.
Script is independent of constant coefficients.No period adjustment is necessary.
Each layer transfers the information in its own layer to the next layer and the results are reflected in the Stochastic Money Flow Index function built on the resultant.
Regards.
Volume Profile Free Ultra SLI (100 Levels Value Area VWAP) - RRBVolume Profile Free Ultra SLI by RagingRocketBull 2019
Version 1.0
This indicator calculates Volume Profile for a given range and shows it as a histogram consisting of 100 horizontal bars.
This is basically the MAX SLI version with +50 more Pinescript v4 line objects added as levels.
It can also show Point of Control (POC), Developing POC, Value Area/VWAP StdDev High/Low as dynamically moving levels.
Free accounts can't access Standard TradingView Volume Profile, hence this indicator.
There are several versions: Free Pro, Free MAX SLI, Free Ultra SLI, Free History. This is the Free Ultra SLI version. The Differences are listed below:
- Free Pro: 25 levels, +Developing POC, Value Area/VWAP High/Low Levels, Above/Below Area Dimming
- Free MAX SLI: 50 levels, 2x SLI modes for Buy/Sell or even higher res 150 levels
- Free Ultra SLI: 100 levels, packed to the limit, 2x SLI modes for Buy/Sell or even higher res 300 levels
- Free History: auto highest/lowest, historic poc/va levels for each session
Features:
- High-Res Volume Profile with up to 100 levels (line implementation)
- 2x SLI modes for even higher res: 300 levels with 3x vertical SLI, 100 buy/sell levels with 2x horiz SLI
- Calculate Volume Profile on full history
- POC, Developing POC Levels
- Buy/Sell/Total volume modes
- Side Cover
- Value Area, VAH/VAL dynamic levels
- VWAP High/Low dynamic levels with Source, Length, StdDev as params
- Show/Hide all levels
- Dim Non Value Area Zones
- Custom Range with Highlighting
- 3 Anchor points for Volume Profile
- Flip Levels Horizontally
- Adjustable width, offset and spacing of levels
- Custom Color for POC/VA/VWAP levels, Transparency for buy/sell levels
WARNING:
- Compilation Time: 1 min 20 sec
Usage:
- specify max_level/min_level/spacing (required)
- select range (start_bar, range length), confirm with range highlighting
- select volume type: Buy/Sell/Total
- select mode Value Area/VWAP to show corresponding levels
- flip/select anchor point to position the buy/sell levels
- use Horiz Buy/Sell SLI mode with 100 or Vertical SLI with 300 levels if needed
- use POC/Developing POC/VA/VWAP High/Low as S/R levels. Usually daily values from 1-3 days back are used as levels for the current day.
SLI:
use SLI modes to extend the functionality of the indicator:
- Horiz Buy/Sell 2x SLI lets you view 100 Buy/Sell Levels at the same time
- Vertical Max_Vol 3x SLI lets you increase the resolution to 300 levels
- you need at least 2 instances of the indicator attached to the same chart for SLI to work
1) Enable Horiz SLI:
- attach 2 indicator instances to the chart
- make sure all instances have the same min_level/max_level/range/spacing settings
- select volume type for each instance: you can have a buy/sell or buy/total or sell/total SLI. Make sure your buy volume instance is the last attached to be displayed on top of sell/total instances without overlapping.
- set buy_sell_sli_mode to true for indicator instances with volume_type = buy/sell, for type total this is optional.
- this basically tells the script to calculate % lengths based on total volume instead of individual buy/sell volumes and use ext offset for sell levels
- Sell Offset is calculated relative to Buy Offset to stack/extend sell after buy. Buy Offset = Zero - Buy Length. Sell Offset = Buy Offset - Sell Length = Zero - Buy Length - Sell Length
- there are no master/slave instances in this mode, all indicators are equal, poc/va levels are not affected and can work independently, i.e. one instance can show va levels, another - vwap.
2) Enable Vertical SLI:
- attach the first instance and evaluate the full range to roughly determine where is the highest max_vol/poc level i.e. 0..20000, poc is in the bottom half (third, middle etc) or
- add more instances and split the full vertical range between them, i.e. set min_level/max_level of each corresponding instance to 0..10000, 10000..20000 etc
- make sure all instances have the same range/spacing settings
- an instance with a subrange containing the poc level of the full range is now your master instance (bottom half). All other instances are slaves, their levels will be calculated based on the max_vol/poc of the master instance instead of local values
- set show_max_vol_sli to true for the master instance. for slave instances this is optional and can be used to check if master/slave max_vol values match and slave can read the master's value. This simply plots the max_vol value
- you can also attach all instances and set show_max_vol_sli to true in all of them - the instance with the largest max_vol should become the master
Auto/Manual Ext Max_Vol Modes:
- for auto vertical max_vol SLI mode set max_vol_sli_src in all slave instances to the max_vol of the master indicator: "VolumeProfileFree_MAX_RRB: Max Volume for Vertical SLI Mode". It can be tricky with 2+ instances
- in case auto SLI mode doesn't work - assign max_vol_sli_ext in all slave instances the max_vol value of the master indicator manually and repeat on each change
- manual override max_vol_sli_ext has higher priority than auto max_vol_sli_src when both values are assigned, when they are 0 and close respectively - SLI is disabled
- master/slave max_vol values must match on each bar at all times to maintain proper level scale, otherwise slave's levels will look larger than they should relative to the master's levels.
- Max_vol (red) is the last param in the long list of indicator outputs
- the only true max_vol/poc in this SLI mode is the master's max_vol/poc. All poc/va levels in slaves will be irrelevant and are disabled automatically. Slaves can only show VWAP levels.
- VA Levels of the master instance in this SLI mode are calculated based on the subrange, not the whole range and may be inaccurate. Cross check with the full range.
WARNING!
- auto mode max_vol_sli_src is experimental and may not work as expected
- you can only assign auto mode max_vol_sli_src = max_vol once due to some bug with unhandled exception/buffer overflow in Tradingview. Seems that you can clear the value only by removing the indicator instance
- sometimes you may see a "study in error state" error when attempting to set it back to close. Remove indicator/Reload chart and start from scratch
- volume profile may not finish to redraw and freeze in an ugly shape after an UI parameter change when max_vol_sli_src is assigned a max_vol value. Assign it to close - VP should redraw properly, but it may not clear the assigned max_vol value
- you can't seem to be able to assign a proper auto max_vol value to the 3rd slave instance
- 2x Vertical SLI works and tested in both auto/manual, 3x SLI - only manual seems to work (you can have a mixed mode: 2nd instance - auto, 3rd - manual)
Notes:
- This code uses Pinescript v3 compatibility framework
- This code is 20x-30x faster (main for cycle is removed) especially on lower tfs with long history - only 4-5 sec load/redraw time vs 30-60 sec of the old Pro versions
- Instead of repeatedly calculating the total sum of volumes for the whole range on each bar, vol sums are now increased on each bar and passed to the next in the range making it a per range vs per bar calculation that reduces time dramatically
- 100 levels consist of 50 main plot levels and 50 line objects used as alternate levels, differences are:
- line objects are always shown on top of other objects, such as plot levels, zero line and side cover, it's not possible to cover/move them below.
- all line objects have variable lengths, use actual x,y coords and don't need side cover, while all plot levels have a fixed length of 100 bars, use offset and require cover.
- all key properties of line objects, such as x,y coords, color can be modified, objects can be moved/deleted, while this is not possible for static plot levels.
- large width values cause line objects to expand only up/down from center while their length remains the same and stays within the level's start/end points similar to an area style.
- large width values make plot levels expand in all directions (both h/v), beyond level start/end points, sometimes overlapping zero line, making them an inaccurate % length representation, as opposed to line objects/plot levels with area style.
- large width values translate into different widths on screen for line objects and plot levels.
- you can't compensate for this unwanted horiz width expansion of plot levels because width uses its own units, that don't translate into bars/pixels.
- line objects are visible only when num_levels > 50, plot levels are used otherwise
- Since line objects are lines, plot levels also use style line because other style implementations will break the symmetry/spacing between levels.
- if you don't see a volume profile check range settings: min_level/max_level and spacing, set spacing to 0 (or adjust accordingly based on the symbol's precision, i.e. 0.00001)
- you can view either of Buy/Sell/Total volumes, but you can't display Buy/Sell levels at the same time using a single instance (this would 2x reduce the number of levels). Use 2 indicator instances in horiz buy/sell sli mode for that.
- Volume Profile/Value Area are calculated for a given range and updated on each bar. Each level has a fixed length. Offsets control visible level parts. Side Cover hides the invisible parts.
- Custom Color for POC/VA/VWAP levels - UI Style color/transparency can only change shape's color and doesn't affect textcolor, hence this additional option
- Custom Width - UI Style supports only width <= 4, hence this additional option
- POC is visible in both modes. In VWAP mode Developing POC becomes VWAP, VA High and Low => VWAP High and Low correspondingly to minimize the number of plot outputs
- You can't change buy/sell level colors from input (only transparency) - this requires 2x plot outputs => 2x reduces the number of levels to fit the max 64 limit. That's why 2 additional plots are used to dim the non Value Area zones
- You can change level transparency of line objects. Due to Pinescript limitations, only discrete values are supported.
- Inverse transp correlation creates the necessary illusion of "covered" line objects, although they are shown on top of the cover all the time
- If custom lines_transp is set the illusion will break because transp range can't be skewed easily (i.e. transp 0..100 is always mapped to 100..0 and can't be mapped to 50..0)
- transparency can applied to lines dynamically but nva top zone can't be completely removed because plot/mixed type of levels are still used when num_levels < 50 and require cover
- transparency can't be applied to plot levels dynamically from script this can be done only once from UI, and you can't change plot color for the past length bars
- All buy/sell volume lengths are calculated as % of a fixed base width = 100 bars (100%). You can't set show_last from input to change it
- Range selection/Anchoring is not accurate on charts with time gaps since you can only anchor from a point in the future and measure distance in time periods, not actual bars, and there's no way of knowing the number of future gaps in advance.
- Adjust Width for Log Scale mode now also works on high precision charts with small prices (i.e. 0.00001)
- in Adjust Width for Log Scale mode Level1 width extremes can be capped using max deviation (when level1 = 0, shift = 0 width becomes infinite)
- There's no such thing as buy/sell volume, there's just volume, but for the purposes of the Volume Profile method, assume: bull candle = buy volume, bear candle = sell volume
P.S. I am your grandfather, Luke! Now, join the Dark Side in your father's steps or be destroyed! Once more the Sith will rule the Galaxy, and we shall have peace...
Weekdays HeatmapA utility tool for getting interesting weekdays statistics.
Features
26 sources (standard prices, volumes, ranges)
Readable and optimized code
How to interpret
The darker the color, the stronger the weekday dominance
Supported sources/metrics
open
high
low
close
oo2 , (open + previous open) / 2
oh2 , (open + high) / 2
ol2 , (open + low) / 2
oc2 , (open + close) / 2
hh2 , (high + previous high) / 2
hl2 , median price
hc2 , (high + close) / 2
ll2 , (low + previous low) / 2
lc2 , (low + close) / 2
cc2 , (close + previous close) / 2
hlc3 , typical price
ohlc4
weighted close , (2 * close + high + low) / 4
true range
double true range , by Cynthia Kase
open/close range
high/low range
volume
tick volume
net volume
on balance volume
acc/dist , accumulation/distribution line
price volume trend
trade value , volume * close * pipvalue
How to get access
PM me for more details
PivotBoss Outside Reversal SetupPATTERN SUMMARY
1. The engulfing bar of a bullish outside reversal setup has a low that is below the prior bar's low (L < L ) and a
close that is above the prior bar's high (C > H ).
2. The engulfing bar of a bearish outside reversal setup has a high that is above the prior bar's high (H > H )
and a close that is below the prior bar's low (C < L ).
3. The engulfing bar is usually 5 to 25 percent larger than the size of the average bar in the lookback period.
PATTERN PSYCHOLOGY
The power behind this pattern lies in the psychology behind the traders involved in this setup. If you have
ever participated in a breakout at support or resistance only to have the market reverse sharply against you, then
you are familiar with the market dynamics of this setup. What exactly is going on at these levels? To understand
this concept is to understand the outside reversal pattern. Basically, market participants are testing the waters
above resistance or below support to make sure there is no new business to be done at these levels. When no
initiative buyers or sellers participate in range extension, responsive participants have all the information they
need to reverse price back toward a new area of perceived value.
As you look at a bullish outside reversal pattern, you will notice that the current bar's low is lower than the
prior bar's low. Essentially, the market is testing the waters below recently established lows to see if a downside
follow-through will occur. When no additional selling pressure enters the market, the result is a flood of buying
pressure that causes a springboard effect, thereby shooting price above the prior bar's highs and creating the
beginning of a bullish advance.
If you recall the child on the trampoline for a moment, you'll realize that the child had to force the bounce
mat down before he could spring into the air. Also, remember Jennifer the cake baker? She initially pushed price
to $20 per cake, which sent a flood of orders into her shop. The flood of buying pressure eventually sent the price
of her cakes to $35 apiece. Basically, price had to test the $20 level before it could rise to $35.
Let's analyze the outside reversal setup in a different light for a moment. One of the reasons I like this setup
is because the two-bar pattern reduces into the wick reversal setup, which we covered earlier in the chapter. If
you are not familiar with candlestick reduction, the idea is simple. You are taking the price data over two or more
candlesticks and combining them to create a single candlestick. Therefore, you will be taking the open, high, low,
and close prices of the bars in question to create a single composite candlestick.
Take a look at Figure 2.13, which illustrates the candlestick reduction of the outside reversal setup.
Essentially, taking the highest high and the lowest low over the two-bar period gives you the range of the
composite candlestick. Then, taking the opening price of the first candle and the closing price of the last candle
will finish off the composite candlestick. Depending on the structure of the bars of the outside reversal setup, the
result of the candlestick reduction will usually be the transformation into a wick reversal setup, which we know to
be quite powerful. Therefore, in many cases the physiology of the outside reversal pattern basically demonstrates
the inherent psychological traits of the wick reversal pattern. This is just another level of analysis that reinforces
my belief in the outside reversal setup.
Liquidity Sweep Strategy [Enhanced]//@version=5
indicator("Liquidity Sweep Strategy ", overlay=true)
// === USER SETTINGS ===
structureLookback = input.int(20, "Structure Lookback")
sweepSensitivity = input.int(2, "Sweep Sensitivity (Wicks Above/Below)")
showBreaks = input.bool(true, "Highlight Breaks of Structure")
showSweeps = input.bool(true, "Highlight Liquidity Sweeps")
showEntrySignals = input.bool(true, "Show Entry Signals After Sweeps")
emaLength = input.int(50, "EMA Trend Filter Length")
atrLength = input.int(14, "ATR Length")
atrMultiplier = input.float(1.2, "Minimum ATR for Valid Entry")
// === INDICATORS ===
ema = ta.ema(close, emaLength)
atr = ta.atr(atrLength)
// === HIGH/LOW STRUCTURE ===
var float lastHigh = na
var float lastLow = na
swingHigh = ta.highest(high, structureLookback) == high
swingLow = ta.lowest(low, structureLookback) == low
if swingHigh
lastHigh := high
if swingLow
lastLow := low
// === BREAK OF STRUCTURE ===
bosUp = showBreaks and swingHigh and close > lastHigh
bosDown = showBreaks and swingLow and close < lastLow
plotshape(bosUp, title="Break of Structure (Up)", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(bosDown, title="Break of Structure (Down)", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
// === LIQUIDITY SWEEP DETECTION ===
sweepHigh = high > lastHigh and close < lastHigh and showSweeps
sweepLow = low < lastLow and close > lastLow and showSweeps
plotshape(sweepHigh, title="Liquidity Sweep High", location=location.abovebar, color=color.orange, style=shape.xcross, size=size.small)
plotshape(sweepLow, title="Liquidity Sweep Low", location=location.belowbar, color=color.orange, style=shape.xcross, size=size.small)
// === ENTRY SIGNALS WITH CONFIRMATION ===
validShort = sweepHigh and close < open and close < ema and atr > atrMultiplier * ta.sma(close, atrLength)
validLong = sweepLow and close > open and close > ema and atr > atrMultiplier * ta.sma(close, atrLength)
entryShort = validShort and showEntrySignals
entryLong = validLong and showEntrySignals
plotshape(entryShort, title="Entry Short", location=location.abovebar, color=color.red, style=shape.arrowdown, size=size.normal)
plotshape(entryLong, title="Entry Long", location=location.belowbar, color=color.green, style=shape.arrowup, size=size.normal)
// === ALERT CONDITIONS ===
alertcondition(entryShort, title="Short Entry Alert", message="Liquidity Sweep Short Entry with EMA + ATR Confirmation")
alertcondition(entryLong, title="Long Entry Alert", message="Liquidity Sweep Long Entry with EMA + ATR Confirmation")
// === BACKGROUND COLOR ON CONFIRMATION ===
bgcolor(bosUp or bosDown ? color.new(color.gray, 85) : na)
X OROverview
Designed to plot hourly opening ranges (ORs) on an intraday chart. It primarily serves as a trading tool for assessing market direction and potential trading opportunities by analyzing price action relative to key OHLC (Open, High, Low, Close) levels within each hourly range.
The code provided is for each hour sessions from 2:00 AM to 3:00 PM for a complete session-based framework. In addition there is the RTH open range
Purpose
The core purpose of this indicator is to:
✅ Define each hourly range (based on the session’s opening bar) by recording the high and low of that range.
✅ Extend this range into the following bars for visual reference — serving as dynamic support and resistance zones.
✅ Monitor price action relative to each hourly OR, helping traders evaluate market direction and structure trades using concepts like:
Breakouts above/below the OR high/low.
Rejections or consolidations within the OR.
Continuation or reversal signals tied to each OR.
Key Features
The script marks the first bar of the session as the OR session start.
During this bar, it initializes:
Opening price
Session high
Session low
These levels form the initial range.
🔹 Dynamic Range Tracking
Throughout the one-minute OR session:
The highest and lowest prices are updated in real time, capturing intra-hour volatility.
A visual background box is drawn to highlight the OR range on the chart.
🔹 Range Extension
The script defines an extended session period after the initial OR (e.g., 2:00 AM-2:45 AM for the 2:00 AM session).
During this extension period:
The box persists on the chart, providing a contextual zone that traders can use as a dynamic support/resistance area.
🔹 Visual Representation
Transparent colored boxes highlight each session’s OR visually on the chart.
These boxes help traders easily identify whether price is trading:
Inside the OR
Breaking above the high (potential bullish continuation)
Breaking below the low (potential bearish continuation)
Application in Trading
🔍 Trading the Opening Range Breakout
Traders often use the OR high and low as breakout triggers. For example:
A price break above the OR high may signal bullish momentum.
A break below the OR low may signal bearish momentum.
⚖️ Support and Resistance
Even if breakouts fail, the OR can act as a pivot zone — offering areas for:
Stop placements
Target levels
Entry confirmations for fade trades or mean reversion strategies.
🕒 Session Awareness
By defining each hour’s OR individually (from 2:00 AM to 3:00 PM), traders can:
Analyze price behavior within each session.
Recognize when liquidity or volatility increases (e.g. around overlapping sessions like London open or New York open).
Summary
This Pine Script indicator provides a powerful framework for visualizing and trading hourly opening ranges. It enhances intraday analysis by:
Structuring price action within hourly boxes.
Highlighting key price levels relative to OHLC concepts.
Helping traders make more informed decisions by assessing price behavior around these critical ranges.
Dynamic Range Filter with Trend Candlesticks (Zeiierman)█ Overview
Dynamic Range Filter with Trend Candlesticks (Zeiierman) is a volatility-responsive trend engine that adapts in real-time to market structure, offering a clean and intelligent visualization of directional bias. It blends dynamic range calculation with customizable smoothing techniques and layered trend confirmation logic, making it ideal for traders who rely on clear trend direction, structural range analysis, and momentum-based candlestick signals.
By measuring scaled volatility over configurable lengths and applying advanced moving average techniques, this indicator filters out market noise while preserving true directional intent. Complementing this, a dual-trend system (range-based and candle-based) enhances clarity and responsiveness, particularly during shifting market conditions.
█ How It Works
⚪ Scaled Volatility Band Calculation
At the core lies a volatility engine that constructs adaptive range bands around price using smoothed high/low calculations. The bands are dynamically adjusted using:
High/Low Smoothing – Applies a moving average to the raw high and low data before calculating the range.
Scaled Range Volatility – A 2.618 multiplier scales the distance between smoothed highs and lows, forming a responsive volatility envelope.
Band Multiplier – Controls how wide the upper/lower range bands extend from the mean.
This filtering process minimizes false signals and highlights only structurally meaningful moves.
⚪ Multi-Type Smoothing Engine
Users can choose from a wide array of smoothing algorithms for trend construction, including:
HMA (default), SMA, EMA, RMA
KAMA – Adapts to market volatility using efficiency ratios.
VIDYA – Momentum-sensitive smoothing using CMO logic.
FRAMA – Dynamically adjusts to fractal dimension in price.
Super Smoother – Ideal for eliminating aliasing in range signals.
This provides the trader with fine-tuned control over reactivity vs. smoothness.
⚪ Trend Detection (Dual Engine)
The indicator includes two independent trend tracking systems:
Main Trend Filter – Based on adaptive volatility band shifts.
Candle Trend Filter – A second-tier confirmation using smoothed candle data, ideal for directional candles and confirmation entries.
█ How to Use
⚪ Trend Confirmation
Use the Trend Line and colored candlesticks for high-probability entries in the trend direction. The more trend layers that align, the higher the confidence.
⚪ Reversal Zones
When the price reaches the outer bands or fails to break them, look for candle color shifts or a crossover in the range to anticipate possible reversals or consolidations.
█ Settings
Scaled Volatility Length – Controls the lookback used to stabilize the base volatility band.
MA Type & Length – Choose and fine-tune the smoothing method (HMA, EMA, KAMA, etc.)
High/Low Smoother – Pre-smoothing for structural high/low banding.
Band Multiplier – Adjusts the width of the dynamic bands.
Trend Length (Candles) – Length used for candle-based trend confirmation.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Candle Liquidity Algo [ValiantTrader]Explanation of the "Candle Liquidity Algo" Indicator
This indicator is designed to help traders identify potential trading opportunities by analyzing liquidity zones and divergences between price action and these zones on higher timeframes.
Key Components:
1. Timeframe Settings
The indicator allows you to select a custom timeframe (like 'D' for daily, '60' for 60 minutes, etc.)
It then displays the first candle of each new period on this higher timeframe directly on your chart
2. Liquidity Zones
Creates smoothed high and low levels (using a simple moving average) from the higher timeframe
These act as potential support/resistance zones where liquidity may be concentrated
3. Divergence Detection
Looks for divergences between price action and the liquidity zones:
Bullish Divergence: When price makes a lower low but the liquidity zone low is higher
Bearish Divergence: When price makes a higher high but the liquidity zone high is lower
4. Visual Elements
Plots the first candle of each new higher timeframe period on your chart (colored green for up, red for down)
Draws labels when divergences are detected (green "Bullish Div" below price for bullish divergences, red "Bearish Div" above for bearish)
Draws temporary lines marking the relevant price levels where divergences occur
5. Alerts
The indicator can trigger alerts when divergences are detected, which can be useful for traders who want notifications about potential trading setups
How to Use in Trading:
Identify the Higher Timeframe Structure: The indicator shows you how the higher timeframe is developing while you're looking at a lower timeframe chart.
Watch for Divergences: When you see:
Price making lower lows but liquidity zones making higher lows → potential bullish reversal
Price making higher highs but liquidity zones making lower highs → potential bearish reversal
Use Liquidity Zones as Targets/Stops: The smoothed high/low levels can act as potential take-profit areas or stop-loss levels.
Combine with Other Confirmation: Like any indicator, it's best used with other confirmation signals (price action patterns, volume analysis, etc.)
The indicator is particularly useful for traders looking to align their trades with higher timeframe structure while operating on lower timeframes for entry precision.
ICT Opening Range Projections (tristanlee85)ICT Opening Range Projections
This indicator visualizes key price levels based on ICT's (Inner Circle Trader) "Opening Range" concept. This 30-minute time interval establishes price levels that the algorithm will refer to throughout the session. The indicator displays these levels, including standard deviation projections, internal subdivisions (quadrants), and the opening price.
🟪 What It Does
The Opening Range is a crucial 30-minute window where market algorithms establish significant price levels. ICT theory suggests this range forms the basis for daily price movement.
This script helps you:
Mark the high, low, and opening price of each session.
Divide the range into quadrants (premium, discount, and midpoint/Consequent Encroachment).
Project potential price targets beyond the range using configurable standard deviation multiples .
🟪 How to Use It
This tool aids in time-based technical analysis rooted in ICT's Opening Range model, helping you observe price interaction with algorithmic levels.
Example uses include:
Identifying early structural boundaries.
Observing price behavior within premium/discount zones.
Visualizing initial displacement from the range to anticipate future moves.
Comparing price reactions at projected standard deviation levels.
Aligning price action with significant times like London or NY Open.
Note: This indicator provides a visual framework; it does not offer trade signals or interpretations.
🟪 Key Information
Time Zone: New York time (ET) is required on your chart.
Sessions: Supports multiple sessions, including NY midnight, NY AM, NY PM, and three custom timeframes.
Time Interval: Supports multi-timeframe up to 15 minutes. Best used on a 1-minute chart for accuracy.
🟪 Session Options
The Opening Range interval is configurable for up to 6 sessions:
Pre-defined ICT Sessions:
NY Midnight: 12:00 AM – 12:30 AM ET
NY AM: 9:30 AM – 10:00 AM ET
NY PM: 1:30 PM – 2:00 PM ET
Custom Sessions:
Three user-defined start/end time pairs.
This example shows a custom session from 03:30 - 04:00:
🟪 Understanding the Levels
The Opening Price is the open of the first 1-minute candle within the chosen session.
At session close, the Opening Range is calculated using its High and Low . An optional swing-based mode uses swing highs/lows for range boundaries.
The range is divided into quadrants by its midpoint ( Consequent Encroachment or CE):
Upper Quadrant: CE to high (premium).
Lower Quadrant: Low to CE (discount).
These subdivisions help visualize internal range dynamics, where price often reacts during algorithmic delivery.
🟪 Working with Ranges
By default, the range is determined by the highest high and lowest low of the 30-minute session:
A range can also be determined by the highest/lowest swing points:
Quadrants outline the premium and discount of a range that price will reference:
Small ranges still follow the same algorithmic logic, but may be deemed insignificant for one's trading. These can be filtered in the settings by specifying a minimum ticks limit. In this example, the range is 42 ticks (10.5 points) but the indicator is configured for 80 ticks (20 points). We can select which levels will plot if the range is below the limit. Here, only the 00:00 opening price is plotted:
You may opt to include the range high/low, quadrants, and projections as well. This will plot a red (configurable) range bracket to indicate it is below the limit while plotting the levels:
🟪 Price Projections
Projections extend beyond the Opening Range using standard deviations, framing the market beyond the initial session and identifying potential targets. You define the standard deviation multiples (e.g., 1.0, 1.5, 2.0).
Both positive and negative extensions are displayed, symmetrically projected from the range's high and low.
The Dynamic Levels option plots only the next projection level once price crosses the previous extreme. For example, only the 0.5 STDEV level plots until price reaches it, then the 1.0 level appears, and so on. This continues up to your defined maximum projections, or indefinitely if standard deviations are set to 0.
This example shows dynamic levels for a total of 6 sessions, only 1 of which meet a configured minimum limit of 50 ticks:
Small ranges followed by significant displacement are impacted the most with the number of levels plotted. You may hide projections when configuring the minimum ticks.
A fixed standard deviation will plot levels in both directions, regardless of the price range. Here, we plot up to 3.0 which hiding projections for small ranges:
🟪 Legal Disclaimer
This indicator is provided for informational and educational purposes only. It is not financial advice, and should not be construed as a recommendation to buy or sell any financial instrument. Trading involves substantial risk, and you could lose a significant amount of money. Past performance is not indicative of future results. Always consult with a qualified financial professional before making any trading or investment decisions. The creators and distributors of this indicator assume no responsibility for your trading outcomes.
Malama's Candle Sniper Malama's Candle Sniper
This Pine Script is an overlay indicator crafted for TradingView to detect and highlight a variety of bullish and bearish candlestick patterns directly on the price chart. Its primary goal is to assist traders in identifying potential reversal or continuation signals by marking these patterns with labeled visual cues. The indicator is versatile, applicable across different markets (e.g., stocks, forex, cryptocurrencies) and timeframes, making it a valuable tool for enhancing technical analysis and informing trading decisions.
Originality and Usefulness
While the candlestick patterns detected by this script are well-established in technical analysis, "Malama's Candle Sniper" stands out due to its comprehensive nature. It consolidates the detection of numerous patterns—ranging from engulfing patterns to doji variations and multi-candle formations—into a single, unified indicator. This eliminates the need for traders to apply multiple individual indicators, streamlining their charting process and saving time.
The indicator’s usefulness lies in its ability to:
Provide Visual Clarity: Labels are plotted on the chart when patterns are detected, offering immediate recognition of potential trading opportunities.
Broad Pattern Coverage: It identifies both bullish and bearish patterns, accommodating various market conditions and trading strategies.
This makes it an ideal tool for traders who incorporate candlestick analysis into their decision-making, whether for spotting trend reversals or confirming ongoing momentum.
How It Works
"Malama's Candle Sniper" operates by defining helper functions in Pine Script that evaluate whether specific candlestick pattern conditions are met for the current bar. Each function returns a boolean value (true/false) based on predefined criteria involving the open, high, low, and close prices of the candles. The script then checks for transitions from false to true (i.e., a pattern newly appearing) and plots a corresponding label on the chart.
Bullish Patterns Detected
The script identifies the following bullish patterns, which typically signal potential upward price movements:
Bullish Engulfing: A small bearish candle followed by a larger bullish candle that engulfs it.
Three White Soldiers: Three consecutive bullish candles with higher closes.
Bullish Three Line Strike: Three bullish candles followed by a bearish candle that doesn’t negate the prior uptrend.
Three Inside Up: A bearish candle, a smaller bullish candle within its range, and a strong bullish confirmation candle.
Dragonfly Doji: A doji with a long lower wick and little to no upper wick, opening and closing near the high.
Piercing Line: A bearish candle followed by a bullish candle that opens below the prior low and closes above the midpoint of the prior candle.
Bullish Marubozu: A strong bullish candle with no upper or lower wicks.
Bullish Abandoned Baby: A bearish candle, a doji gapped below it, and a bullish candle gapped above the doji.
Rising Window: A gap up between two candles, with the current low above the prior high.
Hammer: A candle with a small body and a long lower wick, indicating rejection of lower prices.
Morning Star: A three-candle pattern with a bearish candle, a small-bodied middle candle, and a strong bullish candle.
Bearish Patterns Detected
The script also detects these bearish patterns, which often indicate potential downward price movements:
Bearish Engulfing: A small bullish candle followed by a larger bearish candle that engulfs it.
Three Black Crows: Three consecutive bearish candles with lower closes.
Bearish Three Line Strike: Three bearish candles followed by a bullish candle that doesn’t reverse the downtrend.
Three Inside Down: A bullish candle, a smaller bearish candle within its range, and a strong bearish confirmation candle.
Gravestone Doji: A doji with a long upper wick and little to no lower wick, opening and closing near the low.
Dark Cloud Cover: A bullish candle followed by a bearish candle that opens above the prior high and closes below the midpoint of the prior candle.
Bearish Marubozu: A strong bearish candle with no upper or lower wicks.
Bearish Abandoned Baby: A bullish candle, a doji gapped above it, and a bearish candle gapped below the doji.
Falling Window: A gap down between two candles, with the current high below the prior low.
Hanging Man: A candle with a small body and a long lower wick after an uptrend, signaling potential reversal.
Label Plotting
When a pattern is detected (i.e., its condition transitions from false to true):
Bullish Patterns: A label is plotted at the high of the bar, using a green background with white text and a downward-pointing style (e.g., "Bull Engulf" for Bullish Engulfing).
Bearish Patterns: A label is plotted at the low of the bar, using a red background with white text and an upward-pointing style (e.g., "Bear Engulf" for Bearish Engulfing).
This visual distinction helps traders quickly differentiate between bullish and bearish signals and their precise locations on the chart.
Strategy and Risk Management
Backtesting: "Malama's Candle Sniper" is strictly an indicator and does not include backtesting capabilities or automated trading signals. It does not simulate trades or provide performance statistics such as win rates or profit/loss metrics.
Risk Management: As an informational tool, it lacks built-in risk management features. Traders must independently implement strategies like stop-loss orders, take-profit levels, or position sizing to manage risk when acting on the detected patterns. For example, a trader might place a stop-loss below a Hammer pattern’s low or above a Hanging Man’s high to limit potential losses.
User Settings and Customization
Inputs: The script does not offer user-configurable inputs. All pattern detection logic is hardcoded, meaning traders cannot adjust parameters such as lookback periods or pattern sensitivity through the interface.
Customization: Advanced users with Pine Script knowledge can modify the code directly to:
Add or remove patterns.
Adjust the conditions (e.g., tweak the wick-to-body ratio for a Hammer).
Change label styles or colors.
However, the default version is fixed and ready-to-use as is.
Visualizations and Chart Setup
Plotted Elements:
Bullish Labels: Appear at the candle’s high with a green background, white text, and a downward-pointing arrow (e.g., "Hammer").
Bearish Labels: Appear at the candle’s low with a red background, white text, and an upward-pointing arrow (e.g., "Hanging Man").
Chart Setup: The indicator is configured as an overlay (overlay=true), meaning it integrates seamlessly with the price chart. Labels are displayed directly on the candlesticks, eliminating the need for a separate pane and keeping the focus on price action.
Usage Example
To use "Malama's Candle Sniper":
Add the indicator to your TradingView chart via the Indicators menu.
Observe the price chart for green (bullish) or red (bearish) labels as they appear.
Analyze the context of each pattern (e.g., trend direction, support/resistance levels) to decide on potential trades.
Apply your own entry, exit, and risk management rules based on the signals.
For instance, spotting a "Morning Star" label during a downtrend near a support level might prompt a trader to consider a long position, while a "Dark Cloud Cover" at resistance could signal a short opportunity.
Megazones📦 Megazones — Auto-Expanding Range Detection
Megazones is a dynamic tool that detects price expansion ranges based on pivot structure. It automatically plots a pair of horizontal lines when both pivot highs and pivot lows are expanding — signaling directional strength and potential breakout zones.
🧠 How It Works:
- Pivot Detection: The script finds local highs/lows using a configurable Pivot Lookback length.
- Expansion Logic: It checks for consecutive higher highs and higher lows (configurable count).
- Zone Projection: When both expansions are detected, it draws a fading "zone" using two horizontal lines based on the latest pivot high and low.
⚙️ Settings:
- Pivot Lookback: How far left/right to confirm a pivot.
- Expansion Detection Window: How many bars back to keep pivots in memory.
- Min Expanding Highs/Lows: How many higher highs/lows must occur in a row to trigger zone detection.
🔍 Key Concept:
It identifies moments when the market is forming a structured expansion, where both higher highs and higher lows appear sequentially — suggesting potential breakout pressure or momentum continuation.
✅ Use Cases:
- Visual confirmation of building bullish structure.
- Anticipating breakout areas from clean expansion phases.
- Identifying trend-following continuation zones.
Filt ADR🟠 Script Name: Filtered Average Daily Range (Filt ADR)
This script calculates a filtered version of the Average Daily Range (ADR) based on the last 14 daily candles. It's designed to reduce the influence of unusually high or low daily ranges (outliers) by applying a filter before calculating the average.
🔧 How It Works — Step by Step
1. Calculate Daily Ranges (High - Low)
It retrieves the daily price ranges (difference between daily high and low) for the last 14 days using request.security() with the "D" (daily) timeframe.
pinescript
Копировать
Редактировать
high - low // today's daily range
high - low // yesterday's daily range
...
These values are stored into individual variables dr0 to dr13.
2. Build an Array of Daily Ranges
An array named ranges is used to store the 14 daily ranges, but only if they are not na (missing data). This avoids errors during processing.
3. Calculate the Initial (Unfiltered) Average Range
The script sums all values in the ranges array and calculates their average:
pinescript
Копировать
Редактировать
avg_all = total sum of ranges / number of valid entries
4. Filter Out Outliers
Now it filters the values in ranges:
Only keeps the ranges that are between 0.5×avg_all and 2×avg_all.
This is to remove abnormally small or large daily ranges that could distort the average.
The filtered values are added to a second array called filtered.
5. Calculate the Filtered ADR
Finally, it calculates the average of the filtered daily ranges:
pinescript
Копировать
Редактировать
avg_filt = sum of filtered ranges / number of filtered values
This is the Filtered ADR.
6. Plot the Result
The result (avg_filt) is plotted as an orange line on the chart. It updates on each bar (depending on the current timeframe you're viewing) but the underlying data is based on the last 14 daily candles.
pinescript
Копировать
Редактировать
plot(avg_filt, title="Filtered ADR", color=color.orange, linewidth=2)
✅ Use Case
This script is useful for traders who use the Average Daily Range (ADR) to:
Estimate expected price movement during a day
Set volatility-based stop-loss or take-profit levels
Identify days with unusually high or low volatility
By filtering out extreme values, it provides a more stable and reliable estimate of daily volatility.
NeuroFlow Pro IndicatorThe **NeuroFlow Pro Indicator** is a comprehensive technical analysis tool designed for traders on the TradingView platform. It provides actionable buy and sell signals by combining multiple technical indicators, including Moving Averages, MACD, RSI, Stochastic RSI, SuperTrend, Ichimoku Cloud, Bollinger Bands, and Volume analysis. The indicator generates a **Composite Score** (0–100) that reflects market conditions, with low scores indicating bullish opportunities and high scores suggesting bearish conditions. It also identifies key trend reversal points and significant EMA crossovers (Golden Cross and Death Cross) to help traders make informed decisions.
**Key Features**:
- **Composite Score**: Aggregates signals from multiple indicators to provide a single, easy-to-read metric.
- **Buy/Sell Signals**: Generates clear signals for potential long (buy) and short (sell) opportunities.
- **Golden/Death Cross**: Marks EMA 50 crossing above (🚀) or below (💀) EMA 200, indicating major trend shifts.
- **Dashboard**: Displays real-time metrics like trend direction, momentum, volume, and signal confidence.
- **Customizable Alerts**: Notifies users of buy/sell signals, divergences, and EMA crossovers via TradingView’s alert system.
- **Multi-Timeframe Analysis**: Incorporates higher timeframe trends for enhanced signal reliability.
- **Candlestick Patterns**: Optionally includes patterns like Hammer, Engulfing, or Morning Star for signal confirmation.
This indicator is ideal for traders seeking a robust, all-in-one tool to identify trading opportunities across various markets (e.g., crypto, stocks, forex) and timeframes (e.g., 1H, 4H, daily).
User Guide for NeuroFlow Pro Indicator
Understanding the Indicator
- **Dashboard**:
- Located on the chart (left or right, configurable), it shows real-time metrics:
- **Comp Score**: Composite Score (0–100); low (<30) is bullish, high (>70) is bearish.
- **Trend**: Bullish, Bearish, or Neutral
- **MTF Trend**: Trend from a higher timeframe (e.g., 60m or 240m).
- **Momentum**: RSI and Stochastic RSI-based momentum (Bullish, Bearish, Neutral).
- **MFI**: Money Flow Index (Inflow, Outflow, Neutral).
- **Volatility**: High or Low based on ATR and Bollinger Bands.
- **Volume**: High, Low, or Neutral relative to volume MA.
- **Ichimoku**: Bullish, Bearish, or Neutral based on cloud position.
- **ADX Strength**: Strong or Weak trend based on ADX.
- **Divergence**: Bullish, Bearish, or Neutral for RSI/MACD divergences.
- **Reversal**: Bullish or Bearish reversal potential with confidence percentage.
- **Signal Status**: Long (buy), Short (sell), or None.
- **Signal Confid**: Confidence percentage for the current signal.
- **Chart Visuals**:
- **EMA 50 (White)**: Fast-moving average for short-term trends.
- **EMA 200 (Blue)**: Long-moving average for long-term trends.
- **Golden Cross (🚀)**: Green rocket emoji when EMA 50 crosses above EMA 200 (bullish).
- **Death Cross (💀)**: Red skull emoji when EMA 50 crosses below EMA 200 (bearish).
- **Alerts**:
- Configurable for Buy/Sell Signals, Golden/Death Cross, and Bullish/Bearish Divergences.
Configuring Settings
1. **Open Settings**:
- Right-click the indicator’s name on the chart and select “Settings,” or double-click the indicator in the chart’s indicator list.
2. **Key Settings to Customize**:
- **Strategy Settings**:
- **Max ATR Multiplier**: Adjusts sensitivity to volatility (default: 3.0).
- **Main Settings**:
- **Candlestick Pattern**: Choose Hammer, Engulfing, Morning Star, or Custom (default: Hammer).
- **Multi-Timeframe Period**: Set higher timeframe for trend analysis (e.g., 60m, 240m, Daily; default: 60m).
- **Higher Timeframe**: Secondary timeframe for confirmation (default: 240m).
- **Use Candlestick Patterns**: Enable/disable pattern-based signals (default: off).
- **Use Volume Filter**: Require high volume for signals (default: on).
- **Use ADX Filter**: Require strong trend for signals (default: on).
- **Momentum Settings**:
- **RSI/Stochastic/MFI Lengths**: Adjust periods for RSI, Stochastic RSI, and MFI (defaults: 14, 14, 60).
- **EMA Lengths**: Fast (50), Slow (100), Long (200) for trend and crossovers.
- **ATR/ADX Lengths**: Volatility and trend strength periods (default: 14).
- **SuperTrend/Bollinger/Ichimoku Settings**:
- Customize periods and multipliers (defaults: SuperTrend 10/3.0, Bollinger 20/2.0, Ichimoku 9/26/52).
- **MACD Settings**:
- **MACD Preset**: Auto (timeframe-based), 1H (3-10-16), 4H (5-34-21), D (5-15-9), or Custom (default: Auto).
- **Custom MACD Lengths**: Fast (12), Slow (26), Signal (9) for Custom preset.
- **Weights Settings**:
- Adjust weights for trend, momentum, volatility, etc., to prioritize certain indicators (defaults: Trend 1.0, Momentum 0.3, etc.).
- **Threshold Settings**:
- **Bullish/Bearish Reversal Thresholds**: Set score thresholds for reversals (default: 30/70).
- **ADX Threshold**: Minimum ADX for trend strength (default: 20).
- **Signal Thresholds**: Base (70) and alert (80) thresholds for signals.
- **Dashboard Settings**:
- **Position**: Left or Right (default: Right).
- **Show/Hide Metrics**: Enable/disable dashboard rows (e.g., Comp Score, Trend, MFI; all enabled by default except Volatility and Volume MA).
3. **Save Changes**:
- Click “OK” to apply settings. The dashboard and plots update instantly.
Using the Indicator
1. **Interpreting Signals**:
- **Buy Signal (Long)**: Appears when Composite Score is low (≤30), with at least two bullish confirmations . Shown as “Long” in Signal Status with confidence percentage.
- **Sell Signal (Short)**: Appears when Composite Score is high (≥70), with at least two bearish confirmations. Shown as “Short” in Signal Status.
- **Golden Cross (🚀)**: Indicates a bullish trend when EMA 50 crosses above EMA 200. Look for confirmation from Composite Score and Signal Status.
- **Death Cross (💀)**: Indicates a bearish trend when EMA 50 crosses below EMA 200. Confirm with dashboard metrics.
- **Reversal Signals**: Dashboard shows “Bullish” or “Bearish” with a percentage when reversal conditions are met .
2. **Monitoring the Dashboard**:
- Use the dashboard to assess market conditions in real-time.
- Green (bullish), red (bearish), or gray (neutral) colors highlight key metrics.
- Check “Signal Confid” for confidence in buy/sell signals (higher is better, e.g., >60%).
3. **Trading Decisions**:
- Combine signals with your own analysis (e.g., support/resistance, news).
- Use Golden/Death Cross for long-term trend confirmation.
- Avoid trading in high volatility (dashboard: “Volatility: High”) unless experienced
Best Practices
- **Timeframe Selection**:
- Use higher timeframes (e.g., 4H, Daily) for more reliable signals, especially for Golden/Death Cross.
- Lower timeframes (e.g., 5m, 15m) may produce more signals but with higher noise.
- **Confirm Signals**:
- Cross-check buy/sell signals with dashboard metrics (e.g., Trend, MFI, ADX).
- Use Golden/Death Cross as a trend filter rather than a standalone signal.
- **Risk Management**:
- Always use stop-losses and position sizing based on your risk tolerance.
- Avoid trading during high volatility unless part of your strategy.
- **Regular Updates**:
- Monitor TradingView for script updates from the author (KoKalito) to access new features or bug fixes.
Troubleshooting
- **No Signals**:
- Ensure the chart timeframe matches your settings (e.g., 60m for MTF Period).
- Check if filters (Volume, ADX) are too strict; try disabling them.
- **Dashboard Missing**:
- Verify “Dashboard Position” is set to Left or Right.
- Ensure dashboard metrics are enabled (e.g., Show Comp Score).
- **Alerts Not Triggering**:
- Confirm the alert condition is set to “NeuroFlow Pro Indicator” and the correct option (e.g., “Golden Cross Alert”).
- Check TradingView’s “Alerts” panel for errors or expired alerts.
- Reapply the indicator to the chart if it was recently updated.
- **EMA Crosses Not Showing**:
- Zoom in on the chart to see 🚀 (Golden Cross) or 💀 (Death Cross) symbols.
- Ensure EMA 50 and EMA 200 lengths are not identical (defaults: 50, 200).
Support
- **Author**: KoKalito (check TradingView profile for updates or contact info).
- **TradingView Community**: Post questions in the TradingView Pine Script community or forums.
- **Documentation**: Refer to TradingView’s Pine Script v5 documentation for advanced customization.
- **Risk Warning**: Trading involves risk. Use the indicator as a tool, not a guarantee of profits. Always conduct your own analysis and manage risk appropriately.
Happy trading with **NeuroFlow Pro Indicator**! 🚀