Customizable Non-Repainting HTF MACD MFI Scalper Bot Strategy v2Customizable Non-Repainting HTF MACD MFI Scalper Bot Strategy v2
This script was originally shared by Wunderbit as a free open source script for the community to work with. This is my second published iteration of this idea.
WHAT THIS SCRIPT DOES:
It is intended for use on an algorithmic bot trading platform but can be used for scalping and manual trading.
This strategy is based on the trend-following momentum indicator . It includes the Money Flow index as an additional point for entry.
This is a new and improved version geared for lower timeframes (15-5 minutes), but can be run on larger ones as well. I am testing it live as my high frequency trader.
HOW IT DOES IT:
It uses a combination of MACD and MFI indicators to create entry signals. Parameters for each indicator have been surfaced for user configurability.
Take profits are now trailing profits, and the stop loss is now fixed. Why? I found that the trailing stop loss with ATR in the previous version yields very good results for back tests but becomes very difficult to deploy live due to transaction fees. As you can see the average trade is a higher profit percentage than the previous version.
HOW IS MY VERSION ORIGINAL:
Now instead of using ATR stop loss, we have a fixed stop loss - counter intuitively to what some may believe this performs better in live trading scenarios since it gives the strategy room to move. I noticed that the ATR trailing stop was stopping out too fast and was eating away balance due to transaction fees.
The take profit on the other hand is now a trailing profit with a customizable deviation. This ensures that you can have a minimum profit you want to take in order to exit.
I have depracated the old ATR trailing stop as it became too confusing to have those as different options. I kept the old version for others that want to experiment with it. The source code still requires some cleanup, but its fully functional.
I added in a way to show RSI values and ATR values with a checkbox so that you can use the new an improved ATR Filter (and grab the right RSI values for the RSI filter). This will help to filter out times of very low volatility where we are unlikely to find a profitable trade. Use the "Show Data" checkbox to see what the values are on the indicator pane, then use those values to gauge what you want to filter out.
Both versions
Delayed Signals : The script has been refactored to use a time frame drop down. The higher time frame can be run on a faster chart (recommended on one minute chart for fastest signal confirmation and relay to algotrading platform.)
Repainting Issues : All indicators have been recoded to use the security function that checks to see if the current calculation is in realtime, if it is, then it uses the previous bar for calculation. If you are still experiencing repainting issues based on intended (or non intended use), please provide a report with screenshot and explanation so I can try to address.
Filtering : I have added to additional filters an ABOVE EMA Filter and a BELOW RSI Filter (both can be turned on and off)
Customizable Long and Close Messages : This allows someone to use the script for algorithmic trading without having to alter code. It also means you can use one indicator for all of your different alterts required for your bots.
HOW TO USE IT:
It is intended to be used in the 5-30 minute time frames, but you might be able to get a good configuration for higher time frames. I welcome feedback from other users on what they have found.
Find a pair with high volatility (example KUCOIN:ETH3LUSDT ) - I have found it works particularly well with 3L and 3S tokens for crypto. although it the limitation is that confrigurations I have found to work typically have low R/R ratio, but very high win rate and profit factor.
Ideally set one minute chart for bots, but you can use other charts for manual trading. The signal will be delayed by one bar but I have found configurations that still test well.
Select a time frame in configuration for your indicator calculations.
Select the strategy config for time frame (resolution). I like to use 5 and 15 minutes for scalping scenarios, but I am interested in hearing back from other community memebers.
Optimize your indicator without filters : customize your settings for MACD and MFI that are profitable with your chart and selected time frame calculation. Try different Take Profits (try about 2-5%) and stop loss (try about 5-8%). See if your back test is profitable and continue to optimize.
Use the Trend, RSI, ATR Filter to further refine your signals for entry. You will get less entries but you can increase your win ratio.
You can use the open and close messages for a platform integration, but I choose to set mine up on the destination platform and let the platform close it. With certain platforms you cannot be sure what your entry point actually was compared to Trading View due to slippage and timing, so I let the platform decide when it is actually profitable.
Limitations: this works rather well for short term, and does some good forward testing but back testing large data sets is a problem when switching from very small time frame to large time frame. For instance, finding a configuration that works on a one minute chart but then changing to a 1 hour chart means you lose some of your intra bar calclulations. There are some new features in pine script which might be able to address, this, but I have not had a chance to work on that issue.
"scalping"に関するスクリプトを検索
MACD Volume S2 By Gammaprod>> How to use this indicator :
1. Set your teadingview theme to dark theme.
2. My indicator is valid for forex, stock and but more valid for crypto.
3. Use three timeframe for more validation (choose between those, that fit to your trading style) :
- Timeframe 1m, 5m, and 15m for Scalping
- Timeframe 30m, 1h and 4h for Intraday
- Timeframe 4h, 1D and 1W for Swing Trading
4 . Always use THREE INDICATORS FROM GAMMAPROD, those three indicators is back to back each other, by the way, I only made those three indicators only (for now) :
- Trendlines Boll Ichi Crypto by Gammaprod
- Stoch RSI Divs Zone Crypto by Gammaprod
- MACD Volume Crypto by Gammaprod
>> How to setting :
1. Trendlines Boll Ichi Crypto by Gammaprod
A. Support and Resistence
- Well if you familiar with this indicator you can add it, but recommended for Timeframe 30m or more
B. Trendlines Primary or Trendlines Secondary
- Timeframe 1m you DON'T NEED Trendlines Primary or Trendlines Secondary
- Timeframe 5m you DON'T NEED Trendlines Secondary, but you CAN ADD Trendlines Primary if you fell it helpful (for me, it is helpful to find where the candles start or the end trend or a consolidation or where the candles will surpass a resistance or a support).
- Timeframe 15m you DON'T NEED Trendlines Secondary, DEFENITELY add Trendlines Primary it will help to find where the candles stop or a consolidation or where the candles will surpass a resistance or a support).
- Timeframe 30m or more, DEFENITELY NEED BOTH Trendlines Primary and Secondary Trendlines, it will help to find where the candle stop or consolidation or where the candle will surpass a resistance or support).
C. Bolinger, Ichimoku Cloud and Lagging Span
- Please DON'T CHANGE IT at all, it's really helpful to know when and where to make an entry decesion or a trend or a consolidation, if you don't understand how to read it, you better to learn it first (on "how to read" section and "How to OPEN position" the section below)
2. Stoch RSI Divs Zone Crypto by Gammaprod (DON'T CHANGE IT)
3. MACD Volume Crypto by Gammaprod (DON'T CHANGE IT)
>> How to read :
1. Sell or Buy Priority :
A. Buy Priority
- Color background on macd and stoch rsi is pink or purple sell is the priority, (if you're not sure to buy, just wait until the best moment to sell)
B. Buy Priority
- Color background on macd and stoch rsi Teal or light green buy is the priority, (if you're not sure to sell, just wait until the best moment to buy)
C. Indecision / Golden Moment
- Color background on stoch rsi yellow is indecision / golden moment of reversal pattern (wait until it formed background only on Stoch RSI), please becareful at this moment.
2. Trend / Consolidation :
A. BULLISH trend
- When Stoch RSI and MACD have teal or light green background that's means BULLISH trend, better to confirm by the candle is above green cloud and lagging span (red line) is also above the candle.
B. BEARISH trend
- When Stoch RSI and MACD have the Pink or purple background that's means BEARISH trend, better to confirm by the candle is above purple cloud and lagging span (red line) is also below the candle.
C. CONSOLIDATION
- When Stoch RSI have the mix background that's means CONSOLIDATION, better to confirm by the candle is in or near to green / purple cloud and lagging span (red line) is also on the candle.
3. Special Mark
A. Ideal Bullish :
- Near line 20 and green / teal background = When Stoch RSI have the char R / H on lime color label, that's means divergence or hidden divergence for buy position, if you not see this label that's means just a standard confirmation for buy
B. Not an Ideal Bullish :
- Near line 80 and green / teal background = if this happens make sure you know what happen, it could be a false signal or bullish continual pattern
C. Ideal Bearish :
- Near line 80 and pink / purple background = When Stoch RSI have the char R / H on lime color label, that's means divergence or hidden divergence for buy position, if you not see this label that's means just a standard confirmation for sell position.
D. Not an Ideal Bearish:
- Near line 20 and pink / purple background = if this happens make sure you know what happen, it could be a false signal or bearish continual pattern
E. The Beginning of Reversal (from BEARISH to BULLISH) :
- When Stoch RSI line shaping GREEN position is near 20.
- MACD lines still PINK, position lines is UNDER the HISTOGRAM, but the HISTOGRAM start to SHAPE FALL PINK (light pink) and the BACKGROUND still PINK / PURPLE.
- Position CANDLES NEAR BLUE line, NEAR PURPLE CLOUD, and lagging span (red line) STILL ON the area candle. (it used to be confirmed with the golden moment).
F. The Beginning of Reversal (from BULLISH to BEARISH) :
- When Stoch RSI line shaping PINK position is near 80.
- MACD lines still GREEN, position lines is ABOVE the HISTOGRAM, but the HISTOGRAM start to SHAPE FALL GREEN (light green) and the BACKGROUND still TEAL / GREEN.
- Position CANDLES NEAR WHITE line, NEAR TEAL CLOUD, and lagging span (red line) STILL ON the area candle. (it used to be confirmed with the golden moment).
G. False Signals, or It could be a Golden Moment (better to see it on TF 15 or bigger):
- Near line 20 or 80 and yellow background = When Stoch RSI have the char R / H on color label, that's means divergence or hidden divergence for buy / sell position, if you not see this label that's means just a standard confirmation for buy / sell depends on where the Stoch RSI line if near 20 that's means buy, near 80 means sell
>> How to OPEN position:
A. Bullish
1. Trendlines Boll Ichi Crypto by Gammaprod
- The candles above the green cloud.
- Lagging span (red line) above the candles.
- then open buy near yellow line (the first option) / blue line (the second option) (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
- Teal or Green background.
- The lines is shaping green.
- Better if on the bottom (at a range 20).
3. MACD Volume Crypto by Gammaprod
- Teal or Green background.
- The lines is shaped or shaping green.
- Better if at the green histogram.
B. Bearish
1. Trendlines Boll Ichi Crypto by Gammaprod
- The candles below the purple cloud.
- Lagging span (red line) below the candles.
- then open buy near yellow line (the first option) / white line (the second option) (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
- Pink or purple background.
- The lines are shaping pink.
- Better if the line on the top (at a range 80).
3. MACD Volume Crypto by Gammaprod
- Pink or purple background.
- The lines are shaped or shaping green.
- Better if at the pink histogram.
C. Consolidation
1. Trendlines Boll Ichi Crypto by Gammaprod
- The candles on the cloud (green or purple).
- Lagging span (red line) on the candles.
- then open buy near the white or blue line (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
- Mix background specially on a timeframe 15m or more.
- The line move fast up and down.
- Better if on the bottom or the top of the lines (at a range 20 or 80).
3. MACD Volume Crypto by Gammaprod
- Changing the background.
- The line is near the middle line.
- Have small Histogram.
>> The secret ingridient is comparing the timeframe :
The example scalping (Timeframe 1m, 5m and 15m)
- TF 1m is for making an open position.
- TF 5m is for making a judgement of the trend market.
- TF 15m is to confirm that judgement from TF 5m, be careful if it not similar then it used to be a consolidation or the beginning of the reversal.
There's a lot a way to open the position than above information that i gave it to you, but consider there are a limit char on this column, I hope it will help your trading and make a more profit on it.
Stoch RSI, Div, Zone S3 by Gammaprod>> How to use this indicator :
1. Set your teadingview theme to dark theme.
2. My indicator is valid for forex, stock and but more valid for crypto.
3. Use three timeframe for more validation (choose between those, that fit to your trading style) :
- Timeframe 1m, 5m, and 15m for Scalping
- Timeframe 30m, 1h and 4h for Intraday
- Timeframe 4h, 1D and 1W for Swing Trading
4 . Always use THREE INDICATORS FROM GAMMAPROD, those three indicators is back to back each other, by the way, I only made those three indicators only (for now) :
- Trendlines Boll Ichi Crypto by Gammaprod
- Stoch RSI Divs Zone Crypto by Gammaprod
- MACD Volume Crypto by Gammaprod
>> How to setting :
1. Trendlines Boll Ichi Crypto by Gammaprod
A. Support and Resistence
- Well if you familiar with this indicator you can add it, but recommended for Timeframe 30m or more
B. Trendlines Primary or Trendlines Secondary
- Timeframe 1m you DON'T NEED Trendlines Primary or Trendlines Secondary
- Timeframe 5m you DON'T NEED Trendlines Secondary, but you CAN ADD Trendlines Primary if you fell it helpful (for me, it is helpful to find where the candles start or the end trend or a consolidation or where the candles will surpass a resistance or a support).
- Timeframe 15m you DON'T NEED Trendlines Secondary, DEFENITELY add Trendlines Primary it will help to find where the candles stop or a consolidation or where the candles will surpass a resistance or a support).
- Timeframe 30m or more, DEFENITELY NEED BOTH Trendlines Primary and Secondary Trendlines, it will help to find where the candle stop or consolidation or where the candle will surpass a resistance or support).
C. Bolinger, Ichimoku Cloud and Lagging Span
- Please DON'T CHANGE IT at all, it's really helpful to know when and where to make an entry decesion or a trend or a consolidation, if you don't understand how to read it, you better to learn it first (on "how to read" section and "How to OPEN position" the section below)
2. Stoch RSI Divs Zone Crypto by Gammaprod (DON'T CHANGE IT)
3. MACD Volume Crypto by Gammaprod (DON'T CHANGE IT)
>> How to read :
1. Sell or Buy Priority :
A. Buy Priority
- Color background on macd and stoch rsi is pink or purple sell is the priority, (if you're not sure to buy, just wait until the best moment to sell)
B. Buy Priority
- Color background on macd and stoch rsi Teal or light green buy is the priority, (if you're not sure to sell, just wait until the best moment to buy)
C. Indecision / Golden Moment
- Color background on stoch rsi yellow is indecision / golden moment of reversal pattern (wait until it formed background only on Stoch RSI), please becareful at this moment.
2. Trend / Consolidation :
A. BULLISH trend
- When Stoch RSI and MACD have teal or light green background that's means BULLISH trend, better to confirm by the candle is above green cloud and lagging span (red line) is also above the candle.
B. BEARISH trend
- When Stoch RSI and MACD have the Pink or purple background that's means BEARISH trend, better to confirm by the candle is above purple cloud and lagging span (red line) is also below the candle.
C. CONSOLIDATION
- When Stoch RSI have the mix background that's means CONSOLIDATION, better to confirm by the candle is in or near to green / purple cloud and lagging span (red line) is also on the candle.
3. Special Mark
A. Ideal Bullish :
- Near line 20 and green / teal background = When Stoch RSI have the char R / H on lime color label, that's means divergence or hidden divergence for buy position, if you not see this label that's means just a standard confirmation for buy
B. Not an Ideal Bullish :
- Near line 80 and green / teal background = if this happens make sure you know what happen, it could be a false signal or bullish continual pattern
C. Ideal Bearish :
- Near line 80 and pink / purple background = When Stoch RSI have the char R / H on lime color label, that's means divergence or hidden divergence for buy position, if you not see this label that's means just a standard confirmation for sell position.
D. Not an Ideal Bearish:
- Near line 20 and pink / purple background = if this happens make sure you know what happen, it could be a false signal or bearish continual pattern
E. The Beginning of Reversal (from BEARISH to BULLISH) :
- When Stoch RSI line shaping GREEN position is near 20.
- MACD lines still PINK, position lines is UNDER the HISTOGRAM, but the HISTOGRAM start to SHAPE FALL PINK (light pink) and the BACKGROUND still PINK / PURPLE.
- Position CANDLES NEAR BLUE line, NEAR PURPLE CLOUD, and lagging span (red line) STILL ON the area candle. (it used to be confirmed with the golden moment).
F. The Beginning of Reversal (from BULLISH to BEARISH) :
- When Stoch RSI line shaping PINK position is near 80.
- MACD lines still GREEN, position lines is ABOVE the HISTOGRAM, but the HISTOGRAM start to SHAPE FALL GREEN (light green) and the BACKGROUND still TEAL / GREEN.
- Position CANDLES NEAR WHITE line, NEAR TEAL CLOUD, and lagging span (red line) STILL ON the area candle. (it used to be confirmed with the golden moment).
G. False Signals, or It could be a Golden Moment (better to see it on TF 15 or bigger):
- Near line 20 or 80 and yellow background = When Stoch RSI have the char R / H on color label, that's means divergence or hidden divergence for buy / sell position, if you not see this label that's means just a standard confirmation for buy / sell depends on where the Stoch RSI line if near 20 that's means buy, near 80 means sell
>> How to OPEN position:
A. Bullish
1. Trendlines Boll Ichi Crypto by Gammaprod
- The candles above the green cloud.
- Lagging span (red line) above the candles.
- then open buy near yellow line (the first option) / blue line (the second option) (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
- Teal or Green background.
- The lines is shaping green.
- Better if on the bottom (at a range 20).
3. MACD Volume Crypto by Gammaprod
- Teal or Green background.
- The lines is shaped or shaping green.
- Better if at the green histogram.
B. Bearish
1. Trendlines Boll Ichi Crypto by Gammaprod
- The candles below the purple cloud.
- Lagging span (red line) below the candles.
- then open buy near yellow line (the first option) / white line (the second option) (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
- Pink or purple background.
- The lines are shaping pink.
- Better if the line on the top (at a range 80).
3. MACD Volume Crypto by Gammaprod
- Pink or purple background.
- The lines are shaped or shaping green.
- Better if at the pink histogram.
C. Consolidation
1. Trendlines Boll Ichi Crypto by Gammaprod
- The candles on the cloud (green or purple).
- Lagging span (red line) on the candles.
- then open buy near the white or blue line (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
- Mix background specially on a timeframe 15m or more.
- The line move fast up and down.
- Better if on the bottom or the top of the lines (at a range 20 or 80).
3. MACD Volume Crypto by Gammaprod
- Changing the background.
- The line is near the middle line.
- Have small Histogram.
>> The secret ingridient is comparing the timeframe :
The example scalping (Timeframe 1m, 5m and 15m)
- TF 1m is for making an open position.
- TF 5m is for making a judgement of the trend market.
- TF 15m is to confirm that judgement from TF 5m, be careful if it not similar then it used to be a consolidation or the beginning of the reversal.
There's a lot a way to open the position than above information that i gave it to you, but consider there are a limit char on this column, I hope it will help your trading and make a more profit on it.
Bogdan Ciocoiu - Code runnerDescription
The Code Runner is a hybrid indicator that leverages other pre-configured, integrated open-source algorithms to help traders spot regular and continuation divergences.
The Code Runner specialises in integrating some of the most popular oscillators well known for their accuracy when scalping using divergence strategies.
Uniqueness
The Code Runner stands out as a one-stop-shop pack of oscillator algorithms that traders can further customise to spot divergences.
The indicator's uniqueness stands from its capability to recast each algorithm to apply to the same scale. This feature is achieved by manually adjusting the outputs of each algorithm to fit on a scale between +100 and -100.
Another benefit of the Code Runner comes from its standardisation of outputs, mainly consisting of lines. Showing lines enables traders to draw potential regular and continuation divergences quickly.
The indicator has been pre-configured to support scalping at 1-5 minutes.
Open-source
The Code Runner uses the following open-source scripts and algorithms:
www.tradingview.com
www.tradingview.com
www.tradingview.com
www.tradingview.com
www.tradingview.com
www.tradingview.com
www.tradingview.com
www.tradingview.com
These algorithms are available in the public domain either in TradingView space or outside (given their popularity in the financial markets industry).
Crypto EMA Trend Reversal StrategyThis is an EMA crossover strategy which involves 5 EMAs to trigger trades. The strategy has two take profit settings and uses a stop loss.
TP1 and SL are based on ATR and TP2 is an EMA crossover.
The strategy goes both long and short and the default settings work particularly well as a scalping strategy for ETHUSDT on the 5M time frame.
I have also created another version with tweaked settings for scalping LINKUSDT on the 5M with very similar results.
There is an option to add a volume condition parameter within the script on lines 26-28 which can be added to the end of lines 34-35 in the following format: and vol_cond
I personally don't currently use the volume condition parameter.
EBB & Flow: a multi-EMA-based BB cloudIntro
This is an idea evolved out of the market maker method and EMA convergence, divergence, and mean reversion.
The market maker method informs us that the 5, 13, 50 and 200 EMAs are important to regulating price. Those EMA lengths are multiples of the 50 and 200 on lower major timeframes -- the 1 minute, 5, 15, 1H, 4H, 1D. I include the 21 because it is also a multiple and in crypto very often respected.
When market makers are testing price, they set their range and spike in the direction they test for liquidity. This can get chaotic. For instance, in a shorter time frame consolidation inside a bigger timeframe uptrend, it can be too easy to forget where you are in the many trends playing out.
When the EMAs are dragged over each other during normal price movement, you get these crisscrossing tracks of price, and the individual breaks can be hard to trace.
The range is what matters, ultimately, and the range is dynamic. In that case, the Bollinger Band is a great tool for detecting outliers in this case.
The Answer
So the answer this indicator seeks to give, is to look for outliers. This gives you a scalping strategy built on Traders Reality thinking and best put together with the PVSRA indicator, which I may include in this indicator just for the sake of concision, but they can work alongside each other or separately.
The key thing is the different EMA clouds, which are bollinger bands. Tight bands mean imminent breaks, favouring the trend. Vector candles out of a zone, pins to the low/high, etc. are all very relevant alongside this indicator.
You can also use it on its own and scalp the breaks of a cloud.
How it works
Each cloud is a standard deviation from their respective EMA, all in the same colour. The deviation multiple is 1.618 by default. Yes, fibonacci sequences are usually nonsense, but it works better with the BB than 2, 2.5 or 3.
Using just the clouds, you can see where each EMA is headed and how it behaves within the deviation of the others.
But that on its own isn't enough.
The indicator will also print snowflakes above and below the candle for notable outliers. It will be in the colour of the cloud it breaks, but only if that break is also breaking the smaller EMA clouds too.
The most snowflakes will be yellow because that's the 13 EMA. That one is dependent on nothing else and every break will print a snowflake. The 21 will be dependent on the 13. The 50 dependent on the 13 and 21 breaks. The 200 the most important.
For example, if the 200 EMA-BB or EBB is broken at the upper band, deviating by more than 162% of price over a 200 period EMA, and that break is not above the 50 EMA cloud, there will be no snowflake. However, if it exceeds the 13, 21, 50, and 200 clouds, then a purple snowflake will appear above the bar.
Any snowflake is an extreme in price. The purple is an especially good point of entry. That doesn't mean it is a perfect entry. You can build position from it, though, and be relatively certain of a price correction in the near future, because not only was this major EMA cloud violated, but all of the smaller ones too.
Reminder
You still need your PVSRA and candlesticks. This indicator on its own may have a nice hit rate for scalping and building position, as an alternative to the TDI or alongside it, but it is not enough on its own, just like the TDI.
Enjoy!
L1 Mid-Term Swing Oscillator v1Level: 1
Background
Oscillators are widely used set of technical analysis indicators. They are popular primarily for their ability to alert of a possible trend change before that change manifests itself in price and volume . They should work best in times of sideways markets.
Function
L1 Short-Mid-Long-Term Swing Oscillator puts three terms of oscillators to cover short-term, middle-term and long-term oscillators at the same time. By resonating all these three oscillators, short-term scalping signal and middle term swing signal are disclosed. You can see both short and mid term signal under one indicator which give you more confidence to follow the trend.
Key Signal
I didn't handle the key signals well. I piled up all the useful signals I found, and it is really difficult to classify them one by one. I feel tired when I think about this problem. Therefore, the code of the overall signal is rather confusing, sorry.
Pros and Cons
Pros:
1. Three oscillators are used to cover short, mid, long term oscillations.
2. Short-Mid term resonance can be observed to have higher confidence level.
3. Use single indicator for scalping and swing trading is possible.
Cons:
1. No deep dive into very accurate long and short entries.
2. A trade off between sensitivity and stability may be needed by traders' subjective judge.
Remarks
I enjoyed the fun of put three different oscillator together to cover short, mid, long terms. But how to use them perfectly is really more brainstorming.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Bandpass Cycle Indicator [Ehlers]This indicator is NOT used for entry and exit conditions when trading. Instead, it's purpose is to tell you what the state of the market is: trending or cyclical.
>WHO IS THIS FOR?
This is especially useful for strategies that use scalping or martingale betting to turn a profit. You don't want to be caught in a bullish trend with several open short orders. Algo traders welcome.
>HOW DOES IT WORK?
I'm glad you asked. It's based on Ehlers' work regarding signal filtering. Essentially, it uses a bandpass filter to reduce noise that is inherent in the market and display the underlying frequency.
First, we get rid of the high-frequency noise - think jitters, long wicks, etc... price action that usually effects EMAs and other MAs. We don't want any of that.
Next, we get rid of low-frequency noise - this is a little more difficult to picture, but we're essentially ignoring cycles (Elliot waves) from other longer time frames. We don't care if the Daily bars are just about to reverse if it doesn't affect our scalping strategy.
Finally, we find the root mean square (RMS) of the high and low points of our newly created signal (red) and plot them (black). These will act as triggers to tell us if a market is in cycle or trending.
>HOW DO YOU READ IT?
Background colors:
-Blue is cycle - you're safe.
-Red is trending down
-Green is trending up
Crossovers:
-Red above Upper Black: Uptrend
-Red below Lower Black: Downtrend
-Red in the middle: Cycle
>IS IT PREDICTIVE?
Momentum tends to pick up quickly and decline quickly, so if you'll often see a small Red or Green strip before a large price movement.
After long periods of cyclic movement (or consolidation), there isn't much momentum in the system, so any small price action will be considered a trend -> these small movements are picked up by other human traders and bots. Trading volume increases more and more until you have a swing in one direction.
So yes, it can be predictive due to the nature of signals and oscillation. Maybe not necessarily predictive of which direction price will go, but when volatility is about to increase.
5 EMAs plus Crossing AlertsHi all,
This is a simple indicator that plots 5 EMA lines of your choice to the screen.
Can be used to trigger scalping Bots (stoploss around 0.5% recommended, take profit 1% or higher, please backtest!)
Also can be used for manual scalping, 1 or 2 candles at a time.
Features:
1) Alerts are triggered when EMAs 1 (Signal line) and 2 (Baseline) cross - a Long signal is called if the cross is above EMA 3 (Trendline), a short if the cross is below EMA3
2) Signals are represented visually as a triangle on the chart, below the candles is a long, above is a short
3) TradingView Alerts can be easily set as I have labelled the signals clearly as many other Indicators like this aren’t easy to work out if trying to create alerts to trigger a 3commas bot, for example!
Each EMA is fully customisable and if you wish to take advantage of the alerts, only a few simple rules need to be followed:
EMA1 needs to be less than EMA2.
EMA2 needs to be the same or greater than EMA3
That’s it, happy trading!
Big shout out to B and the gang over at Crypto Trading Group!
BB+AO STRATto be used with AO indicator, based on forex strat --
www.forexstrategiesresources.com
works on 1/3/5/15/30 candles, buy signals are best when the black 3 fast ema crosses up through the red mid band
BB+AO ALERTSto be used with AO indicator, based on forex strat --
www.forexstrategiesresources.com
works on 1/3/5/15/30 candles, buy signals are best when the black 3 fast ema crosses up through the red mid band
BB+AO STRATto be used with AO, based on forex strat --
www.forexstrategiesresources.com
works on 1/3/5/15/30 candles
Cumulative Volume Delta (CVD) Suite [QuantAlgo]🟢 Overview
The Cumulative Volume Delta (CVD) Suite is a comprehensive toolkit that tracks the net difference between buying and selling pressure over time, helping traders identify significant accumulation/distribution patterns, spot divergences with price action, and confirm trend strength. By visualizing the running balance of volume flow, this indicator reveals underlying market sentiment that often precedes significant price movements.
🟢 How It Works
The indicator begins by determining the optimal timeframe for delta calculation. When auto-select is enabled, it automatically chooses a lower timeframe based on your chart period, e.g., using 1-second bars for minute charts, 5-second bars for 5-minute charts, and progressively larger intervals for higher timeframes. This granular approach captures volume flow dynamics that might be missed at the chart level.
Once the timeframe is established, the indicator calculates volume delta for each bar using directional classification:
getDelta() =>
close > open ? volume : close < open ? -volume : 0
When a bar closes higher than it opens (bullish candle), the entire volume is counted as positive delta representing buying pressure. Conversely, when a bar closes lower than its open (bearish candle), volume becomes negative delta representing selling pressure. This classification is applied to every bar in the selected lower timeframe, then aggregated upward to construct the delta for each chart bar:
array deltaValues = request.security_lower_tf(syminfo.tickerid, lowerTimeframe, getDelta())
float barDelta = 0.0
if array.size(deltaValues) > 0
for i = 0 to array.size(deltaValues) - 1
barDelta := barDelta + array.get(deltaValues, i)
This aggregation process sums all the individual delta values from the lower timeframe bars that comprise each chart bar, capturing the complete volume flow activity within that period. The resulting bar delta then feeds into the various display calculations:
rawCVD = ta.cum(barDelta) // Cumulative sum from chart start
smoothCVD = ta.sma(rawCVD, smoothingLength) // Smoothed for noise reduction
rollingCVD = math.sum(barDelta, rollingLength) // Rolling window calculation
Note: This directional bar approach differs from exchange-level orderflow CVD, which uses tick data to separate aggressive buy orders (executed at the ask price) from aggressive sell orders (executed at the bid price). While this method provides a volume flow approximation rather than pure tape-reading precision, it offers a practical and accessible way to analyze buying and selling dynamics across all timeframes and instruments without requiring specialized data feeds on TradingView.
🟢 Key Features
The indicator offers five distinct visualization modes, each designed to reveal different aspects of volume flow dynamics and cater to various trading strategies and market conditions.
1. Oscillator (Raw): Displays the true cumulative volume delta from the beginning of chart history, accompanied by an EMA signal line that helps identify trend direction and momentum shifts. When CVD crosses above the signal line, it indicates strengthening buying pressure; crosses below suggest increasing selling pressure. This mode is particularly valuable for spotting long-term accumulation/distribution phases and identifying divergences where CVD makes new highs/lows while price fails to confirm, often signaling potential reversals.
2. Oscillator (Smooth): Applies a simple moving average to the raw CVD to filter out noise while preserving the underlying trend structure, creating smoother signal line crossovers. Use this when trading trending instruments where you need confirmation of genuine volume-backed moves versus temporary volatility spikes.
3. Oscillator (Rolling): Calculates cumulative delta over only the most recent N bars (configurable window length), effectively resetting the baseline and removing the influence of distant historical data. This approach focuses exclusively on current market dynamics, making it highly responsive to recent shifts in volume pressure and particularly useful in markets that have undergone regime changes or structural shifts. This mode can be beneficial for traders when they want to analyze "what's happening now" without legacy bias from months or years of prior data affecting the readings.
4. Histogram: Renders the per-bar volume delta as individual histogram bars rather than cumulative values, showing the immediate buying or selling pressure that occurred during each specific candle. Positive (green) bars indicate that bar closed higher than it opened with buying volume, while negative (red) bars show selling volume dominance. This mode excels at identifying sudden volume surges, exhaustion points where large delta bars fail to move price, and bar-by-bar absorption patterns where one side is aggressively consuming the other's volume.
5. Candles: Transforms CVD data into OHLC candlestick format, where each candle's open represents the CVD at the start of the bar and subsequent intra-bar delta changes create the high, low, and close values. This visualization reveals the internal volume flow dynamics within each time period, showing whether buying or selling pressure dominated throughout the bar's formation and exposing intra-bar reversals or sustained directional pressure. Use candle wicks and bodies to identify volume acceptance/rejection at specific CVD levels, similar to how price candles show acceptance/rejection at price levels.
▶ Built-in Alert System: Comprehensive alerts for all display modes including bullish/bearish momentum shifts (CVD crossing signal line), buying/selling pressure detection (histogram mode), and bullish/bearish CVD candle formations. Fully customizable with exchange and timeframe placeholders.
▶ Visual Customization: Choose from 5 color presets (Classic, Aqua, Cosmic, Ember, Neon) or create your own custom color schemes. Optional price bar coloring feature overlays CVD trend colors directly onto your main chart candles, providing instant visual confirmation of volume flow and making divergences immediately apparent. Optional info label with configurable position and size displays current CVD values, data source timeframe, and mode at a glance.
Supply & Demand MTF x3 (Input TF)📦 Supply & Demand MTF x3 (Input TF)
Supply & Demand MTF x3 is a clean and powerful indicator designed to automatically detect and display Supply and Demand zones across multiple timeframes directly on your chart.
It focuses on clarity, flexibility, and control, allowing traders to visualize higher-timeframe institutional zones while trading on any lower timeframe.
🚀 Key Features
✅ Up to 3 independent timeframes
✅ Automatic Supply & Demand zone detection
✅ Swing-based logic (pivot highs & lows)
✅ Non-repainting zones
✅ Automatic zone invalidation
✅ Maximum zone control (keep charts clean)
✅ Fully customizable colors, borders, and visibility
✅ Works on any market and timeframe
🧠 How It Works
The indicator identifies Supply and Demand zones using pivot highs and pivot lows:
Supply Zone
Created from a pivot high
Represents areas where selling pressure previously dominated
Demand Zone
Created from a pivot low
Represents areas where buying pressure previously dominated
Each zone:
Starts at the candle where the swing is confirmed
Extends automatically to the current bar
Is deleted immediately once price invalidates it:
Supply → price closes above the zone
Demand → price closes below the zone
This ensures that only valid and active zones remain on the chart.
⏱ Multi-Timeframe Logic (MTF x3)
You can enable up to 3 different timeframes, each with its own settings.
For example:
TF1 → 15m (execution zones)
TF2 → 1H (intraday structure)
TF3 → 4H / Daily (institutional zones)
Each timeframe is processed independently and displayed on your current chart.
⚙️ Common Settings
These settings apply to all timeframes:
▸ Swing Left / Right Bars
Defines how many candles are used to confirm a swing high or low.
Higher values → stronger, more reliable zones
Lower values → more frequent zones
▸ Minimum Zone Size (%)
Filters out very small zones.
Helps remove noise
Keeps only meaningful price areas
▸ Max Supply / Demand Zones
Limits how many zones can be displayed at the same time.
Oldest zones are removed first
Keeps the chart clean and readable
⏱ Timeframe Settings (TF1 / TF2 / TF3)
Each timeframe has its own dedicated section.
▸ Timeframe
Choose the timeframe used to calculate zones (e.g. 15, 60, 240).
▸ Show Supply / Demand
Enable or disable Supply or Demand zones individually.
▸ Colors
Fully customizable:
Supply fill & border
Demand fill & border
▸ Border Width
Adjust zone visibility based on your chart style.
🎯 Best Use Cases
This indicator works best when used as:
🔹 HTF Supply & Demand map
🔹 Confluence tool for entries
🔹 Support & resistance replacement
🔹 Scalping, intraday, or swing trading
Combine it with:
Market structure
Liquidity concepts
Price action confirmations
Trend filters
🧼 Clean by Design
No repainting
No future leak
No over-drawing
No unnecessary calculations
Only validated zones that matter stay on your chart.
⚠️ Important Notes
Zones are not trade signals
They represent areas of interest, not guaranteed reversals
Always use proper confirmation and risk management
🧩 Summary
Supply & Demand MTF x3 gives you:
✔ Multi-timeframe perspective
✔ Maximum customization
✔ Clean charts
Triple EMA + Stochastic/ADX# Triple EMA + Stochastic/ADX Breakout Indicator
A professional TradingView indicator designed for trend-following and momentum breakout trading. This system uses a hierarchical confirmation process to ensure high-probability entries and robust trend maintenance.
## 🚀 Core Trading Logic: "The Setup Cycle"
This indicator operates on a **Cycle-Based Logic** rather than simple crossovers. A trade cycle is defined as:
1. **The Setup (Priming)**: A Stochastic crossover (K > D for Long, D > K for Short) initiates a "Setup Mode." This is marked by a small dot (Blue for Long, Orange for Short).
2. **The Confirmation (Trend)**: The systems checks for hierarchical EMA alignment (Fast > Medium > Slow for Longs).
3. **The Trigger (Breakout)**: Once the Setup is active and EMAs are aligned, every **Price Breakout** above the previous high (X-period) triggers a continuous **BUY/SELL mark**.
4. **The Exit (Take Profit/Stop)**: The cycle and trade only end when the Fast EMA crosses back over the Medium EMA (EMA 9/21 crossover).
---
## 🛠 Features
### 1. Triple EMA System
* **Hierarchical Alignment**: Requires Fast > Medium > Slow (9, 21, 50 by default) for a confirmed trend direction.
* **Dynamic Trend Background**: Chart background changes color when a full EMA trend is established.
### 2. Dual Filter System (Stochastic & ADX)
* **Stochastic Setup**: Uses smoothed %K and %D to identify the start of momentum cycles.
* **ADX Filter**: Provides a trend-strength baseline. Default threshold is set to 20 to filter out choppy markets.
### 3. Price Breakout Confirmation
* Requires price to break above/below the previous High/Low of the last X bars (default 10).
* Allows for **continuous entries** within a single trend cycle.
### 4. Robust Exit Strategy
* **EMA Crossover Exit**: The primary exit method. Triggers an "EXIT" flag when the trend momentum shifts.
* **ATR Trailing Stop**: A secondary volatility-based stop that moves with the price. Can be set as the absolute exit or used for visual reference.
### 5. Mean Reversion Mode (Optional)
* Identifies overextended price action (percent deviation from EMA2).
* Signals potential "bounce" or "rejection" trades against the trend.
---
## 📊 Dashboard & Visuals
* **🟢 BUY / 🔴 SELL**: Trend continuation breakout signals.
* **🟠 EXIT / 🟣 EXIT**: Trend reversal/exit signals.
* **🔵/🟠 Small Dots**: Setup priming moments.
* **Real-time Dashboard**: Displays current Setup Status, EMA Alignment, Breakout status, ADX strength, and calculated Stop levels.
---
## ⚙️ How to Customize
| Parameter | Recommended Use |
| :--- | :--- |
| **Breakout Lookback** | Lower (3-5) for aggressive scalping, Higher (10-20) for conservative trends. |
| **Filter Mode** | Choose "Stochastic" for momentum or "ADX" for trend strength preference. |
| **ATR Multiplier** | Reduce (1.5) for tighter stops, Increase (3.0) for wider trend following. |
| **Exit ONLY on EMA** | Enable to stay in trades longer; Disable to exit immediately on ATR stop hits. |
---
## 📥 Installation
1. Open your **Pine Editor** in TradingView.
2. Create a new "Indicator."
3. Copy the code from `Triple_EMA_Stochastic_ADX.pine`.
4. Click **Save** and **Add to Chart**.
---
*Developed for Dhan/MCX/Futures and general Asset Trading.*
KCP RSI + EMA Trend [Dr. K. C. Prakash]KCP RSI + EMA Trend
A professional, low-noise momentum indicator built on Volume-Weighted RSI and EMA trend confirmation, designed to filter false signals and capture high-probability trend moves.
Key Highlights (in simple terms):
Volume-Weighted RSI (VWRSI): Gives more importance to high-volume price moves, reducing weak signals.
EMA-14 on RSI: Confirms momentum direction and avoids premature entries.
HTF RSI Filter (Auto): Aligns trades with higher-timeframe trend (5m→15m, 15m→1H).
Strong Anti-False Filters: Uses RSI slope, range detection, and volume strength.
Clear Zones: Only 20 / 80 extreme levels for clean overbought–oversold structure.
Signals:
BUY: RSI crosses above 50 with volume + HTF trend confirmation
SELL: RSI crosses below 50 with volume + HTF trend confirmation
Best Use:
✔ Intraday & scalping (5m / 15m)
✔ Trend-following entries
✔ Avoiding sideways market traps
Ideal for: Traders who want clean, disciplined signals without over-trading.
Gann Sacred Geometry Hexagram Ver 1.2━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔯 GANN SACRED GEOMETRY HEXAGRAM v1.2
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A comprehensive technical analysis tool combining W.D. Gann's sacred geometry principles,
hexagram patterns, and advanced confluence scoring for high-probability trade signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 GANN THEORY BACKGROUND
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
W.D. Gann (1878-1955) believed markets move in geometric patterns and that price
and time must be in balance. His methods incorporated:
- The Square of Nine
- Geometric angles (1x1, 2x1, etc.)
- Sacred geometry and natural law
- Cycle theory and time divisions
- The principle "When time and price square, a change in trend is imminent"
This indicator applies these timeless principles with modern confluence analysis.
SACRED GEOMETRY FOUNDATION:
The hexagram (six-pointed star) is formed by two overlapping equilateral triangles:
- ▲ Upward triangle = Yang energy, bullish forces, expansion
- ▼ Downward triangle = Yin energy, bearish forces, contraction
When overlapped, they create the "Star of David" - representing perfect balance
between opposing market forces. Gann believed this geometry revealed natural
support and resistance zones where price would react.
HEXAGRAM IN MARKETS:
- 6 outer points = Major reversal zones
- Center point = Balance/equilibrium price
- Inner intersections = Secondary support/resistance
- The shape itself creates "harmonic" price levels
GANN'S SQUARE PHILOSOPHY:
"When time and price square, a change in trend is imminent."
- W.D. Gann
This indicator applies the "squaring" concept:
1. SPATIAL SQUARE: Grid cells are perfect squares in price-time space
2. TEMPORAL SQUARE: Time divisions (1/4, 1/2, 3/4) create cycle points
3. PRICE SQUARE: Price divisions (25%, 50%, 75%) mirror time divisions
4. GEOMETRIC SQUARE: All geometry radiates from perfect square centers
When price reaches a corner or edge of a square at a time cycle point,
the "squaring" of price and time creates a reversal probability zone.
PHI IN GANN GEOMETRY:
The Golden Ratio appears throughout natural phenomena and market structure.
This script uses φ in two primary ways:
1. INNER TRIANGLE SCALING:
- Outer triangles span the full cell (100%)
- Inner triangles scaled by φ⁻¹ (0.618 or 61.8%)
- This creates Fibonacci retracement levels geometrically
2. HARMONIC RESONANCE:
- φ ratio divides price space into natural harmony
- Markets tend to pause/reverse at these φ-scaled levels
- Combines Fibonacci analysis with Gann geometry
MATHEMATICAL RELATIONSHIP:
Inner Triangle Height = Outer Height × 0.618
Inner Triangle Width = Outer Width × 0.618
These create the 61.8% retracement levels automatically
within each grid cell's geometry.
GANN'S COMPLETE ANGLE SYSTEM:
Gann identified 9 primary angles that price follows. Each represents a different
relationship between price movement and time passage:
╔════════════════════════════════════════════════════════════════╗
║ ANGLE │ RATIO │ DEGREES │ MEANING ║
╠════════════════════════════════════════════════════════════════╣
║ 1x8 │ 1:8 │ 7.125° │ Very slow trend (gentle) ║
║ 1x4 │ 1:4 │ 14.036° │ Slow trend ║
║ 1x3 │ 1:3 │ 18.435° │ Moderate-slow trend ║
║ 1x2 │ 1:2 │ 26.565° │ Moderate trend ║
║ 1x1 │ 1:1 │ 45.000° │ MASTER ANGLE (most important) ║
║ 2x1 │ 2:1 │ 63.435° │ Strong trend ║
║ 3x1 │ 3:1 │ 71.565° │ Very strong trend ║
║ 4x1 │ 4:1 │ 75.964° │ Extreme trend ║
║ 8x1 │ 8:1 │ 82.875° │ Parabolic trend (unsustainable)║
╚════════════════════════════════════════════════════════════════╝
THE 1x1 ANGLE - THE MASTER:
- Most important angle in Gann theory
- Represents perfect balance: 1 unit price = 1 unit time
- When price is ABOVE 1x1 = Bullish control
- When price is BELOW 1x1 = Bearish control
- Crossing 1x1 = Major trend change signal
ANGLE FANS:
- From any pivot point, all 9 angles radiate outward
- Creates a "fan" of dynamic support/resistance
- Steeper angles (4x1, 8x1) = strong momentum resistance
- Gentler angles (1x4, 1x8) = weak support in downtrends
THE SACRED DIVISIONS OF TIME:
Gann divided all cycles into 8 equal parts, based on ancient geometry
and astrological principles:
CYCLE DIVISIONS (8ths):
┌─────────────────────────────────────────────────────┐
│ 1/8 = 12.5% │ First minor turn point │
│ 2/8 = 25.0% │ First major turn (Cardinal) │
│ 3/8 = 37.5% │ Second minor turn │
│ 4/8 = 50.0% │ MID-CYCLE (most powerful) │
│ 5/8 = 62.5% │ Third minor turn │
│ 6/8 = 75.0% │ Second major turn (Cardinal) │
│ 7/8 = 87.5% │ Fourth minor turn │
│ 8/8 = 100.0% │ CYCLE COMPLETION (reversal zone) │
└─────────────────────────────────────────────────────┘
WHY EIGHTHS?
- 8 is the number of balance in sacred geometry
- Octave divisions create harmonic resonance
- 360° circle ÷ 8 = 45° (the 1x1 master angle)
- Natural cycles show 8-fold symmetry
IN THIS SCRIPT:
When current time position is within 8% of any eighth division,
the "Gann 8ths Timing" factor activates, adding confluence points.
THE CARDINAL CROSS SYSTEM:
The Cardinal Cross divides any square into four equal quadrants,
creating a cross pattern:
100% ●━━━━━━━━━━━━━●
┃ ↑ ┃
75% ┃ SELL ZONE ┃ ← Resistance quadrant
┃ ↑ ┃
50% ●━━━━━●━━━━━━● ← EQUILIBRIUM (most important)
┃ ↓ ┃
25% ┃ BUY ZONE ┃ ← Support quadrant
┃ ↓ ┃
0% ●━━━━━━━━━━━━━●
PRICE LEVELS:
- 0% = Bottom support (grid cell low)
- 25% = Lower mid-level support
- 50% = PERFECT BALANCE - most powerful level
- 75% = Upper mid-level resistance
- 100% = Top resistance (grid cell high)
TIME DIVISIONS:
- 0% = Cycle start (grid cell left edge)
- 25% = First quarter turn
- 50% = Mid-cycle (most powerful timing)
- 75% = Third quarter turn
- 100% = Cycle completion (grid cell right edge)
CONFLUENCE MAGIC:
When BOTH price AND time align at cardinal points simultaneously:
Example: Price at 50% level + Time at 50% of cycle = Maximum power
This is the "squaring" Gann referred to.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Dynamic Grid System (1x1 to 7x7) - Automatically constructed from swing high to swing low
✅ Sacred Geometry Hexagrams - Overlapping triangles creating Star of David pattern
✅ Golden Ratio (φ = 1.618) Inner Triangles - Fibonacci harmony in geometry
✅ 9 Complete Gann Angles - 1x1, 2x1, 1x2, 3x1, 1x3, 4x1, 1x4, 8x1, 1x8
✅ Cardinal Cross Levels - 0%, 25%, 50%, 75%, 100% price divisions
✅ Gann 8ths Timing Cycles - 1/8, 1/4, 3/8, 1/2, 5/8, 3/4, 7/8 time divisions
✅ Price-Time Square Balance - Gann's principle of harmonious price-time relationship
✅ Advanced Confluence Scoring - Multi-factor signal validation (8-30 score range)
✅ Optimized Geometry Display - Shows full detail only near current price (reduces clutter)
✅ Customizable Visual Themes - Full color and thickness control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📍 GRID CONSTRUCTION:
The indicator identifies the most recent significant swing high-to-low movement using
configurable pivot periods (default: 88 bars). This creates the base "square" which is
then replicated in a grid pattern both vertically (price) and horizontally (time).
📐 SACRED GEOMETRY:
Each grid cell contains:
- Outer hexagram (Star of David) formed by two overlapping triangles
- Inner φ-ratio triangles scaled by the Golden Ratio
- Gann angles radiating from the center point
- Cardinal cross levels dividing price into quarters
🔍 CONFLUENCE SCORING SYSTEM:
Signals are generated when multiple Gann principles align:
1. Cardinal Cross Levels (0-6 points) - Price at key quarter divisions
2. Gann Angle Touches (0-5 points) - Price touching dynamic support/resistance angles
3. Angle Clustering (0-6 points) - Multiple angles converging = strong zone
4. Gann 8ths Timing (0-3 points) - At critical time cycle points
5. Price-Time Square (0-4 points) - Balanced price/time movement
6. Trend Alignment (0-3 points) - Signal direction matches trend
7. Grid Boundary Timing (0-3 points) - Near cell edges = reversal zones
8. φ Triangle Touches (0-2 points) - Golden ratio support/resistance
9. Reversal Patterns (0-2 points) - Wick rejections confirming reversal
Minimum confluence score of 15 required for signal (adjustable 8-30).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 For Daily Charts (Swing Trading):
- Gann Number: 88
- Grid Size: 4x4
- Confluence Score: 15
- Geometry Range: 5
- Trend Filter: ON
📊 For 4H Charts (Intraday):
- Gann Number: 44
- Grid Size: 3x3
- Confluence Score: 12-13
- Geometry Range: 3-4
- Trend Filter: ON
📊 For 15M Charts (Scalping):
- Gann Number: 22
- Grid Size: 2x2
- Confluence Score: 10-12
- Geometry Range: 2-3
- Allow Counter-Trend: Consider enabling
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 BEST PRACTICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Use higher confluence scores (15+) for higher probability trades
✓ Combine with volume analysis for confirmation
✓ Respect trend filter - signals with trend are stronger
✓ Watch for signals at grid boundaries (time cycle completions)
✓ Higher scores (20+) indicate exceptional setups
✓ Use alerts to catch signals in real-time
✓ Works best on liquid markets with clear swings
EXAMPLE 1: Strong Buy Signal (Score: 18)
✓ Price touched 50% level (6 pts)
✓ 1x1 Gann angle support (5 pts)
✓ At Gann 8th cycle point (3 pts)
✓ Price-Time squared (4 pts)
= High probability long entry
EXAMPLE 2: Medium Sell Signal (Score: 15)
✓ Price at 75% level (4 pts)
✓ 2x1 angle resistance (3 pts)
✓ Trend aligned downward (3 pts)
✓ Near grid boundary (3 pts)
✓ Bearish wick rejection (2 pts)
= Valid short entry
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 CUSTOMIZATION OPTIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Structure: Gann Number (11, 22, 44, 88, 176, 352)
- Grid: Size from 1x1 to 7x7
- Geometry: Toggle squares, triangles, angles, levels
- Optimization: Show geometry only near price (performance boost)
- Thickness: All line widths adjustable (1-5)
- Colors: Full color customization for all elements
- Scoring: Adjust all tolerance and threshold parameters
- Timing: Enable/disable Gann 8ths, Price-Time Square
- Filters: Trend filter, boundary requirement, counter-trend signals
- Display: 4 signal styles (Labels, Diamonds, Circles, Stars)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- This indicator is for educational purposes
- Not financial advice - always do your own research
- Past performance does not guarantee future results
- Use proper risk management and position sizing
- Combine with other analysis methods for best results
- Grid redraws when new swing high/low forms
- Signals appear in real-time based on confluence scoring
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📞 SUPPORT & UPDATES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Follow for updates and improvements. Feedback welcome!
Version 1.2 - January 2025
- Optimized geometry rendering
- Enhanced confluence scoring
- Improved visual clarity
- Performance optimizations
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
First 15 min of Each Hour First 15 Minutes of Each Hour – Background Highlighter
This indicator visually highlights the first 15 minutes of every hour by coloring the chart background. It is designed to help traders quickly identify key intraday time windows often associated with increased volatility, session opens, or strategy-specific execution periods.
The highlight automatically repeats every hour and adapts to the chart’s timeframe and timezone. It works best on intraday charts (1m, 3m, 5m, 15m), where precise time-based structure is important.
Key Features:
Automatically marks minutes 00–14 of every hour
Clean, non-intrusive background shading
Fully customizable color and transparency
No future bar repainting
Ideal for scalping, session-based, and time-window strategies
Use Cases:
Identifying opening volatility each hour
Time-based entries and confirmations
Liquidity sweep or breakout models
Algo execution timing visualization
This indicator does not generate trade signals. It is a visual time-management tool intended to improve clarity and discipline in intraday trading.
15min & 5min Scalping RibbonOpen-source replication of Annii's Ribbon:
Not quite 100% pixel perfect but very close, with the same functionality for detecting possible trend changes.
Ribbon Scalp Strategy
TF: 5-15 mins
When to enter long:
Wait for whole ribbon to turn green then enter long
Once in the trade watch the outer 3 lines. If they start to spread away from the others, that’s a sign that a pullback is coming so ether exit or move your stop into profit to protect it
When a pullback happens, watch the yellow band for a bounce. If it bounces off, stay in trade. Cross below, could be reversal sign so get out. When moving stops throughout the trade, use the yellow band as a guide to know where to move stop too, placing it just below the line.
There are two yellow MAs. When you start your session, look left to see which one has been acting as support for the past few hours and go with that one.
As long as it stays above the yellow, you can stay in the trade. Again exit, when outer bands start to widen.
Short - everything above in reverse.
What not to do:
Do not try to pick a reversal early when you start to see one or two bands turn red - this does not mean a reversal is coming! It could just be a pullback before continuing long.
Weekly RSI - EMA BiasWEEKLY RSI - EMA BIAS
This indicator provides a rule-based weekly directional bias framework built using RSI and EMA conditions.
It is designed for traders who want a clear, structured view of bullish or bearish bias for the week, rather than frequent intraday signals.
The script focuses on bias identification and invalidation, not trade execution.
Core Concept
The indicator evaluates market conditions using:
EMA to define trend direction
RSI thresholds to confirm momentum strength
Weekly time structure to reduce noise and overtrading
Based on these inputs, the script identifies whether the market is in a Bullish, Bearish, or Neutral state for the current week.
How the Bias Works
Bias Initiation
A weekly bias can only begin on or after the selected “Bias Start Day”
A Bullish bias is established when:
Price is above the EMA
RSI is above the bullish threshold
A Bearish bias is established when:
Price is below the EMA
RSI is below the bearish threshold
Only one bias can be active at a time.
One Flip Per Week
Once a bias is active, the script allows at most one flip per week
A flip occurs when the opposite bias conditions are met
After a flip, the bias remains fixed until weekly exit
This rule is intentional and helps prevent overreaction to short-term volatility.
Bias Invalidation (Weekly Exit)
The active bias is invalidated at the configured “Bias End Day”
A holiday-safe mechanism ensures the bias is cleared even if the exit day is skipped due to a market holiday
After invalidation, the bias resets to neutral and waits for the next week
Visual Aids
Bullish / Bearish labels mark bias initiation and flips
Background highlights visually indicate:
Bias initiation
Weekly bias end
These visuals are designed to make weekly structure immediately clear on the chart
Intended Use
This script is intended to be used as:
A weekly directional bias guide
A decision-support layer for positional trading
A framework to align discretionary or rule-based strategies with higher-timeframe direction
It is not designed for intraday scalping or high-frequency trading.
Important Notes
Signals are evaluated on closed candles
Bias is evaluated on any timeframe, but the logic is weekly by design
Lower timeframes may produce more noise and are not recommended for interpretation
DISCLAIMER:
This script is provided for educational and informational purposes only.
It does not constitute investment or trading advice.
Users are responsible for their own trading decisions and risk management.
Fibonacci Entry Zone [OTE] (@ath.snipr)🇬🇧 English Description
📌 Fibonacci Entry Zone – @ath.snipr
Fibonacci Entry Zone is an indicator designed to automatically detect market structure, identify Change of Character (CHoCH), and project Optimal Trade Entry (OTE) zones using Fibonacci retracements.
It is suitable for scalping, day trading, and swing trading across all markets (Forex, indices, crypto, commodities).
🎯 Indicator Purpose
This indicator helps traders to:
✔ Detect significant swing highs and lows
✔ Identify structure shifts (CHoCH)
✔ Automatically draw Fibonacci retracement levels
✔ Highlight the Golden Zone (OTE)
✔ Dynamically track new swings in real-time
The goal is to patiently wait for price to retrace into a high-probability value area instead of chasing price.
🧠 How It Works
1️⃣ Market Structure Detection
The algorithm detects price pivots to identify:
📈 Bullish structure: Higher High / Higher Low
📉 Bearish structure: Lower High / Lower Low
When a structure shift occurs, a CHoCH label appears and a new Fibonacci projection is automatically created.
2️⃣ Fibonacci OTE Levels
Fibonacci levels are calculated between the latest swing high and swing low.
Default levels:
0.50
0.618
These represent the Optimal Trade Entry (OTE) zone where price statistically reacts more often.
The Golden Zone can be filled for better visualization.
3️⃣ Dynamic Updates
When Swing Tracker is enabled:
Fibonacci levels automatically update as new swings form.
The projection always stays aligned with the current market structure.
4️⃣ Visual Elements
The indicator displays:
✔ CHoCH labels
✔ Break of Structure lines
✔ Swing trend line (dotted)
✔ Swing price labels
✔ Extended Fibonacci levels
Everything is fully customizable.
🛠️ Key Settings
Structure
Structure Period – Swing sensitivity (higher = stronger structure).
Bullish / Bearish – Enable bullish or bearish structures.
BoS Width – Structure line thickness.
Fibonacci Mode
Swing Tracker – Auto-update Fibonacci levels.
Swing Line – Show swing connection line.
Swing Labels – Show swing price labels.
Fibonacci
Extend – Extend levels to current price.
Previous – Keep previous levels.
Fill Golden Zone – Highlight OTE zone.
Levels – Customize Fibonacci levels.
📈 How to Trade with It (example)
▶ Bullish Scenario
A bullish CHoCH appears.
Price impulsively moves up.
Wait for a retracement into the Golden Zone (0.5 – 0.618).
Confirm with your strategy (price action, liquidity, SMT, etc.).
Enter long with stop below the last swing low.
▶ Bearish Scenario
Same logic in reverse.
⚠️ Disclaimer
This indicator is a decision-support tool only.
It does not guarantee profits and must be used with proper risk management and personal confirmation.
Super Regression Trend█ OVERVIEW
Super Regression Trend is an advanced trend-following indicator that combines classic linear regression with a SuperTrend mechanism based on RMSE (Root Mean Square Error). Instead of traditional ATR, it uses price deviations from the regression line, allowing for highly precise adaptation to current market volatility. The indicator is clean, dynamic, and equipped with optional risk management tools — automatic Take Profit and Stop Loss levels displayed after each trend reversal signal. Perfect for traders seeking solid trend confirmation with built-in position management support.
█ CONCEPT
The indicator was created to combine the advantages of linear regression (smooth trend tracking) with the reliability of the SuperTrend mechanism (trailing stop).
The key element is calculating RMSE based on deviations of the source price from the regression line over a specified period. The band around the regression (RMSE × multiplier) creates dynamic, trailing upper and lower levels. The trend changes only after price closes beyond this band — this allows the indicator to react quickly to new impulses while effectively filtering noise and false breakouts in consolidation.
█ FEATURES
Data source:
- Source price (default: close)
- Regression Length
Calculations:
- Linear regression line (ta.linreg)
- RMSE of deviations within the length window
- Upper and lower bands: regression ± (RMSE × Multiplier)
Trailing mechanism:
Levels are “pulled” in the direction opposite to the trend (minimized/maximized)
Trend change logic:
- Down → Up: close > upper band
- Up → Down: close < lower band
Visualization:
- SuperTrend line with breaks at reversal points
- Optional gradient fill between SuperTrend line and regression
- Optional bar coloring based on current trend
- “Buy” labels (green upward arrow) and “Sell” labels (red downward arrow) only on confirmed trend changes
Risk management:
- Optional automatic TP1/TP2/TP3 and SL levels after each signal
Two calculation modes:
- Candle Multiplier – multiplier of average candle body size (SMA(|open–close|))
- Percentage – percentage of the signal close price
Levels drawn as short horizontal lines
Persistent table in the top-right corner with current TP/SL values
Alerts:
- Buy Signal – triggers only on confirmed uptrend change
- Sell Signal – triggers only on confirmed downtrend change
█ HOW TO USE
Add to chart → paste the code in Pine Editor or search for “Super Regression Trend”.
Main settings:
- Regression Length → default 20 (regression window length)
- RMSE Multiplier → default 2 (key sensitivity parameter)
- Show SuperTrend Line / Fill to Regression / Color Bars → visual options
- Show TP/SL Levels → enable/disable risk management tools
- TP/SL Calculation Mode → “Candle Multiplier” or “Percentage”
- Multipliers/percentages for TP1–TP3 and SL → fully customizable
Interpretation:
- Green line and shading = uptrend
- Red line and shading = downtrend
- Higher RMSE Multiplier = fewer signals, higher quality
- Lower Multiplier = faster reaction, more signals (aggressive mode)
█ APPLICATIONS
Excellent for:
- Classic trend-following (enter with trend, exit on reversal)
- Momentum and breakout strategies
- Automated position management with optional TP/SL levels
Best combined with:
- Support/resistance levels, Pivot Points, psychological round numbers
- Confirmation from oscillators (RSI, Stochastic, MACD)
- Volume or volume profile analysis
Style adaptation:
- Scalping / daytrading → shorter regression length (10–20) and lower Multiplier (1.5–2.0)
- Swing / longer-term positions → longer regression (30–50) and higher Multiplier (2.0–3.0)
█ NOTES
- Works on all markets and timeframes
- Effectiveness depends on matching the RMSE Multiplier to the instrument’s volatility
- Higher Multiplier and Length values = fewer, but significantly more reliable signals
HARSI RSI Shadow SHORT Strategy M1HARSI – Heikin Ashi RSI Shadow Indicator
HARSI (Heikin Ashi RSI Shadow) is a momentum-based oscillator that combines the concept of Heikin Ashi smoothing with the Relative Strength Index (RSI) to reduce market noise and highlight short-term trend strength.
Instead of plotting traditional price candles, HARSI transforms RSI values into a zero-centered oscillator (RSI − 50), allowing traders to clearly identify bullish and bearish momentum around the median line. The smoothing mechanism inspired by Heikin Ashi candles helps filter out false signals, making the indicator especially effective on lower timeframes such as M1.
The RSI Shadow reacts quickly to momentum shifts while maintaining smooth transitions, which makes it suitable for scalping and intraday trading. Key threshold levels (such as ±20 and ±30) can be used to detect momentum expansion, exhaustion, and potential continuation setups.






















