[LunaOwl] Center of Gravity作品: 艾勒斯重心點 (Center of Gravity, CG)
Center of Gravity was developed by John Ehlers in 2002. The main purpose of the Center of Gravity indicator is to find possible reversal points as early as possible. Indicator has two series, the first is the CoG series, and the second is the signal line calculated by the five-period smoothed moving average. Cross representative indication of the direction. I coded this indicator according to the description of MT4, a little work.
重心點(Center of Gravity)是由約翰.艾勒斯在2002年開發的,這個指標的主要用途是儘早發現可能的反轉點。它有兩個部份,一個是重心點指標線,另一個是經過五期平滑移動平均線平滑過的信號線,它們的交叉結果代表方向。我按照MT4的說明編寫了這個小作品。
Smoothed Moving Average (SMMA)
Fixed TimeFrame SMMAA script for SMMA calculated on fixed timeframe, different from the main chart's timeframe.
As it's known, we can't use mutable variables with security. At the same time, SMMA references to the previous values. So it's impossible to create SMMA on different timeframe, just passing a variable with SMMA to security.
To overcome this restriction, we should use a function, which calculates SMMA and we are passing the function to the security, so the function will be calculated on required timeframe.
Balance of Power StrategyA simple variation on the balance of power idea, using a weighted moving average and a basic lookback to attempt to predict the motion in the next tick.
As far as a trading pattern goes, it's performance is rather conservative, and it is rather noisy as it doesn't do a good job of preventing quick, meaningless trades.
Modiied Elder Ray Index(Bull or Bear)Here's a modified version of the Elder Ray Index created by the famed Dr.Alexander Elder. This indicator has proven to be especially helpful lately given the crazy state of crypto.
Slow Moving Average :
The top chart shows the moving average used to filter trends. I recommend using a higher window length(can be adjusted with the 'lenSlowMA' input option). I wanted this to be a very smooth moving average, so I used the following formula:
slow MA = ema(vwma(close, 64), 64)
This resulted in a pretty smooth line that still detects major price movements very well.
-The background and bar colors both change in response to the Slow MA's value. The background and bars change to green when a bullish trend is detected and red when bearish.
Bear and Bull Power :
To balance things out a little, I included two histogram's based on Elder's Ray. Here, a more responsive EMA with a shorter window length is used to calculate the bull and bear power values and track short-term price fluctuations.
NOTE: The length of the EMA used here can be adjusted in the input menu.
Bull Power = current high - EMA(close, 13)
Bear Power = current low - EMA(close, 13)
Savitzky-Golay Smoothing FilterThe Savitzky-Golay Filter is a polynomial smoothing filter.
This version implements 3rd degree polynomials using coefficients from Savitzky and Golay's table, specifically the coefficients for a 5-, 7-, 9-, 15- and 25-point window moving averages.
The filters are offset to the left by the number of coefficients (n-1)/2 so it smooths on top of the actual curve.
You can turn off some of the smoothing curves, as it can get cluttered displaying all at once.
Any feedback is very welcome.
Alto Basso Swing Pivots + Barry Support Resistance Levels2 indicators, 1 script: swing pivots and Barry support resistance levels
Alto
high swing pivot
Basso
low swing pivot
Dal Segno
lookback period length for swing pivots
Barry Length
length for support resistance calculation
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Use swing pivots for confirmation of new structure levels on short term
Barry support resistance levels in proximity to standard pivots or Fibonacci levels may indicate greater strength
credit to BacktestRookies and likebike
stay ♯
Example: Dal Segno 13, Barry Length 21
Reap Hull SMA CrossoverHi this is my first script, it is a HMA 144 crossover with SMA 5 changes background (still needs work), provides alerts for crossover
Single_Timeframe_3EMA + Current_Timeframe_3SMMAPlots 3 EMA from a larger timeframe (day, week) and 3 SMMA from the current one.
Single Timeframe 3EMA + Current Timeframe 3SMMA
Plots 3 exponential moving averages from a bigger timeframe (Day, Week) and 3 smoothed moving averages from the current timeframe.
XBTUSD for BitMEX [ BB Long term strategy ]XBTUSD for BitMEX
『おすすめストラテジーSS1』(BitMEXビットコイン用Pineスクリプト)自動売買のアイデアに!
SMMA Analyses - Buy / Sell signals and close position signals This script combines the usage of the SMMA indicator in order to provide signals for opening and closing trades, either buy or sell signals.
It uses two SMMA , a fast and a slow one, both configurable by the users.
The trigger of Buy and Sell Signals are calculated through the SMMA crosses:
Buy Signals : The fast SMMA crosses over the slow SMMA . They are highlighting by a green area and a "B" label.
Sell Signals : The fast SMMA crosses under the slow SMMA . They are highlighting by a red area and a "S" label
The trigger of Close Buy and Close Sell Signals are calculated through the close price crosses with the fast SMMA:
Close Buy Signals : The fast SMMA crosses under the close price and at the same time the trend is bullish , so the fast SMMA is greater than the slow SMMA . They are highlighted by a lighter green area
Close Sell Signals : The fast SMMA crosses over the close price and at the same time the trend is bearish , so the fast SMMA is lower than the slow SMMA . They are highlighted by a lighter red area
Few important points about the indicator and the produced signals :
This is not intended to be a strategy, but an indicator for analyzing the SMMA conditions. It gives you the triggers depending on the real time analysis of the SMMA and prices, but not being a proper strategy, pay attention about "fake signals" and add always a visual analysis to the provided signals
Following this indicator, the trade positions should be opened only when a cross happens. Either in this case, analyse the chart in order to see if the signals are a "weak" ones, due to "waves" around the SMMA . In these cases, you might wait for the next confirmation signals after the waves, when the trend will be better defined
The close trade signals are provided in order to help to understand when you should close the buy or sell trades. Even in this case, always add a visual analysis to the signals, and pay attention to the support/resistance areas. Sometimes, you can have the close signals in correspondence to support/resistance areas: in these cases wait for the definition of the trend and eventually for the next close trade signals if they will be better defined
Ehler's Super Smoother strategyThis strategy is a mean-reversal strategy based on John F. Ehlers's Super Smoother filter. I tried it on 15m timeframe with 'Recalculate After Order Filled' option checked.
Kozlod - Yet Another Moving Average Cross Strategy (9 MA types)You can choose one of these MA types in params:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Weighted Moving Average (WMA)
Arnaud Legoux Moving Average (ALMA)
Hull Moving Average (HMA)
Volume-weighted Moving Average (VWMA)
Least Square Moving Average (LSMA)
Smoothed Moving Average (SMMA)
Double Exponential Moving Average (DEMA)
Also you can select SL/PT % levels.
Log Smoothed Moving AverageThis indicator has two features that make it better than standard SMMA for cryptocurrencies:
- starts from the very first candle
- calculations are performed in log-space which means less sensitivity to extreme volatility common in crypto world
High-Low Difference Channels r2About:
I developed the original as an experiment to potentially replace or augment my BB and RSI based strategies. After some back-testing I could see some really interesting results but it wasn't quite where I wanted it, so after some tweaking and further back-testing, and adding in more MA options, here we are. Mostly tested on 1h and greater time-frames using default settings.
Description / Usage:
Adjust length and multiplier much the same way you would expect with Bollinger Bands.
Multiplier of 1 gives you a base channel consisting of one high, and one low sourced MA
The outer channels are increments of the base high-low channel width, away from the hl2 sourced MA
r2 Changes:
Increased amount of up/down channels to 5, and lowered multiplier default to 1 (previously 1.5)
Tweaked default colour scheme.
Pick your MA poison of choice! Added choices for all your common MA variants.
Issues:
VWMA bugs out and refuses to draw sometimes - no idea why.
Additional Notes:
All MA variants available in this script were derived directly from the sources of those available within the pine editor. I have been fairly diligent trying to ensure they all function correctly, but I can't 100% guarantee it, so if anyone gives the script a try, or dives into the code and see's something odd - don't hesitate to let me know!
It would also be fantastic to hear feedback from anyone who finds use for this, to augment an existing strategy/idea, or develop something new. :)
Bill Williams Averages SMMA This indicator calculates 3 Smoothed moving average for default values of
13, 8 and 5 days, with displacement 8, 5 and 3 days.
The most popular method of interpreting a moving average is to compare
the relationship between a moving average of the security's price with
the security's price itself (or between several moving averages).