Function : Multiple Correlation
This script was written to calculate the correlation coefficient (Adjusted R-Squared) for one dependent and two independent variables.(3-way)
Pearson correlation method was used with exponential moving averages as the correlation calculation method.
Use your source ( i use "close" generally ) as the dependent variable.
Inspired by this article : www.real-statistics.com
The Adjusted R-Squared coefficient is used as output, but the R-Squared coefficient is also available in the code.
Adjusted R-Squared is often used for multiple correlations.
It also gives better results in large samples.
Here is the article about the difference of the two coefficients : www.investopedia.com
I wrote this function to increase the efficiency of my Dow Factor I used before.
When my research is over, I will apply the 3-factor correlation to my scripts.
I hope that I will achieve more efficient indicators and oscillators and even strategies.
In this command, I gave a few variable values and plotted them as an example.
I hope this function is useful in your work.
Finally, you can use periods as mutable variables.
The function is recovered from integer loads.
Best regards. Noldo
Multiple
Multiple EMAs with marked zones and custom timeframe supportThis script plots 10 exponential moving averages and marks the areas between them.
The lengths are Fibonacci numbers starting from 5 and ending with 377.
The colors indicate the length of the moving average, green for the shortest and purple for the longest.
The zones between consecutive EMA's (e.g. 5 and 8 ema ) are market according to the color of the greater one in value.
By default the script plots values for the current time frame, but supports custom time frames.
I'm releasing this script with an open visibility. Feel free to suggest improvements!
Enjoy,
s0ullight
別府 Multiple Moving AveragesThis is yet another script that implements multiple moving averages into one indicator. It also identifies SMA golden crosses and candles where price goes above or below the 200 SMA. It also has a few EMAs and SMAs with configurable periods in case you want to try something out and need a weird EMA or SMA. The default EMAs and SMAs use 50, 100, and 200 periods.
[Maco] PUELL MULTIPLEReverse formulated what the closed source version is and releasing open source publicly to give back to the community.
If you have any questions feel free to join our Discord!
EMAs (20,50,100,200)Ability to plot EMAs (20,50,100,200) in single indicator and can be tweaked according to your trading style.
Multiple Moving AveragesThis is an indicator with 4 moving average slots and 6 exponential moving average slots
It also has bollinger bands and a volume weighted moving average slot
Feel free to edit this and add/remove some and publish your own
Fischy Bands (multiple periods)Just a quick way to have multiple periods. Coded at (14,50,100,200,400,600,800). Feel free to tweak it. Default is all on, obviously not as usable! Try just using 14, and 50.
This was generated with javascript for easy templating.
Source:
```
const periods = ;
const generate = (period) => {
const template = `
= bandFor(${period})
plot(b${period}, color=colorFor(${period}, b${period}), linewidth=${periods.indexOf(period)+1}, title="BB ${period} Basis", transp=show${period}TransparencyLine)
pb${period}Upper = plot(b${period}Upper, color=colorFor(${period}, b${period}), linewidth=${periods.indexOf(period)+1}, title="BB ${period} Upper", transp=show${period}TransparencyLine)
pb${period}Lower = plot(b${period}Lower, color=colorFor(${period}, b${period}), linewidth=${periods.indexOf(period)+1}, title="BB ${period} Lower", transp=show${period}TransparencyLine)
fill(pb${period}Upper, pb${period}Lower, color=colorFor(${period}, b${period}), transp=show${period}TransparencyFill)`
console.log(template);
}
console.log(`//@version=4
study(shorttitle="Fischy BB", title="Fischy Bands", overlay=true)
stdm = input(1.25, title="stdev")
bandFor(length) =>
src = hlc3
mult = stdm
basis = sma(src, length)
dev = mult * stdev(src, length)
upper = basis + dev
lower = basis - dev
`);
periods.forEach(e => console.log(`show${e} = input(title="Show ${e}?", type=input.bool, defval=true)`));
periods.forEach(e => console.log(`show${e}TransparencyLine = show${e} ? 20 : 100`));
periods.forEach(e => console.log(`show${e}TransparencyFill = show${e} ? 80 : 100`));
console.log(' ');
console.log(`colorFor(period, series) =>
c = period == 14 ? color.white :
period == 50 ? color.aqua :
period == 100 ? color.orange :
period == 200 ? color.purple :
period == 400 ? color.lime :
period == 600 ? color.yellow :
period == 800 ? color.orange :
color.black
c
`);
periods.forEach(e => generate(e))
```
Mayer Multiple with simple and weighted moving averageMayer Multiple developed by Trace Mayer gives the ratio of price to 200 daily moving average. Is intended for use on day chart only.
You may select between simple moving average (blue) or weighted moving average (pink). Each version of the Mayer Multiple has its own moving average to chart the trend of the indicator itself over time (shown in orange and green respectively for simple and weighted multiples).
All parameters are however freely configurable in settings.
The threshold value of 2.4 is set for Bitcoin and gives the level under which buys are more likely to lead to profit than not.
Triple Moving Averages with Bollinger BandsCombines 3 moving averages with Bollinger Bands. Each moving average can be configured to be SMA or EMA.
Multiple Moving AveragesThis script shows multiple moving averages and has an indicator when they are about to cross. Depending on the scale you probably will need to adjust the values to have a working cross indicator.
RSI + EMA with Multiple ZonesThis is your traditional RSI chart but with a few modifications
I added an extra zone parameter that you can specify with its own color and line customization.
There is an EMA that tracks the RSI as well.
Moving Average x10 (SMA, EMA)10 configurable Simple and Exponential moving averages combined in one indicator
Multiple MAs - 1ema, 4smaSimple script that allows you to customize the MA's length & color
(1) EMA - exponential moving average
(4) SMA - slow moving averages
Common SMA's are: 10, 50, 100, 200
Multiple EMAMultiple EMA. Color switch of slowest EMA (def=200) when price close below or above. Trend marker when fastest EMA (def=9) cross slowest EMA (def=200).
Multiple EMAMultiple EMA lines. Color switch of slowest EMA (def=200) when price close above or below. Trend marker when fastest EMA (def=9) cross slowest one.
16x VWMACombination of 16 VWMAs to find out where the market makers are.
vwma 10/20/30 - red
vwma 40 - green
vwma 50/60/70/80 - orange
vwma 150/160/180/200 - blue
vwma 300/320/340/389 - black
Multiple EMA/SMACreate and customize up to 6 EMAs and 6 SMAs. Useful for both long-term and short-term trading. Comes configured with the moving averages I use for trading.
[SignalFI] ShotGunFI V1 [Alerts]Welcome to ShotGunFI
In order to help give our members awareness of how major indicators move market price action, we created ShotGunFI. This script provides signals for the following indicators and gives a customizable framework for the user to track how certain indicators impact price and further how those impacts could relate to their overall strategy. We took the major indicators that are used in the market and smashed them into one chart with one indicator so that you can visualize a broad spectrum of strategies that are already driving price action.
This script is enabled with Data Leak and Repaint protection by default. Ensuring that signals are true.
The following indicators are included:
//+RSI Ob/Os Crossover Signals
- Candles are colored Orange and Aqua when RSI is overbought or oversold.
- Arrows and Alerts for crossover 30 and crossunder 70 RSI.
//+Slow Stochastic Signals
- Arrows and Alerts for crossover 20 and crossunder 80 Stoch RSI
//+MACD Bull/Bear Signals
- Arrows and Alerts for MACD Bull and Bear Signal line crossovers
//+MA Cross Bull/Bear Signals
- Arrows and Alerts for MA 1 Cross of MA 1 and MA 1 Cross of MA 4.
By default EMA is enabled, however, we included several other MA types to enhance and expand on this concept.
Included are the following MA types:
Kaufman Adaptive Moving Average ( KAMA )
Hull Moving Average
Smoothed Moving Average
Variable Index Dynamic Average
Fractal Adaptive Moving Average
Fractal Dimension Adaptive Moving Average
Double Exponential Moving Average
Least Squares Moving Average
Coefficient of Variation Weighted Moving Average
Simple Weighted Moving Average
Exponential Moving Average
Weighted Moving Average
Arnaud Legoux Moving Average
Option Types Labels:
"SWMA", "EMA", "WMA", "SMA", "HMA", "KAMA", "SMMA", "VIDYA", "VWMA", "ALMA", "FRAMA", "DEMA", "FDAMA", "LSMA", "COVWMA"
//+BollingBand Bull/Bear Signals
- Arrows and Alerts for lower BB crossover and higher BB crossover
//+Bollinger Band + RSI (BBRSI) Bull/Bear Signals
- Arrows and Alerts for custom higher timeframe Bollinger Band that integrates RSI. 4 Signals total.
//+InsideBar Bull/Bear Signals
- Arrows and Alerts for InsideBar bull/bear break combinations.
ALERTS VERSION Only for Jedi and Master Subscribers
SignalFI was created to help traders and investors to effectively analyze the market based on the Golden Mean Ratio (Fibonacci numbers), plan a trade and ultimately execute it. To help inform and educate market decisions we developed a set of Trading Indicators which are available on TradingView , the most advanced and yet easy to use charting platform available on the web.
SignalFI indicators are just that, indicators. Our indicators are generally configured to use completely historical data (negating repaint), and we advise all alerts created with SignalFI indicators to be fired upon "close" of the current candle. Our indicators can provide valuable context and visualization support when performing market analysis and executing buy and sell decisions. However. we are not financial experts, and all information presented on this site or our other media outlets are for educational purposes only.
For subscription information, visit www.signalfi.net and follow us on twitter.
EMA MultipleUse this script to view EMA D in graph intraday or D.
You can set two different EMA (ex: 100,200) and view, for example, the values of EMA D on 5 min.
Enjoy!