Strategy Gaussian Anomaly DerivativeConcept behind this Strategy :
Considering a normal "buy/sell" situation, an asset would be bought in average at the median price following a Gaussian like concept. A higher or lower average trend would significate that the current perceived value is respectively higher or lower than the current median price, which mean that the buyers are evaluating the price underpriced or overpriced.
This behaviour would be even more relevent depending on its derivative evolution.
Therefore, this Strategy setup is based on this Gaussian like concept anomaly of average close positionning compare to high-low average derivative, such as the derivative of the following ploted basic signal : 1-(high+low)/(2*close).
This Strategy can actually be used like a trend change and continuation strength indicator aswell.
In the Setup Signal part :
You can define the filtering of the basis signal "1-(high+low)/(2*close)" on EMA or SMA as you wish.
You can define the corresponding period and the threathold as a mutiply of the average 1/3 of all time value of the basis signal.
You can define the SMA filtering period of the Derivative signal and the corresponding threathold on the same mutiply of the average 1/3 of all time value of the derivative.
In the Setup Strategy part :
You can set up your strategy assesment based on Long and/or Short. You can also define the considered period.
The most successful tuned strategies I did were based on the derivative indicator with periods on the basis signal and the derivative under 30, can be 1 to 3 of te derivative and 7 to 21 for the basis signal. The threathold depends on the asset volatility aswell, 1 is usually the most efficient but 0 to 10 can be relevent depending on the situation I met. You can find an example of tuning for this strategy based on Kering's case hereafter.
I hoping that you will enjoy using this Strategy, don't hesitate to comment, to question, to correct or complete it ! I would be very curious about similar famous approaches that would have already been made.
Thank to you !
Derivative
MACD DerivativesMACD Derivatives v1.1
Shows MACD value and derivative of MACD value in the histogram. The histogram shows 1st or 2nd order derivative as indicated in the settings. The derivative value represents the slope, the direction of change and change rate of the MACD value, aiming to give influence on possible trend turns on MACD value, ideally the possible direction change of MACD/price before the actual turn.
- 1st order derivative represents the increase or decrease of the MACD value, shown as positive or negative histogram value respectively;
- Similarly, 2nd order derivative represents the increase or decrease in the difference of the 1st order derivative value, represented via the histogram.
Both of the derivative functions are according to the value difference of n-th bar. The value n is customizable in the settings.
The indicator is based on the source code of built-in MACD indicator excluding the signal and the usual MACD histogram calculations, i.e. the signal is removed and the histogram shows the 1st or 2nd derivative of the MACD value.
For example: You can not get information about the future price via this indicator but some supportive information and visualization on the trend change such as "The uptrend is slowing down, and this slowing down is getting quicker."
Disclaimer: It is NOT recommended to open or close positions based solely on this indicator. The derivative value answers only one question, i.e. the change in last MACD value. Does not indicate any future value and I mean it.
HEX Risk Metric (v0.2)This indicator plots a "risk metric" based on the % increases of the following averages:
ema21, sma50, sma100, sma200, sma300, sma600.
Depending on the rolling 7-day percentage increase of this moving average, a value is assigned to each data point, then normalized to a common range.
This set of metrics attempts to represent data similar to that of a heat map.
Users can adjust filter top, filter bottom, and toggle on/off the different metrics within the set.
HEX Risk Metric (v0.1)This indicator plots a "risk metric" based on the % increases of the following averages:
ema21, sma50, sma100, sma200, sma300, sma600.
Depending on the rolling 7-day percentage increase of this moving average, a value is assigned to each data point, then normalized to a common range.
This set of metrics attempts to represent data similar to that of a heat map.
Users can adjust filter top, filter bottom, and toggle on/off the different metrics within the set.
make lead signalAdd derivative of a signal for leading behaviour
formula: sig = (lambda/100)*source + (1-lambda/100)**momentum )
it has a multiplier and an offset for adjustment of result.
final formula: sig = multiplier*( (lambda/100)*src + (1-lambda/100)*mom_coef*mom ) + offset
Slope and Concavity : derivative calculations [Fournier-Eaton]This script calculates the "instantaneous" first and second derivatives in a highly flexible and accurate way: namely, via zero-lag price tracking with increasingly narrow sample windows for sequential secant approximation tending towards the tangent. The slope of this tangential is the first derivative, i.e., slope.
Paired with a divergence indicator this can be a powerful tool for trend analysis.
The Script Works As Follows
The slope (first derivative) is represented in line form
Note that crossing through zero, the slope indicates a change in trend direction.
The concavity (second derivative) is represented in histogram form
Positive concavity indicates a shape like an upward bowl, negative is like a downward bowl, and crossing through zero is an inflection point.
Pair this with any indicator that will accept arbitrary input (i.e., from other indicators) select slope or concavity (first or second derivative) to get a lead on trend changes that are often difficult to approximate with the eye during hectic markets.
This is particularly useful as an augmentation for trend shift indicator -- which has been updated.
Delta-RSI OscillatorIntroducing the Delta-RSI Oscillator.
This oscillator is a time derivative of the RSI, plotted as a histogram and serving as a momentum indicator. The derivative is calculated explicitly by means of local polynomial regression. It is designed to provide minimum false and premature buy/sell signals compared to many traditional momentum indicators such as Momentum, RSI, Rate of Change.
Application:
Potential trading signals provided by the Delta-RSI Oscillator include:
- zero crossing (negative-to-positive as a bullish sign and positive-to-negative sign as a bearish signal),
- change of direction (consider going long if the oscillator starts to advance, and short otherwise).
In addition, the strength of a particular trend can be estimated by looking at the Delta-RSI value (positive D-RSI in case of the uptrend, and negative in case of the downtrend).
Choosing the model Parameters:
-RSI Length: The timeframe of the RSI that is being differentiated.
- Frame Length: The length of the lookback frame used for local regression.
- Polynomial Order: The order of the local polynomial function.
Longer frames and lower order of polynomials will result in a " smoother " D-RSI, but at the expense of greater lag. Increasing the polynomial order while maintaining the frame length will reduce lag while producing more variance. The values set as default (Length=18, Order=2) were found to provide optimum the variance/lag tradeoff. However, other options (e.g., Length=35, Order=3) can also work well.
Relationship with other methods:
When developing this indicator, I was inspired by Connie Brown’s Derivative Oscillator. The latter pursues the same goal but evaluates the RSI derivative by means of triple smoothing. This paves the way for more clear interpretation and easier tuning of model parameters.
Derivative Based TrendsUses a combination of moving averages to establish trends, and finite-difference derivative approximations to predict possible reversals. Seems to work best on 1 hour charts of less volatile currency pairs.
BitFlyerFX Kairi(%)This is an indicator that shows the ratio of spot price and "FX" price of bitFlyer, a Japanese cryptocurrency exchange.
"FXBTCJPY" is a special product and does not strictly work with spot price.
Because of the extremely "peculiar" price, it often deviates from the spot price.
This is an indicator to confirm it.
·Source
BITFLYER: BTCJPY
BITFLYER: FXBTCJPY
=================
bitFlyerの現物価格とFX価格の乖離率を見るやつ。とりあえず見れればいい人向け
[RS][V4]ZigZag Percent Reversal - Helper - AntiSlopeEXPERIMENTAL:
A helper script to map the Anti derivative slopes.
Derivative Oscillator Cu [ID: AC-P]The "AC-P" version of the Derivative Oscillator is my personal customized version of Constance Brown's Derivative Oscillator (using Everget's implementation of it as the base), with the the following modifications and additions:
VWAP Indication - option to show whether the price input option is above or below the Daily VWAP (red triangles = price input is below vwap, green triangles = price input is above vwap)
Bullish and Bearish phases from shayankm's Waddah Attar Explosion V2 () is included as indication dots (bullish = blue dots, bearish = yellow dots) below/above the Derivative Oscillator histogram
Coral Trend from Lazybear () is included as indication dots (red/green dots below/above the Derivative Oscillator histogram
Input source options for vwap, Waddah components (MACD, Bollinger Upper/Lower)
Centerline option for Coral trend, and Horizontal center option for the Derivative Oscillator with circle indication (optional - provided as option for flexibility in use with overlaying with other indicators)
This indicator is a hybrid, with a combination of leading indicators and lagging trending indicators combined into one. Specifically, a few of the other indicators I use are lacking in the momentum and trend department, and this is one of the indicators I use to address that:
VWAP provides trend information on lower timeframes from a high timeframe interval (D)
Coral Trend provides additional confirmation to VWAP trend wise, and is adjustable
Waddah Attar Explosion provides a third level of confirmation for trending moves, taking into account shorter and longer timeframes (FastEMA and SlowEMA parameters).
Script base for the Derivative Oscillator is credited to Everget () and LazyBear ().
Source attribution to Constance Brown for the Derivative Oscillator formula/indicator:
// Brown, Constance.
// Reference 1: “The Derivative Oscillator: a New Approach to an Old Problem,” Journal of Technical Analysis (Winter-Spring 1994) 45–61.
// Reference 2: Technical Analysis for the Trading Professional. New York, NY: McGraw-Hill, 1999.
Information on the Derivative Oscillator:
www.investopedia.com
Derivative Oscillator Arrows [Salty]Values above zero are considered bullish, and larger arrows print when the cross over occurs in the bullish area.
Values below zero are considered bearish, and larger arrows print when the cross under occurs in the bearish area.
SMA DerivativesIt shows the first and second derivatives (tangent line of the graph) of the SMA of a given period. If the period = 1, it shows the derivatives of the price graph itself.
Derivative OscillatorThis indicator was originally developed by Constance (Connie) M. Brown (Journal of Technical Analysis (Winter-Spring 1994, 45-61): "Derivative Oscillator: A New Approach to an Old Problem").
MaxWarren's Pine Acceleration - 2nd DerivativeThis is the acceleration of a chart written in pine. It's the second derivative otherwise the derivative of the momentum.
It shows how fast a stock's momentum is changing and in what direction.
As standard I left the controls in the settings for source and length of the estimate.
I will be incorporating this in other more complicated scripts here shortly