RAINBOW AVERAGES - INDICATOR - (AS) - 1/3
-INTRODUCTION:
This is the first of three scripts I intend to publish using rainbow indicators. This script serves as a groundwork for the other two. It is a RAINBOW MOVING AVERAGES indicator primarily designed for trend detection. The upcoming script will also be an indicator but with overlay=false (below the chart, not on it) and will utilize RAINBOW BANDS and RAINBOW OSCILLATOR. The third script will be a strategy combining all of them.
RAINBOW moving averages can be used in various ways, but this script is mainly intended for trend analysis. It is meant to be used with overlay=true, but if the user wishes, it can be viewed below the chart. To achieve this, you need to change the code from overlay=true to false and turn off the first switch that plots the rainbow on the chart (or simply move the indicator to a new pane below). By doing this, you will be able to see how all four conditions used to detect trends work on the chart. But let's not get ahead of ourselves.
-WHAT IS IT:
In its simplest form, this indicator uses 10 moving averages colored like a rainbow. The calculation is as follows:
MA0: This is the main moving average and can be defined with the type (SMA, EMA, RMA, WMA, SINE), length, and price source. However, the second moving average (MA1) is calculated using MA0 as its source, MA2 uses MA1 as the data source, and so on, until the last one, MA9. Hence, there are 10 moving averages. The first moving average is special as all the others derive from it. This indicator has many potential uses, such as entry/exit signals, volatility indication, and stop-loss placement, but for now, we will focus on trend detection.
-TREND DETECTION:
The indicator offers four different background color options based on the user's preference:
0-NONE: No background color is applied as no trend detection tools is being used (boring)
1-CHANGE: The background color is determined by summing the changes of all 10 moving averages (from two bars). If the sum is positive and not falling, the background color is GREEN. If the sum is negative and not rising, the background color is RED. From early testing, it works well for the beginning of a movement but not so much for a lasting trend.
2-RAINBW: The background color is green when all the moving averages are in ascending order, indicating a bullish trend. It is red when all the moving averages are in descending order, indicating a bearish trend. For example, if MA1>MA2>MA3>MA4..., the background color is green. If MA1 threshold, and red indicates width < -threshold.
4-DIRECT: The background color is determined by counting the number of moving averages that are either above or below the input source. If the specified number of moving averages is above the source, the background color is green. If the specified number of moving averages is below the source, the background color is red. If all ten MAs are below the price source, the indicator will show 10, and if all ten MAs are above, it will show -10. The specific value will be set later in the settings (same for 3-TSHOLD variant). This method works well for lasting trends.
Note: If the indicator is turned into a below-chart version, all four color options can be seen as separate indicators.
-PARAMETERS - SETTINGS:
The first line is an on/off switch to plot the skittles indicator (and some info in the tooltip). The second line has already been discussed, which is the background color and the selection of the source (only used for MA0!).
The line "MA1: TYP/LEN" is where we define the parameters of MA0 (important). We choose from the types of moving averages (SMA, EMA, RMA, WMA, SINE) and set the length.
Important Note: It says MA1, but it should be MA0!.
The next line defines whether we want to smooth MA1 (which is actually MA0) and the period for smoothing. When smoothing is turned on, MA0 will be smoothed using a 3-pole super smoother. It's worth noting that although this only applies to MA0, as the other MAs are derived from it, they will also be smoothed.
In the line below, we define the type and length of MAs for MA2 (and other MAs except MA0). The same type and length are used for MA1 to MA9. It's important to remember that these values should be smaller. For example, if we set 55, it means that MA1 is the average of 55 periods of MA0, MA2 will be 55 periods of MA1, and so on. I encourage trying different combinations of MA types as it can be easily adjusted for ur type of trading. RMA looks quirky.
Moving on to the last line, we define some inputs for the background color:
TSH: The threshold value when using 3-TSHOLD-BGC. It's a good idea to change the chart to a pane below for easier adjustment. The default values are based on EURUSD-5M.
BG_DIR: The value that must be crossed or equal to the MA score if using 4-DIRECT-BGC. There are 10 MAs, so the maximum value is also 10. For example, if you set it to 9, it means that at least 9 MAs must be below/above the price for the script to detect a trend. Higher values are recommended as most of the time, this indicator oscillates either around the maximum or minimum value.
-SUMMARY OF SETTINGS:
L1 - PLOT MAs and general info tooltip
L2 - Select the source for MA0 and type of trend detection.
L3 - Set the type and length of MA0 (important).
L4 - Turn smoothing on/off for MA0 and set the period for super smoothing.
L5 - Set the type and length for the rest of the MAs.
L6 - Set values if using 4-DIRECT or 3-TSHOLD for the trend detection.
-OTHERS:
To see trend indicators, you need to turn off the plotting of MAs (first line), and then choose the variant you want for the background color. This will plot it on the chart below.
Keep in mind that M1 int settings stands for MA0 and MA2 for all of the 9 MAs left.
Yes, it may seem more complicated than it actually is. In a nutshell, these are 10 MAs, and each one after MA0 uses the previous one as its source. Plus few conditions for range detection. rest is mainly plots and colors.
There are tooltips to help you with the parameters.
I hope this will be useful to someone. If you have any ideas, feedback, or spot errors in the code, LET ME KNOW.
Stay tuned for the remaining two scripts using skittles indicators and check out my other scripts.
-ALSO:
I'm always looking for ideas for interesting indicators and strategies that I could code, so if you don't know Pinescript, just message me, and I would be glad to write your own indicator/strategy for free, obviously.
-----May the force of the market be with you, and until we meet again,
Trendanalyisis
Higher Fibonacci EMAOverall image:
If the closing price is higher than the three Fibonacci EMAs (uptrend):
Thanks to @ZenAndTheArtOfTrading and his indicator "Higher Timeframe EMA", URL =
This is a trend-discriminating indicator that uses 3 EMAs.
The Williams Alligator is the underlying philosophy, and we have applied it to capture the larger trend.
It is set up for the current time frame + 2 higher time frames.
One of the upper time legs has a daily EMA length of 13 Fibonacci numbers.
The top-level time leg has a weekly EMA with a length of 5 Fibonacci.
If the current closing price of the ticker leg is higher than these three EMAs, the bar color will be green. If it is lower, it will be red. If it is neither, it will be gray.
If the bar color is green, it suggests that the trend is upward. If it is red, you can consider entering short. If it is gray, it is best not to enter anything.
Moving Average-TREND POWER v2.0-(AS)HELLO:
-This indicator is a waaaay simpler version of my other script - Moving Average-TREND POWER v1.1-(AS).
HOW DOES IT WORK:
-Script counts number of bars below or above selected Moving Average (u can se them by turning PLOT BARS on). Then multiplies number of bars by 0.01 and adds previous value. So in the uptrend indicator will be growing faster with every bar when price is above MA. When MA crosess price Value goes to zero so it shows when the market is ranging.
If Cross happens when number of bars is higher than Upper threshold or below Lower threshold indicator will go back to zero only if MA crosses with high in UPtrend and low in DNtrend. If cross happens inside THSs Value will be zero when MA crosses with any type of price source like for example (close,high,low,ohlc4,hl etc.....).This helps to get more crosess in side trend and less resets during a visible trend
HOW TO SET:
Just select what type of MA you want to use and Length. Then based on your preference set values of THSs'
OTHER INFORMATIONS:
-Script was created and tested on EURUSD 5M.
-For bigger trends choose slowerMAs and bigger periods and the other way around for short trends (FasterMAs/shorter periods)
-Below script code you can find not used formulas for calculating indicator value(thanks chat GPT), If you know some pinescript I encourage you to try try them or maybe bulid better ones. Script uses most basic one.
-Pls give me some feedback/ideas to improve and check out first version. Its way more complicated for no real reason but still worth to take a look'
-Also let me know if you find some logical errors in the code.
Enjoy and till we meet again.
Moving Average - TREND POWER v1.1- (AS)0)NOTE:
This is first version of this indicator. It's way more complicated than it should be. Check out Moving Average-TREND POWER v2.1-(AS), its waaaaay less complicated and might be better.Enjoy...
1)INTRODUCTION/MAIN IDEA:
In simpliest form this script is a trend indicator that rises if Moving average if below price or falling if above and going back to zero if there is a crossover with a price. To use this indicator you will have to adjust settings of MAs and choose conditions for calculation.
While using the indicator we might have to define CROSS types or which MAs to use. List of what cross types are defined in the script and Conditiones to choose from.The list will be below.
2) COMPOSITION:
-MA1 can be defined by user in settings, possible types: SMA, EMA, RMA, HMA, TEMA, DEMA, LSMA, WMA.
-MA2 is always ALMA
3) OVERLAY:
Default is false but if you want to see MA1/2 on chart you can change code to true and then turn on overlay in settings. Most plot settings are avalible only in OV=false.
if OV=true possible plots ->MA1/2, plotshape when choosen cross type
if OV=false -> main indicator,TSHs,Cross counter
4)PRESETS :
Indicator has three modes that can be selected in settings. First two are presets and do not require selecting conditions as they set be default.
-SIMPLE - most basic
-ABSOLUTE - shows only positive values when market is trending or zero when in range
-CUSTOM - main and the most advanced form that will require setting conditions to use in calculating trend
4.1)SIMPLE – this is the most basic form of conditions that uses only First MA. If MA1 is below selected source (High/Low(High for Uptrend and Low for DNtrend or OHLC4) on every bar value rises by 0.02. if it above Low or OHLC4 it falls by 0.02 with every bar. If there is a cross of MA with price value is zero. This preset uses CROSS_1_ULT(list of all cross types below)
4.2) ABSOLUTE – does not show direction of the trend unlike others and uses both MA1 and MA2. Uses CROSS type 123_ULT
4.3) CUSTOM – here we define conditions manually. This mode is defined in parts (5-8 of description)
5)SETTINGS:
SOURCE/OVERLAY(line1) – select source of calculation form MA1/MA2, select for overlay true (look point 3)
TRESHOLDS(line2). – set upper and lower THS, turn TSHs on/off
MA1(line3) – Length/type of MA/Offset(only if MA type is LSM)
MA2(line4) – length/offset/sigma -(remember to set ma in the way that in Uptrend MA2MA1 in DNtrend)
Use faster MA types for short term trends and slower types / bigger periods for longer term trends, defval MA1/2 settings
are pretty much random so using them is not recomended.
CROSSshape(line5) – choose which cross type you want to plot on chart(only in OV=true) or what type you want to use in counting via for loops,
CROSScount(line6) – set lookback for type of cross choosen above
BOOLs in lines 5 and 6 - plotshape if OV=true/plot CROSScount histogram (if OV=false)
Lines 7 and 8 – PRESET we want to use /SRC for calculation of indicator/are conditions described below/which MAs to use/Condition for
reducing value t 0 - (if PRESET is ABSOLUTE or SIMPLE only SRC should be set(Line 8 does not matter if not CUSTOM))
5)SOURCE for CONDS:
Here you can choose between H/L and OHLC. If H/L value grow when MAlow. If OHLC MAOHLC. H/L is set by default and recommended. This can be selected for all presets not only CUSTOM
6)CROSS types LIST:
“1 means MA1, 2 is MA2 and 3 I cross of MA1/MA2. L stands for low and H for high so for example 2H means cross of MA2 and high”
NAME -DEFINITION Number of possible crosses
1L - cross of MA1 and low 1
1H - cross of MA1 and high 1
1HL - cross of MA1 and low or MA1 and high 2 -1L/1H
2L - cross of MA2 and low 1
2H - cross of MA2 and high 1
2HL - cross of MA2 and low or MA1 and high 2 -2L/2H
12L - cross of MA1 and low or MA2 and low 2 -1L/2L
12H - cross of MA1 and high or MA2 and high 2 -1H/2H
12HL - MA1/2 and high/low 4 -1H/1L/2H/2L
3 -cross of MA1 and MA2 1
123HL -crosses from 12HL or 3 5 -12HL/3
1_ULT - cross of MA1 with any of price sources(close,low,high,ohlc4 etc…)
2_ULT - cross of MA2 with any of price sources(close,low,high,ohlc4 etc…)
123_ULT – all crosses possible of MA1/2 (all of the above so a lot)
7)CRS CONDS:
“conditions to reduce value back to zero”
>/< - 0 if indicator shows Uptrend and there’s a cross with high of selected MA or 0 if in DNtrend and cross with low. Better for UP/DN trend detection
ALL – 0 if cross of MA with high or low no matter the trend, better for detecting consolidation
ULT – if any cross of selected MA, most crosses so goes to 0 most often
8)MA selection and CONDS:
-MA1: only MA1 is used,if MA1 below price value grows and the other way around
MA1price =-0.02
-MA2 – only MA2 is used, same conditions as MA1 but using MA2
MA2price =-0.02
-BOTH – MA1 and MA2 used, grows when MA1 if below, grows faster if MA1 and MA2 are below and fastest when MA1 and MA2 are below and MA2price=-0.02
-MA1 and MA2 >price=-0.03
-MA1 and MA2 ?price and MA2>MA1=-0.04
9)CONDITIONS SELECTION SUMMARRY:
So when CUSTOM we choose :
1)SOURCE – H/L or OHLC
2)MAs – MA1/MA2/BOTH
3)CRS CONDS (>/<,ALL,ULT)
So for example...
if we take MA1 and ALL value will go to zero if 1HL
if MA1 and >/< - 0 if 1L or 1H (depending if value is positive or negative).(1L or 1H)
If ALL and BOTH zero when 12HL
If BOTH and ULT value goes back to zero if Theres any cross of MA1/MA2 with price or cross of MA1 and MA2.(123_ULT)
If >/< and BOTH – 0 if 12L in DNtrend or 12H if UPtrend
10) OTHERS
-script was created on EURUSD 5M and wasn't tested on different markets
-default values of MA1/MA2 aren't optimalized so do not
-There might be a logical error in the script so let me know if you find it (most probably in 'BOTH')
-thanks to @AlifeToMake for help
-if you have any ideas to improve let me know
-there are also tooltips to help
Price Action and market structure [Tcs] | PAThis indicator shows in real time the clearest and most complete vision of the price market structure, without considering volumes.
It has been developed mainly to identify price retracements in order to find the best entries in the market, but it include also other features which can be helpful for traders.
The indicator detects and highlight on the chart the market movement in multiple ways, including swing high, swing lows, the break of structure (BoS), change of character (CoCh), possible retracement movement, trend-lines generated through pivots, fibonacci and quarters theory levels based on previous pivot and daily, weekly and monthly highs and lows.
It can be set up on two different pivots look-back, one faster and one slower, to simplify the development of strategies for traders.
A longer look-back can detect a "slower" and less noisy structure, which can be more useful to detect massive retracements, while a shorter look-back can be useful to detect faster market moves, perfect for scalpers and to develop small price movement strategies.
Indicator features:
- Trend detection highlighted with colors - candles are colored in four different colors, and it's possible to choose if detect the fast and slow trend:
• Bullish move after structure break – green
• Bullish retracements – gray
• Bearish move after structure break – purple
• Bearish retracements – white
In this way traders can have a realtime vision of when the market is retracing in order to find better entries than entry immediately on a break of structure. It can be integrated with order blocks, ema or others indicators which can be helpful as support or resistance.
- Pivots and structure labels - in order to identify immediately if the trend is bullish, bearish or is changing direction:
• BoS + and BoS - are the bullish and bearish break of structure, respectively, and are colored to indicate a slower look-back, in gray to indicate a faster pivot look-back
• CoCh + and CoCh - are the bullish and bearish change of characters, respectively, and are colored to indicate a slower look-back.
• HH, HL, LL, and LH indicate the pivots of the trend. Al the pivots appear just when the pivots, based on fast or slow pivot look-back are confirmed
- Zigzag - The zigzag line helps to remove market noise and read the market structure in a simpler way.
• It's possible to select the zigzag line based on the slow or fast trend.
• Fast pivot look-back
•Slow pivot look-back
- Quarters theory and Fibonacci retracement:
• It creates a retracement that can be based on the fast or slow trend and small or big market move.
• The retracement is both bullish and bearish and includes the major Fibonacci levels and the most valuable areas from the quarters theory of market retracement.
• This helps to detect good entry points.
- Support and resistance, Daily, weekly, and monthly high, lows - just to heave a more clear view of important levels:
• It plots the highest and lowest pivot points based on the selected look-back.
• It plots the highs and lows of the day, week, and month.
- Trendlines:
• It plots the trend-lines based on past pivots.
• Here as well, it is possible to choose between fast and slow trend pivot look-back.
It's important to highlight that the indicator remarks on all facets of pure price action, not the smart money concept or liquidity areas.
Please note that this indicator is for educational purposes only and should not be used for trading without further testing and analysis.
Divergence IndicatorDescription:
The Divergence Indicator (DI) is a powerful technical analysis tool designed to identify potential bullish and bearish signals based on multiple indicators, including RSI, Stochastic Oscillator, MACD, and EMA. It helps traders spot divergences between price and these indicators, indicating potential trend reversals or continuations.
How it Works:
The Divergence Indicator compares various indicators and their relationships with price to identify bullish and bearish signals. It considers conditions such as rising or falling values of the Stochastic Oscillator (%K), RSI, and MACD lines, as well as the crossover and crossunder of the MACD Line and Signal Line. Additionally, it evaluates the relationship between fast and slow Exponential Moving Averages (EMA) to detect divergences. When a bullish or bearish condition is met, circles are plotted on the chart to highlight the signals.
Usage:
To effectively utilize the Divergence Indicator, follow these steps:
1. Apply the DI indicator to your chart by adding it from the available indicators.
2. Customize the color settings to suit your preferences. The bullish and bearish colors determine the colors of the plotted circles.
3. Observe the circles plotted on the chart:
- Bullish circles indicate potential bullish signals.
- Bearish circles indicate potential bearish signals.
4. Interpret the signals provided by the indicator:
- A bullish signal may occur when there is price divergence accompanied by rising values of the Stochastic Oscillator (%K), RSI, and MACD lines, or when the MACD Line crosses above the Signal Line. Additionally, a histogram value close to zero may strengthen the signal.
- A bearish signal may occur when there is price divergence accompanied by falling values of the Stochastic Oscillator (%K), RSI, and MACD lines, or when the MACD Line crosses below the Signal Line. A histogram value close to zero may also strengthen the signal.
5. Be cautious of false signals by considering additional factors such as the relationship between the fast and slow Exponential Moving Averages (EMA). If the EMAs or MACD values do not support the identified divergence, the signal may be less reliable.
6. Combine the signals from the Divergence Indicator with other technical analysis tools, such as support and resistance levels, trend lines, or candlestick patterns, to confirm potential trade setups.
7. Implement appropriate risk management strategies, including setting stop-loss orders and position sizing, to manage your trades effectively and protect your capital.
Note: The Divergence Indicator provides valuable insights into potential trend reversals or continuations based on divergences between price and multiple indicators. However, it is recommended to use this indicator in conjunction with other technical analysis tools and perform thorough analysis before making trading decisions.
[Trendycator] Trendycator Trend Following IndicatorThis script proposes a simple and intuitive trend following indicator, better usage on those assets which are sufficiently liquid and don't go through random spikes.
Since it is a trend-following system, it works well during trends only and his intent is to find a primary trend and ride it for as long as possible.
We know that the biggest problem is how to understand if asset is in trend or not: for this purpose, the intuitive colors explained hereafter help Traders to understand when asset is in non trend.
It will never enter on the minimum and will never exit on the maximum but will always try to identify the central part of the trend, maintaining the position until the forces supporting the rise of the stock fail.
Usage details
Color interpretation
Green color mean that asset is in a UP Trend.
Red color mean that asset is in a Down Trend.
Gray color mean that indicator is not able to find any clear trend.
Trendycator use stochastic oscillator, which establish the trend and his strength.
As additional filter as noise removal the stochastic oscillator is smoothened using simple moving average.
Trendycator use as well price swing recognition which identify significant high and significant low breakouts.
When stochastic find trend with strength and significant breakout change color: green for up trend and red for down trend.
This mix of trend-following indicator and breakout system is made to avoid, as much as possible, false signal generated from side movement.
Settings
Trendycator usually doesn’t need to set anything.
This because we believe that the user have to searching for the charts where it works well and never "overfitting" the system on a chart.
Overfitting never work as a long time and in the first step for loosing money.
In Tradingview we decide to let the possibilities to set two parameters: "Period_UP" and "Period_DN".
The reason is because this can be adjusted slightly for testing in intraday, but we recommend to manipulate as less as possible.
Period UP/DN meaning: Period_UP are the number of bars considered for swing high detection and Period_DN is the number of bar that Trendycator use for swing low detection.
Important usage note
Trendycator was born and tested in weekly timeframe and works in daily as well. Intraday charts, normally have high volatility that is the opposite of trend; weekly, or daily bars reduce the noise.
Trendycator is tested, and used, in Etf and stocks.
Trendycator is tested, and used, for long operation only.
Trendycator is not tested in different timeframe from what explained above, or chart type different from bars (eg. Renko or Heikin Ashi).
Trendycator is not tested in instrument different from what listed above: like future or Forex.
Trendycator is not tested for short operation. Normally short have very strong movement in less time that is different from trend following concept.
Entry/Exit recommended filters
Investor and traders are free to use and interpretate Trendycator as they feel more confortable but, we recommend to apply some filters on entry and exit.
As you can see in example, we use a trigger for enter in position (not plotted by this indicator).
The high of first green bar is the trigger level for entry: the long position will be in Buy Stop above this level.
The low of first red bar is the trigger level for exit: the long position will be exit in Stop after this level.
Use this trigger criteria is useful to avoid, once more, the false signal.
Conclusion
Trendycator do not provide any guarantees regarding your ability to obtain results or earn money with our ideas, information, tools or strategies.
Nothing on our content makes any promise or guarantee of future results or earnings.
You alone are responsible for your decisions, actions and results in life, and using our code you agree that you will not attempt to hold us responsible for your decisions, actions or results, at any time, under any circumstances.
SFC MTF CandlesMost technical traders in the foreign exchange market, whether they are novices or seasoned pros, have come across the concept of multiple time frame analysis in their market educations.
Multiple time-frame analysis involves monitoring the same currency pair across different frequencies (or time compressions). While there is no real limit as to how many frequencies can be monitored or which specific ones to choose, there are general guidelines that most practitioners will follow.
Typically, using three different periods gives a broad enough reading on the market, while using fewer than this can result in a considerable loss of data, and using more typically provides redundant analysis.
This indicator helps traders to visualise the last few candles on many time frames.
For manipulation traders I have added the ability to see the current manipulation on different time frames. When such a candle is created, its colour changes to purple.
The Heikin-Ashi technique averages price data to create a Japanese candlestick chart that filters out market noise.
Heikin-Ashi charts, developed by Munehisa Homma in the 1700s, share some characteristics with standard candlestick charts but differ based on the values used to create each candle. Instead of using the open, high, low, and close like standard candlestick charts, the Heikin-Ashi technique uses a modified formula based on two-period averages. This gives the chart a smoother appearance, making it easier to spots trends and reversals, but also obscures gaps and some price data.
Linear regression attempts to model the relationship between two variables, with a given collection of data values.
Linear regression is a very common and useful technique for following the trend. This technique is applied to candles in order to filter out false movements.
Heikin Ashi and Linear Regression candles are helpful for more conservative traders. If they are not sure about the direction, they can wait for these candles to change colour (direction) as an extra confirmation.
Features:
- Up to 6 time frames
- Up to 4 MTF bars
- Heikin Ashi candles (current time frame) - x4
- Linear Regression candles (current time frame) - x4
Settings
- Time frames on/off
- Selection how many bars to display from each time frame (max 4)
- Adjustment of distance between candles
- Adjusting the position of the candles
- Heikin Ashi candles on/off
- TLinear regression candles on/off
- Linear regression candle length adjustment
How to use the indicator:
Traders can visualise different candles in order to observe the chart better and faster.
All they have to do is activate the group of candles they want and set it up according to their preferences.
Due to the complexity of the code, there is a 1s delay when all features are enabled. To eliminate the lag, deactivate some of the features
It is recommended to have a maximum of 3 time frames activated during the high impact news, as the price changes very quickly.
Candle and BG Trend IdentifierThis indicator simply changes the background and color of candle based on the previous candle's close. If a candle closes high than the previous candle's high it will be indicated via green coloring. If a candle closes lower than the previous candle's low it will be indicated in red coloring. Additionally, grey colored candles appear when neither occur - often signifying consolidation.
These candles can be used to identify previous small lasting and long ranging trends. Areas that are heavily saturated with one specific color will likely indicate a trend.
If you are not able to see the colored candles, disable your main candle overlay in the top left by clicking on the eye icon.
Market Condition DetectorThis script allows to change the background color of the main chart to green or red depending on the following factors:
Based on the QQQ graph whatever ticker you are watching
- Price > EMA20 Da
- Net New Highs > 0
- 10EMA Da > 20 EMA Da
When you are trading Break-Out, EP or other similar trades you will need the market at your back to improve both the winrate and the risk reward ratio.
This is a very useful tool if you struggle with the FOMO biais. It will help you detect the trend at a glance.
Remember that the top best trader are waiting for their trade to work and only after getting some traction, and only then will they take the next trade.
I also proceeded to find a formula that make the indicator be the smoother possible with the less possible amount of noise.
/!\ This indicator is intended for use on daily charts . /!\
US Markets Net highs/lows main chart overlayThis script allows users to change the background color of the main chart to green or red depending on patterns of net highs or lows for the Nasdaq, NYSE, or AMEX. Healthy markets typically show persistent trends of net highs, and the green background highlight helps to identify that condition. Similarly, poor market conditions are associated with trends in net lows which can be identified with a red highlight. The script identifies trends in net highs or lows by looking for three or more consecutive days of either condition.
This script is helpful when analyzing the general market, and it is also helpful when studying individual stocks to see how general market breadth conditions affect individual stock price movements.
You can select which individual US market composite or combination of composites are used in the calculations.
This indicator is intended for use on daily charts.
Acknowledgment
Thank you to @JohnMuchow for coding my formulas.
Renko Ichimoku CloudThis script utilizes its source from a non-repainting renko closing price. Renko charts focus solely on price movement and minimize the impacts of time and the extra noise time creates. Employing the renko close helps smooth out the Ichimoku Cloud. Insignificant price movements will not cause a change in the plotted lines of the indicator unless a new threshold is breached or a "brick" is created.
This Ichmoku Cloud includes all standard lines with standard lengths. These include:
Tenken Sen
Kiju Sen
Senkou A/B
Chikou Span
We have also included plotted marks for when there is a Tenken Sen/ Kiju Sen cross and for the Kumo cloud twist.
There are two methods for selecting the box size. Box size is critical for the overall function and efficacy of the plots you will visually see with this indicator. Box size is set automatically using the Average True Range "ATR" or manually using the "Traditional" setting. The simplest way to determine a manual box six is to take the ATR of the given instrument and round it to the nearest decimal place. As an example, if the ATR for the asset is 0.017, you would round that number to 0.02 and utilize this as your traditional box size.
Asteroid Belt ScreenerAsteroid Belt Screener Observe the market in relation to the dynamic trend strength Asteroids Belt indicator, reference for trend trading opportunities.
SCAN MULTI ASSETS WITH ALL 3 RESPONSIVE TIMES ALL AT ONCE
The New Compliment Indicator to the much loved Asteroids Belt, providing a unique way to scan the market, never miss an opportunity with multi Asset Alerts and customizable display.
With additional Pre configured Aggregators, users of asteroids belt will be pleased to know that the indicator does come with 50 automated aggregation settings,
Using the custom position coordinates X,Y users can load multiple instances of the screener, choose individual assets, place them on their chart as they wish and scan for 5 assets PER screener.
Users can also choose to use assets outside of the list of 50, and control the aggregators manually, this allows for complete customization with no limit to symbols.
Users are also given the chance to set alerts for the following:
Alerts
Bullish Trend: Fast,Normal Slow (belt trend color change)
Bearish Trend: Fast,Normal Slow (belt trend color change)
Entering Belt: Fast Normal Slow (belt level detections)
Leaving Belt: Fast,Normal Slow (belt level detections)
TO DO:
Additional alerts e.g. fast trend green with red slow belt. Allowing for filtered opportunities.
Increase pre made aggregator asset lists, and improve.
Nadaraya-Watson: Rational Quadratic Kernel (Non-Repainting)What is Nadaraya–Watson Regression?
Nadaraya–Watson Regression is a type of Kernel Regression, which is a non-parametric method for estimating the curve of best fit for a dataset. Unlike Linear Regression or Polynomial Regression, Kernel Regression does not assume any underlying distribution of the data. For estimation, it uses a kernel function, which is a weighting function that assigns a weight to each data point based on how close it is to the current point. The computed weights are then used to calculate the weighted average of the data points.
How is this different from using a Moving Average?
A Simple Moving Average is actually a special type of Kernel Regression that uses a Uniform (Retangular) Kernel function. This means that all data points in the specified lookback window are weighted equally. In contrast, the Rational Quadratic Kernel function used in this indicator assigns a higher weight to data points that are closer to the current point. This means that the indicator will react more quickly to changes in the data.
Why use the Rational Quadratic Kernel over the Gaussian Kernel?
The Gaussian Kernel is one of the most commonly used Kernel functions and is used extensively in many Machine Learning algorithms due to its general applicability across a wide variety of datasets. The Rational Quadratic Kernel can be thought of as a Gaussian Kernel on steroids; it is equivalent to adding together many Gaussian Kernels of differing length scales. This allows the user even more freedom to tune the indicator to their specific needs.
The formula for the Rational Quadratic function is:
K(x, x') = (1 + ||x - x'||^2 / (2 * alpha * h^2))^(-alpha)
where x and x' data are points, alpha is a hyperparameter that controls the smoothness (i.e. overall "wiggle") of the curve, and h is the band length of the kernel.
Does this Indicator Repaint?
No, this indicator has been intentionally designed to NOT repaint. This means that once a bar has closed, the indicator will never change the values in its plot. This is useful for backtesting and for trading strategies that require a non-repainting indicator.
Settings:
Bandwidth. This is the number of bars that the indicator will use as a lookback window.
Relative Weighting Parameter. The alpha parameter for the Rational Quadratic Kernel function. This is a hyperparameter that controls the smoothness of the curve. A lower value of alpha will result in a smoother, more stretched-out curve, while a lower value will result in a more wiggly curve with a tighter fit to the data. As this parameter approaches 0, the longer time frames will exert more influence on the estimation, and as it approaches infinity, the curve will become identical to the one produced by the Gaussian Kernel.
Color Smoothing. Toggles the mechanism for coloring the estimation plot between rate of change and cross over modes.
Aarika RSIHello traders, purpose of creating this indicator is simply trying to analyse the trend of any symbol.
This indicator can be used on any script like Indices, Stocks, Future, Currency & Crypto.
This RSI version is much simpler to identify the trend of the script than that of traditional RSI trendline. Rather than showing a line, this RSI indicates bars for better and clear visibility of RSI levels.
This is a modified version of © ParkF. I have modified it to simplest possible manner.
How to trade:
RSI level 80, I consider this as extreme-bought which means high chance if bear market from this point on any given timeframe. Whereas 20 is considered as extreme-sold and have a chance to go higher from the current level.
I recommend you to study this RSI before putting it into practice.
Always start with small target and then go for big one by trailing your profit. This is not a Holy Grail indicator which always gives profit but if you practice this indicator with consistency, your portfolio may give good returns.
Use proper money management for any trade. Go for paper trade and observe how this indicator behaves and once satisfied then only take real trade.
Disclaimer: Please make sure you study this indicator on different timeframes because inserted set of data may act differently on different scripts and may vary from timeframe to timeframe.
We advice you to use this indicator for trend-analysis and study purpose only. Author/publisher of this indicator is not responsible for your profit or loss if you use this indicator for trading purpose one way or another.
N.B.: We do not recommend using HeikinAshi charting for this particular indicator as the data inputs may behave differently than expected. If you have any query, you may comment below.
Average Daily Range Lines + VWAP by TenozenOANDA:EURUSD
Hello! I created an indicator called ADRL (Average Daily Range Lines). This is my first original work, and I hope it's helpful to you guys.
1. Let me explain a bit of how it works...
So first of I need the ADR value, as by default length I use 19 for it. I want this indicator to calculate every start of the new day and break if another new day starts, so if the target level isn't reached, then the value would start to go back to 0 and get the new target level of the day. The target level is based on the first ADR multiplied by how much "percent" we want for the target level to hit, based on the first ADR value of the day. When the new day starts, the algo would start to add up the ADR value. If the added ADR hits the target level, it starts to plot a line by the candlestick by its high, low, and mid-level; it would create a new line if there is a new target being hit. So that's it.
About the VWAP, I took Tradingview's VWAP. I added the anchored part so I can plot a line if there is a new target level being hit. I hope that's okay.
2. How to use it...
- Using this indicator is pretty easy. When a new box is being plotted, that means that's the time when you should trade, as the box is still fresh. The VWAP helps if the market is trending or not.
- You can treat this indicator just like an S&R, as the price tends to respect the box. So best to use it as a pullback trade.
- We can assume if the price above the box, is a buy; vice versa.
3. Best Market to use...
- I suggest a trade in a nonvolatile market. The more volatile the market is, the harder the box is to be respected by the price. But if you really want to trade in that market, I suggest adjusting the inputs by how the box is being respected.
4. Suggestions...
- Use this indicator in 5 minutes chart if you day trade.
- Try using 30 minutes and setting the percent input from 100 to 80 and changing the ADR length from 19 to 14, this is much more suitable if you tend to hold trades.
Top Trend Backtest (Simple) [Loxx]Simple backtest for Top Trend found here:
What this backtest includes:
-Customization of inputs for Top Trend calculation
-Take profit 1 (TP1), and Stop-loss (SL), calculated using standard RMA-smoothed true range
-Activation of TP1 after entry candle closes
-Long and short signal cross entries
Happy trading!
Enio_LR_SlopeEnio_LR_Slope is the slope curve of a Linear Regression Line. As such, it describes whether the LRL is decreasing or vice versa.
Its crossing above the Zero line is considered a Buy signal, and vice versa. This signal can also be used to confirm signals from other indicators.
The default setting is:
Slope curve, 30 periods
Cut-Off signal, 7-periods (This is a simple moving average of the Slope curve).
Cut-Off signals can be used for early buy/sell positioning.
Aarika SuperPowerHello traders, purpose of creating this indicator is simply trying to analyse the trend of any symbol.
This is combination of multi EMAs, SMAs along with stop and reverse price action with different parameters and calculations.
This indicator generate Long and Short signal on certain conditions once all the calculations comes to certain point then indicator will generated signal.
This indicator can be used on any script like Indices, Stocks, Future, Currency & Crypto.
Long symbol appears below the candle whereas Short symbol sticks above the candle.
How to trade : This indicator is easy to use on any timeframe and on normal candlestick when signal generated wait for the candle to close and then take trade. Signal appeared on candle based on some calculation and when all the condition are matched; so wait for full candle to formed and once candle close then go for trade.
Rule for long trade: if the price/candle is running above 200SMA ( blackline in default settings given), and if LONG signal comes, it indicates a bullish momentum whereas Short signal above 200SMA may see a reversal of the trend.
Rule for Short trade: if price/candle is forming below 200SMA, and if SHORT signal comes, it indicates a bearish trend whereas Long signal below 200SMA can be identified as a reversal in the current trend.
Always start with small target and then go for big one by trailing your profit. This is not a Holy Grail indicator which always gives profit but if you practice this indicator with consistency, your portfolio may give good returns.
Use proper money management for any trade. Go for paper trade and observe how this indicator behaves and once satisfied then only take real trade.
Add-on Feature : we have added multiple options under one roof for trader’s convenience. You may add upto 3 Simple Moving Averages. Usually higher MA's are used for long vision whereas smaller MA for short term trend analysis. You may also wish to use Central Pivot Range alongwith upto 3 support and resistance levels for better understanding of how the candles may react within the range.
Disclaimer: Please make sure you study this indicator on different timeframes because inserted set of data may act differently on different scripts and may vary from timeframe to timeframe.
We advice you to use this indicator for trend-analysis and study purpose only. Author/publisher of this indicator is not responsible for your profit or loss if you use this indicator for trading purpose one way or another.
N.B.: We do not recommend using HeikinAshi charting for this particular indicator as the data inputs may behave differently than expected. If you have any query, you may comment below.
cATRpillar Strategy**This is my first strategy on the Pine editor, any tips or tricks from the community would be awesome!
This strategy was developed from my indicator "cATRpillar". it uses the ATR range values to determine entry, and uses EMA values to determine an exit if the market goes against it.