by rubbermetal· code credited to veryfid — enhanced by claygrace74
A separate-pane oscillator based on the centre of gravity calculation with an adjustable length, an optional RMA smoothing, and a trigger line made with an ALMA filter.
Center Of Gravity Oscillator also computes a linear regression line, previous high and low levels of the oscillator and optional Fibonacci levels. Several themes change the look, and the line colour reflects acceleration. Buy and sell markers appear when the oscillator and trigger cross, and divergence signals can be switched on. All lengths and offsets are adjustable.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source
source
close
src
COG Length
int
9
length
Smoothing
string
NONE
smooth
Smoothing Length
int
2
length5
Window Size
int
3
windowsize
Offset
float
0.85
trigOffset
Sigma
float
6.0
sigma
Theme
string
CUSTOM
theme
Show Price Line
bool
true
pline
Dual Colored Trigger
bool
false
showcol
Show High/Low Levels
bool
false
showhl
Previous High/Low Length
int
20
length2
Show all 19 settings
Setting
Type
Default
Variable
LSMA Length
int
200
length3
Show Fibonacci Levels
bool
false
fib
Fibonacci Lookback
int
1000
length4
Fibonacci Color
color
color.white
col1
Show Buy/Sell Signals
bool
true
i_showSignals
Show Divergence Signals
bool
false
i_showDivergence
Divergence Lookback
int
5
i_divLookback
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator calculates momentum setups based on the Relative Strength Index (RSI) and plots in a separate pane. It offers multiple scanning modes such as Continuous Break, Continuous Retracement, Flip Break, Flip Retracement, and both regular and hidden div
This indicator calculates the MACD oscillator from a configurable source with fast and slow lengths, then plots the histogram, MACD line, and signal line in a separate pane. It detects regular bullish divergences (price lower lows with oscillator higher lows),
This indicator calculates the Relative Strength Index (RSI) across four user-selected timeframes and plots the results in a separate pane. It identifies regular bullish and bearish divergences between price pivot points and the primary timeframe RSI value. Add
The Bubbles Indicator measures volatility squeezes and expansion bursts using Bollinger Bands combined with a sinusoid oscillator and RSI divergence. It processes price data through scaled Bollinger Bands to highlight volatility changes while confirming trend
This indicator plots a standard Relative Strength Index (RSI) in a separate pane alongside customizable overbought and oversold threshold levels with shaded fills. It identifies pivot highs and lows on the oscillator to detect regular and hidden bullish and be
This indicator calculates a 14-period RSI from close and plots it in a separate pane with dotted overbought and dashed oversold lines at 70 and 30. It marks bullish divergence when a five-bar pivot low in price is lower than the price twenty bars earlier while