B3 Directional Trend IndexB3 Directional Trend Index ~ All about the trend! William Blau is the designer of this gem, and IMHO it is the best trend finder of all the lagging indicators out there I have tested. It is important to pay attention to the slope and thickness of the line, and its relationship to zero. A reversion to the zero may look momentous, but in fact it could reverse when it reaches mean, only to turn back around. You can see this in March and April of this silver futures daily chart. Makes for a great instrument on anything you consider trendy, like crude oil for example. The default user inputs are set to my liking, as I find them to be great on all charts and resolutions. You may read around to find more about this on the internet, or its mentioned in Krausz's work. Also, imprtant to remember when no trend, trend finders like this sufffer, so be wise as to what market condition you are in. Rangy and within Range = no, On the Move = yes.
Моментум индикатор (MOM)
Stochastic Momentum IndexThis is an implementation of the Stochastic Momentum Index from William Blau's his article in Stocks & Commodities .
This also allows the use of various different kinds of moving averages for the signal line. Options for this argument are:
sma (simple moving average)
ema (exponential moving average)
wma (weighted moving average)
trima (triangular moving average)
zlema (zero-lag exponential moving average)
dema (double exponential moving average)
tema (triple exponential moving average)
hma (hull moving average)
Moving Average RibbonThis is an extension of the Madrid Moving Average Ribbon public script to allow for different kinds of moving averages (the original allows only exponential and simple). Possible entries in the MA Type argument field are:
sma (simple moving average)
ema (exponential moving average)
wma (weighted moving average)
trima (triangular moving average)
zlema (zero-lag exponential moving average)
dema (double exponential moving average)
tema (triple exponential moving average)
hma (hull moving average)
If the argument given by the user does not match anything from the above list, it will default to ema.
B3 Buyer-Seller BreakoutsB3 Buyer-Seller Breakouts = If a bar is showing that it is moving in a direction with highs lows and close, all of which are >respectively< moving against the open from the bar before, then it prints indicating buyers or sellers bringing momentum. The arrows and cloud carry into the next bar to give lots of awareness of the micro-term momentum. The cloud represents the better price range from which to add to a position.
This study repaints within the bar, most of my indicators do not, but this one is about timing to get an edge on adding to your already in play position, becoming part of the needed momentum to hit profit targets faster. Also, this theory helps you add to winners, and if you never add to losers, you now have statistical odds in your favor. I got the idea for the study reading about turtle trader method and how that statistical edge is really why it works, always adding on every breakout. Keep in mind that I never buy or sell breakouts to initiate trades, only to scale in.
~Cheers!~ ~B3
Parabolic GlitterThis indicator overlays a series of Parabolic Stop And Reverses (SARs) to continuously illustrate trends as they form in addition to a range of good possible levels at which to place stop orders.
The Initial Start argument gives the minimum value for the SAR function's "Start" argument. The Increment/Start Ratio argument gives the ratio of the SAR function's "Increment" and "Start" arguments (i.e. SAR default is Start = 0.02, Increment = 0.02, therefore Increment/Start Ratio = 1). The same logic applies to the Max/Start Ratio Argument (i.e. SAR default is Start = 0.02, Max = 0.2, therefore Max/Start Ratio = 10).
The Adaptive Coloring argument determines whether the plotting points are red in downtrends and green in uptrends, or if all the plotted points are given the same color (defaults to silver).
Unemployment Momentum ModelThis model uses a Smoothed RSI to measure the momentum of the Civilian Unemployment Rate as published by FRED. The behavior of the unemployment rate makes it ideal for applying momentum-based timing techniques because it tends to rise sharply in a short time period and then declines gradually over a longer period. Using other basic momentum-based timing techniques also works well (e.g., EMA crossover, MACD, ROC, etc.)
Please note that you cannot trade the unemployment rate directly. This model is meant to help you understand the state of the current economy in the context of unemployment.
Stochastic Momentum Index (SMI)Stochastic Momentum Index (SMI) or Stoch MTM is used to find oversold and overbought zones. It also helps to figureout whether to enter short trade or long trade.
Red Shade in the Top indicates that the stock is oversold and the Green shade in the bottom indicates overbought.
Strategy:
Enter Long once the Overbought Zone ended and there's a crossover below -35.
Exit Long once the oversold zone is ended and there's a crossover.
Enter Short once the oversold zone is ended and there's a crossover above 35.
Exit Short once the Overbought Zone ended and there's a crossover.
Backup: Always use with another indicator because there will be multiple up and down movement in one Trend.
Matrix ModThis is the Matrix oscillator made by glaz. So credit goes to him.
I made some minor modifications to it:
1. added a zeroline
2. added 3 options to color bars/candles depending on:
- if the oscillator is above/below 0
- if it's oversold/bought*
- if the matrix has a green bar or a red
That's all :)
Momentuminator 1.0Here we have a general purpose momentum based long and short flip flop with optional profit target and maximum loss.
Program development: Boffin Hollow Lab
Author: Tarzan at tradingview.com
Release: Version 1.0 May 2016
Please Note: Past Performance is not necessarily indicative of future results
Relative Vigour Index (RVI). EhlersRelative Vigor Index - RVI
------------------------------------
An indicator used in technical analysis that measures the conviction of a recent price action and the likelihood that it will continue. The RVI compares the positioning of a security's closing price relative to its price range, and the result is smoothed by calculating an exponential moving average of the values.
The RVI indicator is calculated in a similar fashion to the stochastic oscillator, but the vigor index compares the close relative to the open rather than to the low.
Traders expect the RVI value to grow as the bullish trend gains momentum because in this type of environment, a security's closing price tends to be at the top of the range while the open is near the low of the day.
Usage Example: www.investopedia.com
Forex Master v2.0 (EUR/USD)This is version 2 of my Forex Master algorithm originally posted here:
BACKTEST CONDITIONS:
Initial equity = $100,000 (no leverage)
Order size = 100% of equity
Pyramiding = disabled
TRADING RULES:
Long entry = EMA5(RSI20) cross> 50
Profit limit = 50 pips
Stop loss = 50 pips
Short entry = EMA5(RSI20) cross< 50
Profit limit = 50 pips
Stop loss = 50 pips
Long entry = Short exit
Short entry = long exit
DISCLAIMER: None of my ideas and posts are investment advice. Past performance is not an indication of future results. This strategy was constructed with the benefit of hindsight and its future performance cannot be guaranteed.
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
BUY & SELL PRESSURE XeLMod V2BUY & SELL PRESSURE Oscillator
Ver. 2.0 XelMod
WHAT'S THIS?
This is an UPDATED version of a previous script already posted.
List of changes from previous script:
Separated as Column Histogram just the Regressive (Rate-Of-Change) Force of the indicator which gives a faster response of the trend.
Default period is now set to 81, as better Oscillator swing lagging.
This is an excelent momentum indicator very similar to ADX but in a candle weighting distribution rather than ranges.
For additional reference:
Karthik Marar BUY AND SELL PRESSURE INDICATORS.
Cheers!
Any feedback will be welcome...
@XeL_Arjona
BUY & SELL PRESSURE by RegressionBUY & SELL PRESSURE by Regression Analysis at candle price/volume (Rate-Of-Change)
Ver. 3 By Ricardo M Arjona @XeL_Arjona
DISCLAIMER:
The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets.
The embedded code and ideas within this work are FREELY AND PUBLICLY available on the Web for NON LUCRATIVE ACTIVITIES and must remain as is.
WHAT'S THIS?
This is my 3rd. revision of the original implementation for AmiBroker by Karthik Marar's of it's BUY AND SELL PRESSURE INDICATORS but this time, constructed under a complete REGRESSIVE ANALYSIS premise based in Rate Of Change (A kind of Slope but measured in % Performance).
Some minimal adaptation's (and cleaning) have been made:
Instead of simple Range calculation at price, Rate Of Change (Regressive) is used.
Oscillator of Pressure can be deactivated in favor of a simple RoC Cumulative Pressures at candle.
Oscillator can read Volume data from external tickers for accurate Index calculation. ( NYA can use TVOL as example.)
Code is small, cleaner and faster =) !
Cheers!
Any feedback will be welcome...
@XeL_Arjona
ST_Trend_ReversalSTRONG TREND REVERSAL INDICATOR
The code is the percentage difference between the spot price of a given financial asset and its 200-day MA of that period. My standard setup is Daily, and I think it's got very good predictive power at that timeframe.
It can be read in two ways:
1. Values extremely above or below the 200-period MA present chances of buying/selling agains the prevailing trend.
2. Values closely above or below the 200-period MA are make-or-break market periods, where a medium-term trend becomes evident. Breaks above or below the MA are associated with strong chances of directional movements. But it's not fool-proof as false breaks have become commonplace nowadays.
Other way to use it is as confirmation of breakdowns: For example, an asset that loses its 200-day MA and then can't rally above it becomes exposed to steep losses afterwards.
It's also helpful to use in volatility trading: the closer the asset goes to its MA, the lower goes implied vol, and thus better opportiunities to be long volatility on those occasions where direction is hard to predict.
STRI = close/(200dMA)
Values over 100 indicate percentage premiums of spot vs its moving average.
Values below indicate percentage discounts of spot vs its moving average.
SMI BarsUses SMI (Stochastic Momentum Index) to set bar colors:
When SMI above overbought, bar color is red.
When SMI is between 0 and overbought, bar color is maroon
When SMI is between oversold and 0, bar color is green
When SMI is below oversold, bar color is lime.
When SMI crosses above or below 0, bar color is orange.
SPY Master v1.0This is a simple swing trading algorithm that uses a fast RSI-EMA to trigger buy/cover signals and a slow RSI-EMA to trigger sell/short signals for SPY, an xchange-traded fund for the S&P 500.
The idea behind this strategy follows the premise that most profitable momentum trades usually occur during periods when price is trending up or down. Periods of flat price actions are usually where most unprofitable trades occur. Because we cannot predict exactly when trending periods will occur, the algorithm basically bets money on all trade opportunities during all market conditions. Despite an accuracy rate of only 40%, the algorithm's asymmetric risk/reward profile allows the average winner to be 2x the average loser. The end result is a positive (profitable) net payout.
TRADING RULES:
Buy/Cover = EMA3(RSI2) cross> 50
Sell/Short = EMA5(RSI2) cross< 50
BACKTEST SETTINGS:
- Period = March 2011 - Present
- Initial capital = $10,000
- Dividends excluded
- Trading costs excluded
PERFORMANCE COMPARISON:
There are 657 trades, which means 1,314 orders. Assuming each order costs $2 (what I pay for at Interactive Brokers), total trading costs should be $2,628.
-SPY (buy & hold) = 132.73 ---> 193.22 = +45.57% (dividends excluded)
-SPY Master v1.0 = $12,649 - $2,628 = $10,021 = +100.21%
DISCLAIMER: None of my ideas and posts are investment advice. Past performance is not an indication of future results. This strategy was constructed with the benefit of hindsight and its future performance cannot be guaranteed.
Forex Master (EUR/USD)ATTENTION:
This is a symmetrical algorithm designed only for trading EUR/USD on the 1h time frame. For other currency pairs and time frames, you need to re-calibrate the RSI-EMAs as well as the profit targets and stop losses.
BACKTEST CONDITIONS:
Initial equity = $100,000 (no leverage)
Order size = 100% of equity
Pyramiding = disabled
TRADING RULES:
Long entry = EMA20(RSI10) cross> 50
Profit limit = 50 pips
Stop loss = 50 pips
Short entry = EMA30(RSI30) cross< 50
Profit limit = 50 pips
Stop loss = 50 pips
Long entry = Short exit
Short entry = long exit
DISCLAIMER: None of my ideas and posts are investment advice. Past performance is not an indication of future results. This strategy was constructed with the benefit of hindsight and its future performance cannot be guaranteed.
Stefan Krecher: Jeddingen DivergenceThe main idea is to identify a divergence between momentum and price movement. E.g. if the momentum is rising but price is going down - this is what we call a divergence. The divergence will be calculated by comparing the direction of the linear regression curve of the price with the linear regression curve of momentum.
A bearish divergence can be identified by a thick red line, a bullish divergence by a green line.
When there is a divergence, it is likeley that the current trend will change it's direction.
Looking at the chart, there are three divergences that need to get interpreted:
1) bearish divergence, RSI is overbought but MACD does not clearly indicate a trend change. Right after the divergence, price and momentum are going up. No clear signal for a sell trade
2) bearish divergence, RSI still overbought, MACD histogram peaked, MACD crossed the signal line, price and momentum are going down. Very clear constellation for a sell trade.
3) two bullish diverences, RSI is oversold, MACD crossover near the end of the second divergence, price and momentum started rising. Good constellation for a buy trade. Could act as exit signal for the beforementioned sell trade.
More information on the Jeddingen Divergence is available here: www.forexpython.com
HL BREAKOUTThe base of the indicator is the breakout of historic High and lows.
There are 3 basic configurations
1° The High length that measure the latest 10 bars and make the "higher high"
2° The Low length taht measure the latest 10 bars and make the "lower low"
3° The Breakout PIPs administrator that defines how much pips are needed from the latest higher high to be defined as a level breakout.
So the strategy is super easy. The indicators show you the 10...20.. or whatever you need old bars high and lows.
When a breakout of that levels occurs and the candle "close" above or below and the close are more than "X" amount of PIPs a marker show up. The marker are the signals of buy and sell
I test some configurations, and work in all timeframes but.
I suggest
10, 10, 0.0003 for timeframes from 1m to 15m
and 10, 10, 0.0005 for timeframes higher than 15m
Maybe you need to test other configurations for 4h 1 day, etc the basics are the same in all timeframes, the main difference is the amount of pips that will be considered as "breakout" the higher timeframe the higher amount you need to prevent false positives.
Last words: 0.000X are for the PIPs for currencies that have 4 or 5 decimals like euro and other, if you use in YEN change it to a configuration of 2 digits decimal. Just that.
Have "fun" !
Simple RSI-MA Algo Beats DOW By Huge Margin Over Past 100 Years!This simple RSI-MA long/short algorithm beats the Dow by a FREAKING HUGE margin over the past century (excluding dividends and trading costs).
The algorithm uses a fast SMA of the RSI as a buy/cover signal and a slow SMA of the RSI as a sell/short signal.
Backtest period = 09/17/1916 - 11/02/2015
Dow = 98 --> 17,830 = +18,094% = 5.38% CAGR
Algorithm = net profit + open P/L = +43,349% = 6.31% CAGR
Notice how the algorithm dodged both the 30s' Great Depression and the 2008 Crisis. Pretty cool huh? :)
ALGORITHM'S FORMULA (use weekly chart):
Buy/Cover = MA10(RSI10) cross> 50
Sell/Short = MA50(RSI10) cross< 50
STRATEGY TESTER'S SETTINGS:
- Initial cash = $10,000
- Pyramiding disabled
- Re-investment enabled (order size = 100% of equity )
- Trade re-calculations disabled
DISCLAIMER: None of my ideas and posts are investment advice. Past performance is not an indication of future results. This strategy was constructed with the benefit of hindsight and its future performance cannot be guaranteed.