RMI TFM:Chart + 3D + 1W + 1M This indicator defaults to;
Period: 20
Look Back For Momentum :5
OverBought: 80
OverSold :20
of a Relative Momentum Index indicator;
1- RMI value according to the candle duration selected in the chart, (black)
2- RMI value according to pure 3D candles with the security() function, (blue)
3- With the security() function, the RMI value according to pure 1W candles, (orange)
4- With the security() function, the RMI value (Gray) according to 1M candles shows.
It also calculates RMI according to the price value you enter manually and shows or hides it according to your preference.
モメンタムインジケーター (MOM)
Trend Momentum Divergence (TMD)Shout out to Lazy Bear, Bunghole, and Trading View for script code for this make.
In this study you will have a visual representation of the strength and momentum of a trend and possibilities of where the market is heading. You can use the Blue and White momentum waves to spot divergences in a up oe down trend for potential reversals. When a green dot appears under the lower level with divergence then it is a indication that we should consider looking to buy. If the red dot appears over the upper level with divergence we should be looking to short/sell. The custom MFI indicator determines how much money is flowing into the market. If it is green that means money is flowing into the market and if it shows red it means that money is flowing out of the market. You can spot divergences in the money flow as well as the RSI. The Blue and Green lines from the RCI3line indicator are used for higher timeframe momentum based on current chart timeframe and we can see when they cross over.
Dynamic Zones Polychromatic Momentum Candles [Loxx]Dynamic Zones Polychromatic Momentum Candles is a candle coloring, momentum indicator that uses Jurik Filtering and Dynamic Zones to calculate the monochromatic color between two colors.
What is Jurik Volty used in the Juirk Filter?
One of the lesser known qualities of Juirk smoothing is that the Jurik smoothing process is adaptive. "Jurik Volty" (a sort of market volatility ) is what makes Jurik smoothing adaptive. The Jurik Volty calculation can be used as both a standalone indicator and to smooth other indicators that you wish to make adaptive.
What is the Jurik Moving Average?
Have you noticed how moving averages add some lag (delay) to your signals? ... especially when price gaps up or down in a big move, and you are waiting for your moving average to catch up? Wait no more! JMA eliminates this problem forever and gives you the best of both worlds: low lag and smooth lines.
What are Dynamic Zones?
As explained in "Stocks & Commodities V15:7 (306-310): Dynamic Zones by Leo Zamansky, Ph .D., and David Stendahl"
Most indicators use a fixed zone for buy and sell signals. Here’ s a concept based on zones that are responsive to past levels of the indicator.
One approach to active investing employs the use of oscillators to exploit tradable market trends. This investing style follows a very simple form of logic: Enter the market only when an oscillator has moved far above or below traditional trading lev- els. However, these oscillator- driven systems lack the ability to evolve with the market because they use fixed buy and sell zones. Traders typically use one set of buy and sell zones for a bull market and substantially different zones for a bear market. And therein lies the problem.
Once traders begin introducing their market opinions into trading equations, by changing the zones, they negate the system’s mechanical nature. The objective is to have a system automatically define its own buy and sell zones and thereby profitably trade in any market — bull or bear. Dynamic zones offer a solution to the problem of fixed buy and sell zones for any oscillator-driven system.
An indicator’s extreme levels can be quantified using statistical methods. These extreme levels are calculated for a certain period and serve as the buy and sell zones for a trading system. The repetition of this statistical process for every value of the indicator creates values that become the dynamic zones. The zones are calculated in such a way that the probability of the indicator value rising above, or falling below, the dynamic zones is equal to a given probability input set by the trader.
To better understand dynamic zones, let's first describe them mathematically and then explain their use. The dynamic zones definition:
Find V such that:
For dynamic zone buy: P{X <= V}=P1
For dynamic zone sell: P{X >= V}=P2
where P1 and P2 are the probabilities set by the trader, X is the value of the indicator for the selected period and V represents the value of the dynamic zone.
The probability input P1 and P2 can be adjusted by the trader to encompass as much or as little data as the trader would like. The smaller the probability, the fewer data values above and below the dynamic zones. This translates into a wider range between the buy and sell zones. If a 10% probability is used for P1 and P2, only those data values that make up the top 10% and bottom 10% for an indicator are used in the construction of the zones. Of the values, 80% will fall between the two extreme levels. Because dynamic zone levels are penetrated so infrequently, when this happens, traders know that the market has truly moved into overbought or oversold territory.
Calculating the Dynamic Zones
The algorithm for the dynamic zones is a series of steps. First, decide the value of the lookback period t. Next, decide the value of the probability Pbuy for buy zone and value of the probability Psell for the sell zone.
For i=1, to the last lookback period, build the distribution f(x) of the price during the lookback period i. Then find the value Vi1 such that the probability of the price less than or equal to Vi1 during the lookback period i is equal to Pbuy. Find the value Vi2 such that the probability of the price greater or equal to Vi2 during the lookback period i is equal to Psell. The sequence of Vi1 for all periods gives the buy zone. The sequence of Vi2 for all periods gives the sell zone.
In the algorithm description, we have: Build the distribution f(x) of the price during the lookback period i. The distribution here is empirical namely, how many times a given value of x appeared during the lookback period. The problem is to find such x that the probability of a price being greater or equal to x will be equal to a probability selected by the user. Probability is the area under the distribution curve. The task is to find such value of x that the area under the distribution curve to the right of x will be equal to the probability selected by the user. That x is the dynamic zone.
Included
Loxx's Expanded Source Types
5MSM VISHNU5MSM VISHNU Indicator for Trending Markets originally written by patrick1994.
It was originally based on the MACD 12-26 and the 50 bar EMA .
The macd hist is color coded with green as buy and sell as red.
I added an option to use a couple of lower lag ema's (See line 13 - ema_signal).
5MSM VISHNU with MACD Indicator for Trending Markets
Originally written by Trading Rush
Note that the user may choose lower lags to compute the MACD signals
added lower lag ema functions - see lines 21 to 30
added plot for the MACD signal 'hist' - computed in lines 36 to 41
The extra MACD line was added for clarity for the placement of the buy sell signals.
BBboss Stoch Trading SuiteIntroducing the BBboss Stoch Trading Suite
***Note***
This indicator's parameters and settings are specifically used for bitcoin technical analysis.
Best used on the lowest time frame chart. (15m - 1h)
Definitions:
Volatility is a statistical measure of the dispersion of returns for a given security or market index, measured by the standard deviation of logarithmic returns.
Stochastic Oscillator is a momentum indicator comparing a particular closing price of a security to a range of its prices over a certain period of time. The sensitivity of the oscillator to market movements is reducible by adjusting that time period or by taking a moving average of the result. It is used to generate overbought and oversold trading signals, utilizing a 0–100 bounded range of values.
Plotted Components of the Trading Suite:
A) A Table with input selected time frames that show the stochastic and volatility value for each asset.
The first column shows the price needed for the stochastic momentum indicator to reverse or change slope.
The second column plots the stochastic value of the input selected timeframes.
The third column plots the direction of the stochastic oscillator
The fourth column plots the volatility of the selected time frames. 0 being low volatility and 100 being highest volatility with a default lookback period of 255.
B) Ray Lines on price chart to reflecting the price needed for the stochastic momentum indicator to reverse or change slope.
C) Historical Lines on the price chart to see more lines on historical bars
Deeper Concepts :
In finance, “mean reversion” is the assumption that a financial instrument's price will tend to move towards the average price over time.
If we apply that same logic to volatility as represented here by the Bollinger band width percentile, the assumption is that the Bollinger band width percentile will tend to contract from extreme highs, and expand from extreme lows over time corresponding to repeated phases of contraction and expansion of volatility .
It is clear that for most assets there are periods of directional trending behavior followed by periods of “consolidation” ( trading sideways in a range ).
This often ends with a tightening range under reducing volume and volatility ( popularly known as “the squeeze” ).
The squeeze typically ends with a “breakout” from the range characterized by a rapid increase in volume , and volatility when price action again trends directionally, and the cycle repeats.
Note: I have turned off Historical Lines by default because I made this indicator specifically for scalping lower timeframes.
With this indicator, you can visualize the momentum on every timeframe on the table and chart to get a real time view on where to manage your positions.
MACD Potential Divergence - FontiramisuIndicator showing potential momentum divergences on MACD Momentum.
The problem with the classic divergence is that when the signal appears, it is sometimes too late to enter a trade .
The potential divergence corrects this problem by signaling the beginning of a potential divergence .
MACD is a momentum indicator that offers relevant insights with divergences.
Potential divergences are indicated with the letter B and a red color for Bearish Div or Green color for Bullish Div .
Potential divergence is confirmed when the line and the label "Bear"' or "Bull" appear.
MA SLope Potential Divergence - FontiramisuIndicator showing potential momentum divergences on Moving Average's Slope.
The problem with the classic divergence is that when the signal appears, it is sometimes too late to enter a trade .
The potential divergence corrects this problem by signaling the beginning of a potential divergence .
Moving average slope is a momentum indicator that offers relevant insights with divergences
Potential divergences are indicated with the letter B and a red color for Bearish Div or Green color for Bullish Div .
Potential divergence is confirmed when the line and the label "Bear"' or "Bull" appear.
You can either show fast slope's divergences or slow slope's divergences or slow/fast diff's divergences.
TTM Regression°This oscillator attempts to provide context to John Carter's "TTM Squeeze" indicator.
Similar to my MAR° indicator, statistically significant areas based on the past n candles (Lookback) are calculated to provide context for the y-axis values of the TTM indicator.
Note that Carter's squeeze idea has been dropped in favour of the regression bands, in that they offer a clear visual momentum squeeze condition.
The regression bands identify temporary exhaustion of bullish (purple) and bearish (green) momentum; these could potentially be seen as overbought and oversold indications.
The dotted midlines dictate intra-zones where momentum could reverse to continue the larger trend.
All the latter behave similarly to Support and Resistance zones.
The oscillator can also be normalized over a given interval to show results on a scale between 0 and 100, preserving even more context over time.
You should experiment for yourself to find out what is best for you in terms of scale, and Normalization Period.
Normalization Example: on the left you can observe how the momentum is visualized differently based on the scale, given the rapid momentum to the upside.
// –––. Regular
// –––. Normalized
It's crucial to use this oscillator as confluence only and not to take trades based solely on its indications.
At the moment there are no alerts set for this script, open to suggestions :)
Fast and Slow Trend-Line Momentum [Loxx]Fast and Slow Trend-Line Momentum is a momentum indicator using FATL, SATL, RFTL, & RSTL Digital Filters
What is FTLM-STLM?
Fast Trend Line Momentum (FTLM) and Slow Trend Line Momentum (SLTM) indicators show the rate of price change, FATL and SATL are calculated the similar way as Momentum indicator.
FTLM(bar) = FATL(bar) – RFTL(bar)
STLM(bar) = SATL(bar) – RSTL(bar)
The main difference FTLM from the classic Momentum indicator is the following: it source prices processed by digital filters instead of close prices itself. As a result, FTLM looks smoothed and regular, in contrast with classic Momentum technical indicators.
Included:
-Bar coloring
RAS.V2 Strength Index OscillatorHeavily modified version of my previous "Relative Aggregate Strength Oscillator" -Added high/low lines, alma curves,, lrc bands, changed candle calculations + other small things. Replaces the standard RSI indicator with something a bit more insightful.
Credits to @wolneyyy - 'Mean Deviation Detector - Throw Out All Other Indicators ' And @algomojo - 'Responsive Coppock Curve'
And the default Relative Strength Index
The candles are the average of the MFI ,CCI ,MOM and RSI candles, they seemed similar enough in style to me so I created candles out of each and the took the sum of all the candle's OHLC values and divided by 4 to get an average, same as v1 but with some tweaks. Previous Peaks and Potholes visible with the blue horizontal lines which adjust when a new boundary is established. Toggle alma waves or smalrc curves or both to your liking. This indicator is great for calling out peaks and troughs in realtime, although is best when combined with other trusted indicators to get a consensus.
Multi-timeframe MomentumThe Multi-timeframe momentum indicator is similar in concept to a velocity indicator like rate-of-change, but visualizes smoothed price changes by applying an EMA and linear regression to price difference at every bar. Momentums from 1 minute to 1 quarter are plotted on a single chart using the request.security function. Standard and Fibonacci timeframes are available as well as the ability to hide high-timeframes to keep the chart clean. Like any oscillator, divergence in the momentums can be used to identify price reversals in conjunction with support and resistance. When linear regression is applied, high and low inflection points are used to identify reversals in a manner similar to MACD.
Much love to DumpCap! The script is presented sans secret sauce.
MZ Momentum Non Repainting HTF HFT Scalper BotThis is an original script meant to be a high frequency trader that works on higher time frame calculations. I came up with the idea that using calculus I can figure out the actual rate of change and momentum with different calculations than the momentum indicator that is provided by trading view. Once momentum is shifted on a small time frame, it will provide an entry signal. The script is meant to be used on an algorithmic trading system for scalping purposes. It should be run on a one minute time frame.
Set it up on a one minute chart - setup your bot on a one minute interval.
Find the source of your data. You can use any time frame, open, close. high, low, olc4. Open is pretty much guaranteed to not have any repainting issues - although all the other calcs use a custom isbarconfirmed security repaint calculation.
Set your rate of change period - typically I use a one minute time frame for this as well - but set my length fairly long (30-40).
Then set your period for momentum calculation. This will sample the rate of change data to figure out your momentum. I typically try a setting of 6-8. If that doesn't work, try setting it about the same as the rate of change period and add or subtract a few from there.
Unfortunately due to various plotting constraints in Pinescript, you cannot plot the rate of change and momentum and price in the same.
Set your trigger point. I try values -30, -20, -10, 0, 1. Then finesse to get an earlier entry signal. You should account for a slight delay from the signal to the actual entry. Your backtest should test well, but please note that does not gaurantee results. In my findings, I have seen that there is a slight minimal delay between signal to entry and that can make the difference whether your trade is profitable or not.
Use the show data to show you additional data when you are backtesting. This can allow you to try to filter out results or market conditions that do not work. I typically work with the RSI and use the 30 minute and 15 minute RSIs. I make sure that it is trading within a certain band - about 40-75. You can try the inverse and only buy during really low RSI's as well.
Use the enter and close messages to setup your webhook messages. But I recommend to allow the algo trading platform to close the trade for you based on their calcs since that platform knows the actual price level and when it has become profitable.
Filters have been setup for
Moving Average Variants - any time frame, any length.
RSI - Any time frame, any length,
Future Plans: ATR Filter so you can filter out low volatility periods.
Send me a message with any suggestions.
STD Aadaptive, floating RSX Dynamic Momentum Index [Loxx]STD Aadaptive, floating RSX Dynamic Momentum Index is an attempt to improve Chande's original work on Dynamic Momentum Index. The full name of this indicator is "Standard-Deviation-Adaptive, floating-level, Dynamic Momentum Index on Jurik's RSX".
What Is Dynamic Momentum Index?
The dynamic momentum index is used in technical analysis to determine if a security is overbought or oversold. This indicator, developed by Tushar Chande and Stanley Kroll, is very similar to the relative strength index (RSI). The main difference between the two is that the RSI uses a fixed number of time periods (usually 14), while the dynamic momentum index uses different time periods as volatility changes, typically between five and 30.
What is RSX?
RSI is a very popular technical indicator, because it takes into consideration market speed, direction and trend uniformity. However, the its widely criticized drawback is its noisy (jittery) appearance. The Jurk RSX retains all the useful features of RSI, but with one important exception: the noise is gone with no added lag.
Differences
RSX is used instead of RSI for the calculation, producing a much smoother result
Standard deviation is used to adapt the RSX calculation
Floating levels are used instead of fixed levels for OB/OS
Included
-Change bar colors
Magma MomentumThis is a simple and easy-to-read momentum indicator that can help you identify divergences and shifts in momentum.
A divergence is when price moves in one direction but the indicator moves in the opposite direction. This typically is a sign of price exhaustion and can indicate that price is about to reverse, at least momentarily.
Here is a comparison with RSI (relative strength index) and some examples of divergences.
Enjoy.
Whale Momentum Wave Oscillator//Credits: @Noldo - Whale Trading System @rumpypumpydumpy - ALMA Ribbons @QuantNomad - Elastic Volume Weighted Moving Average
Composite Indicator, created by taking QuantNomad's EVWMA and using that as input for a variation of rumpypumpydumpy's ALMA Ribbons. Each Ribbon had its sub ribbons summed up and then averaged. The averages were then fed through the ta.rsi and the ta.mom functions giving us our momentum waves. Signal line created from the close value being fed through the ta. ema into the ta.rsi then ta.wma then ta.mom function. Why those in that order? No reason in particular just what I stumbled upon after many variations. I then overlayed Noldo's Whale Trading System to view what "whales" were doing, giving us a good view of when capital is flowing into and out the asset which often contradicts the momentum waves prior to trend changes. Provides a nice visual for how capital is moving along with momentum. Can see when smart money is buying up a big dip or of they seem to still be waiting on the sidelines.
Jurik Velocity ("smoother moment") [Loxx]Jurik Velocity ("smoother moment") is a very simple and very useful calculation. This indicator was created to expose this calculation to folks who might find it useful in their own indicators and strategies.
What is velocity?
Velocity is a vector quantity that refers to "the rate at which an object changes its position." Imagine a person moving rapidly - one step forward and one step back - always returning to the original starting position. While this might result in a frenzy of activity, it would result in a zero velocity. Because the person always returns to the original position, the motion would never result in a change in position. Since velocity is defined as the rate at which the position changes, this motion results in zero velocity. If a person in motion wishes to maximize their velocity, then that person must make every effort to maximize the amount that they are displaced from their original position. Every step must go into moving that person further from where he or she started. For certain, the person should never change directions and begin to return to the starting position.
Velocity is a vector quantity. As such, velocity is direction aware. When evaluating the velocity of an object, one must keep track of direction. It would not be enough to say that an object has a velocity of 55 mi/hr. One must include direction information in order to fully describe the velocity of the object. For instance, you must describe an object's velocity as being 55 mi/hr, east. This is one of the essential differences between speed and velocity. Speed is a scalar quantity and does not keep track of direction; velocity is a vector quantity and is direction aware.
Included:
-Toggle on/off bar coloring
Happy trading!
Relative Aggregate Strength OscillatorCredits to
@wolneyyy - "Mean Deviation Detector - Throw Out All Other Indicators"
And
@algomojo - "Responsive Coppock Curve"
And the default Relative Strength Index
The candles are the average of the MFI ,CCI ,MOM and RSI values presented as candles, they seemed similar enough in style to me so I created candles out of each and the took the sum of all the candle's OHLC values and divided by 4 to get an average.
In the Background we have @wolneyyy's - "Mean Deviation Detector - Throw Out All Other Indicators" in blue
along with @algomojo's - "Responsive Coppock Curve" in red and green.
Momentum Scalping & Swing Signals With AlertsThis Momentum indicator shows a green or red ribbon when smoothed momentum is bullish or bearish. It also includes a long moving average for overall trend confirmation. Wait until the ribbon holds above or below the long moving average and take positions in that direction.
To get an easier to read momentum indicator, I smoothed the momentum out and paired it next to a short term RMA. These two together form the ribbon that will show you early reversals and trend direction. The long moving average is used as an overall trend detector and confirmation for longer term trends.
***HOW TO USE***
Scalping: Enter longs when the ribbon turns green and enter shorts when the ribbon turns red. Exit positions when the ribbon turns the opposite color or crosses the long moving average.
Swing Trading: When the ribbon holds above the long moving average or breaks out and retests it, look for long positions and exit when the ribbon turns red or crosses the long moving average. When the ribbon holds below the long moving average or breaks down and retests it, look for short positions and exit when the ribbon turns green or crosses the long moving average.
***DETAILS***
This indicator gives early reversal signals very well and waiting for the momentum ribbon to cross the long moving average helps to get you into positions when the market is ready to really move while filtering out some of the noise.
The ribbon and background will change to green or red depending on whether it is currently bullish or bearish.
There is also a label that changes colors and tells you if momentum is bullish or bearish and also whether the momentum ribbon is above or below the long moving average.
Green or red circles will appear on the indicator when there is a bullish or bearish cross of the momentum ribbon and the long moving average.
It includes alerts that trigger when momentum is turning bullish/bearish or when the momentum ribbon is crossing the long moving average.
***CUSTOMIZATION***
Each piece of this indicator can be customized to suit your preferences including the momentum source, length, smoothing length, short moving average length and long moving average length. You can also turn off the labels, signals and long moving average. All of these settings can be managed within the indicator settings input tab.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This Momentum Scalping & Swing Signals indicator can be used on all timeframes.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are Trend Friend Scalp & Swing Trade Signals, Volume Spike Scanner, Buy & Sell Pressure Volume Profile, and RSI Scalper in combination with this momentum indicator. They all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
Stacked EMAsStacked Daily & Weekly EMAs + Labels
Pretty much self-explanatory indicator that shows the current momentum based on the key exponential moving averages.
Three stages of the EMAs:
1. Stacked Positively (Bullish) - EMAs are stacked on top of each other which represents a healthy bullish uptrend (green Label).
2. Stacked Negatively (Bearish) - EMAs are stacked below each other meaning the trend is bearish (red label).
3. Stacked Neutral (Neutral) - EMAs are crossing each other without any clear direction = chop (yellow label).
Hope it helps.
LNL Squeeze ArrowsIf you struggle with the entries, low % win rate or trading the squeeze setup overall, this indicator is for you!
If you look closely at your losing trades, chances are the losers have one thing in common = inverse momentum. I created this tool after I found out that Stacked EMAs and picture perfect trend is not the only thing you need for a squeeze setup. Squeeze arrows pinpoint the exact moment where the squeeze momentum change happens (momentum change is absolutely crucial for the squeeze setup). These arrows will help you stay out of "everything was aligned but still failed" type of setups.
Squeeze Arrows:
1. Momentum Arrows (cyan blue/red) - Showing the best possible moment for an entry during the squeeze (after you see one, you can expect the squeeze to fire soon).
2. Slingshot Arrows (yellow) - Even though you can trade off of them, these arrows work mostly as a confirmation & caution tool. If an inverse slingshot arrow is plotted during a squeeze that means caution = you should wait because momentum is not on your side thus there there is a quite high probability that the squeeze can fire the other direction.
Squeeze Dots Trigger:
Represents the number of red dots (squeeze) after which the arrows should plot. Default = 5 (only after 5 red dots, arrows will appear), some traders like to set it on 3 or even 1.
Tips & Tricks:
1.Breakout or Bailout Mentality
- The big advantage of the arrows is the fact that they either work straight away or they don't. This is where you can apply the breakout or bailout mentality and really focus exclusively on the breakout part of the whole squeeze move. You can minimize the risk by putting mental stops just a few points below the last low of the candle where the arrows appeared. That way you can be stopped out even during the squeeze = won't hurt as much as when the squeeze fire the opposite direction. Reward may be the same but the risk is lower.
2. Yellow Flags
- Use the slingshot arrows as a caution tool. Even if all your squeeze criteria are met. Yellow inverse arrow = caution (wait for the true momentum change). Once the slingshot arrow appears in the conext of the trend, you are good to go.
3. Last Arrow Rule
- Sometimes you will see a lot of arrows during the longer squeezes. This is where the last arrow rule come in handy. The last arrow you see on chart can be canceled anytime by a new one. The last arrow is the valid one!
Hope you can squeeze from these squeeze arrows as much as there is to squeeze so you can finally trade the squeeze with ease.
Hope it helps.
On Balance Volume MomentumA combination of "On Balance Volume (OBV)" and "Volume Oscillator".
"OBV Momentum" is a trend momentum indicator, that can be used to identify strong trends and also trend changes based on volume.
High positive values indicate strong volume on the buy side, high negative values indicate strong volume on the sell side.
An increasing OBV momentum indicates a strengthening buy trend or a weakening sell trend,
decreasing OBV Momentum indicates a strengthening sell trend or weakening buy trend.
OBV Momentum is calculated by comparing a short vs. a long moving average and plotting the difference in volume.
OBV Momentum metric is absolute volume.
Accelerating Dual Momentum ScoreThis is a score metric used by the Accelerating Dual Momentum strategy.
According to the website you referenced when you created, the strategy is as follows:
Strategy Rules
This strategy allocates 100% of of the portfolio to one asset each month.
1. On the last trading day of each month, calculate the “momentum score” for the S&P 500 ( SPY ) and the international small cap equities (SCZ). The momentum score is the average of the 1, 3, and 6-month total return for each asset.
2. If the momentum score of SCZ > SPY and is greater than 0, invest in SCZ.
3. If the momentum score of SPY > SCZ and is greater than 0, invest in SPY .
4. If neither momentum score is greater than 0, calculate the 1-month total return for long-term US Treasuries ( TLT ) and US TIPS (TIP). Invest in whichever has the higher return.
Source: portfoliodb.co
EMA Slope HistogramThe script shows change in a single EMA over a specified period as a histogram. The period of EMA as well as Change period can be specified. Moreover, it also shows change in direction of EMA. The change can be negative for a downward trend and positive for an upward trend.