Combo Backtest 123 Reversal & Market Facilitation Index This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
The Market Facilitation Index is an indicator that relates price range to
volume and measures the efficency of price movement. Use the indicator to
determine if the market is trending. If the Market Facilitation Index increased,
then the market is facilitating trade and is more efficient, implying that the
market is trending. If the Market Facilitation Index decreased, then the market
is becoming less efficient, which may indicate a trading range is developing that
may be a trend reversal.
WARNING:
- For purpose educate only
- This script to change bars colors.
Index
Comparison (Malaysia Index & Sector)This is just a simple tool for convenient to compare and showing a clear image of all sector and index in Malaysia. They are just in one indicator. From this indicator, you can predict momentum of each sector in Malaysia, which is currently in bull or bear trend.
STRUCTURE
In the setting, the first line with the option of the following index (Malaysia Index) :
1. FBMKLCI
2. FTSEMYX:FBMSCAP
3. FTSEMYX:FBMACE
4. FTSEMYX:FBM70
5. FTSEMYX:FBMT100
6. FTSEMYX:FBMFLG
7. FTSEMYX:FBMEMAS
8. FTSEMYX:FA40
9. FTSEMYX:FBMMSCS
10. FTSEMYX:FBMAPMYR
11. FTSEMYX:FBMMSCAP
The rest of lines is all of the following sector (Malaysia Sector):
1. Technology
2. Telecommunication
3. Health
4. Consumer Product
5. Industrial Product
6. Construction
7. Property
8. Plantation
9. Utilities
10. Transportation
11. Energy
12. REIT
13. Finance
The last line (Line 15) is provided for other stock/index which is not available in option to manually fill.
All sector and index price are smoothen by Moving Average (MA). The default moving average is Relative Moving Average (RMA) which is used in Relative Strength Index ( RSI ) Oscillator. But the range is different from RSI , it is from -100 to 100 instead of 0 to 100. In the end, result and interpretation are just the same as RSI . Green area indicates oversold area, while red area is overbought.
Other choice of Moving Averages are available to change.
The problem of putting all together is the script may take longer to process. It is just for convenient use.
Bottom-Up or Top-Down Invest?
RSI PlusRSI Plus:
☑️ Show the divergences.
☑️ Shows the approximate price of an RSI level (by default it is level 55 but it can be changed for any other level).
☑️ Shows the bulls and bears zones, in green when crossing level 50 up and red when crossing down.
☑️ Circle the highest and lowest levels as possible purchases and sales.
☑️ Includes a smoothed RSI.
RSI Plus:
☑️ Muestra las divergencias.
☑️ Muestra el precio aproximado de un nivel del RSI (por defecto viene el nivel 55 pero se lo puede cambiar por cualquier otro nivel).
☑️ Muestra la zonas de toros y osos, en verde cuando cruza hacia arriba el nivel 50 y rojo cuando cruza hacia abajo.
☑️ Marca con un circulo los niveles mas alto y mas bajos como posibles compras y ventas.
☑️ Incluye un RSI suavizado.
(FINNIFTY) NIFTY Financial Service FreeFloat VolumeThis indicator is build keeping in mind how the Indian Market is formed - the free-float market capitalization concept
1) Considered new FINNIFTY - Nifty Financial Service index stocks according to NSE
2) Multiplied each stock Volume by its Weightage given in NSE Site every month End - means giving importance to volume by its weightage
3) Green Candle - Considered as +Ve Volume , Red Candle - Considered as -Ve Volume
4) Diff of +Ve Volume & -Ve Volume give clear picture market will go up or down
Note:- This Indicator work only for 15 Min time frame
Gives better results good Risk Reward used near Supp/Resistance
Combine with FINNIFTY Advance-Decline Ratio give confidence on the move
Eg:-
Bullish Scenario
Near Support, Volume Turned -Ve to +Ve, Adv /Dec of Fin Nifty >11/15
or combine any candle patterns( Pin Bar ) at Sup/Res or combine with Chart Pattern(Triangle/ Rectangle )
Bearish Scenario - Vice Versa to above
Finex PremiumBitfinex:BTCUSD premium/discount compared to market average spot exchanges.
Smoothed option available.
Crypto Directional Movement Index DMI/ADXCrypto ADX + DMI
This indicator is a customised version of the ADX + DMI by J. Welles Wilder in 1978, with default settings optimal for cryptocurrencies.
What is the DMI (ADX) Indicator?
According to Investopedia:
DMI (ADX) consists of three indicators that measure a trend’s strength and direction. Three lines compose the Direction Movement Index (DMI): ADX (black line), DI+ (green line), and DI- (red line). The Average Directional Index (ADX) line shows the strength of the trend. The higher the ADX value, the stronger the trend. The color of the lines can be altered, but black, green, and red are the default in most software.
The Plus Direction Indicator (DI+) and Minus Direction Indicator (DI-) show the current price direction. When the DI+ is above DI-, the current price momentum is up. When the DI- is above DI+, the current price momentum is down.
This Version
The ADX default value has been changed to from 14 to 2 (optimal for cryptocurrencies). The background flashes red when the –DMI goes above the HZ1 threshold and green when the +DMI does the same. There is an option to change it so that it’ll only flash when the ADX and the DMI are both above the threshold. The ADX changes color when above HZ1.
Red and green plotshapes appear at DMI crossovers and three horizontal lines have also been added.
Any suggestions are most welcome
PIPT | Power Index Pool Token | DeFi indexPowerPool provides a DeFi index that has too many components to be used as a chart ticker.
So here is an indicator to bypass the ticker limit.
From the PowerPool docs : app.powerpool.finance
The chart shows it in comparison to other DeFi indexes, quite a difference as you can see!
DPI | DeFi Pulse IndexTokenSets and DeFi Pulse provide a DeFi index that has too many components to be used as a chart ticker.
So here is an indicator to bypass the ticker limit.
From the TokenSets docs : www.tokensets.com
The chart shows it in comparison to other DeFi indexes, quite a difference as you can see!
Smart Money Index (SMI)It came to my attention that one very common implementation of SMI was incorrect; rather than subtracting the first hour delta and adding the last hour delta it subtracts the whole day delta and adds the last 30m delta. While this indicator might have had some use, it is not what I understand to be the actual Smart Money Index and so I post this as a correction for use in other scripts.
Bollinger Bands Strategy with Intraday Intensity IndexFor Educational Purposes. Results can differ on different markets and can fail at any time. Profit is not guaranteed.
This only works in a few markets and in certain situations. Changing the settings can give better or worse results for other markets.
This is a mean reversion strategy based on Bollinger Bands and the Intraday Intensity Index (a volume indicator). John Bollinger mentions that the Intraday Intensity Index can be used with Bollinger Bands and is one of the top indicators he recommends in his book. It seems he prefers it over the other volume indicators that he compares to for some reason. III looks a lot like Chaikin Money Flow but without the denominator in that calculation. On the default settings of the BBs, the III helps give off better entry signals. John Bollinger however is vague on how to use the BBs and it's hard to say if one should enter when it is below/above the bands or when the price crosses them. I find that with many indicators and strategies it's best to wait for a confirmation of some sort, in this case by waiting for some crossover of a band. Like most mean reversion strategies, the exit is very loose if using BBs alone. Usually the plan to exit is when the price finally reverts back to the mean or in this case the middle band. This can potentially lead to huge drawdowns and/or losses. Mean reversion strategies can have high win/loss ratios but can still end up unprofitable because of the huge losses that can occur. These drawdowns/losses that mean reversion strategies suffer from can potentially eat away at a large chunk of all that was previously made or perhaps up to all of it in the worst cases, can occur weeks or perhaps up to months after being profitable trading such a strategy, and will take a while and several trades to make it all back or keep a profitable track record. It is important to have a stop loss, trailing stop, or some sort of stop plan with these types of strategies. For this one, in addition to exiting the trade when price reverts to the middle band, I included a time-based stop plan that exits with a gain or with a loss to avoid potentially large losses, and to exit after only a few periods after taking the trade if in profit instead of waiting for the price to revert back to the mean.
ADX Histogram with DI linesInspired by the user scarf from Tradingview. In contrast with that other indicator, this one instead of a simple moving average (SMA) for the ADX calculations, uses a running moving average (RMA) or also known as Wilder's Average. I like having a histogram for the DI lines over just having lines alone because it makes it easier to see. In addition I made it so that values less than 5 for the DI lines are colored lightly to note that the movement was less significant(might not matter but some might care about it, atleast I do). The ADX has a color fainting effect too, and when it goes above the threshold then it becomes black to note that it is trending, as the indicator suggests.
The advantages with these additions and changes are that it shows a more traditional moving average like the original author Wellers Wilder suggested and you can see the crossings and directional movement changes easier from seeing the colors on the histogram easier than you would by looking at the DI lines alone. The disadvantages are you won't be able to tell when the ADX line is above both DI lines and when the ADX then makes a decrease from there(which can sometimes show a reversal), but personally it doesn't matter too much to me and perhaps to those who care more about seeing the direction than having to focus on all those 3 lines crossing all over the place.
Choppiness Index and RSI by ceyhun
Choppiness Index and RSI by ceyhun
This indicator is based on the inverse relationship between CHOP and RSI.
Bar color
If the RSI is greater than CHOP, the Bar color will be blue.
If CHOP is greater than RSI, the bar color will be red.
CHOP
If CHOP is less than 38.2, the color will turn blue. positive
If the CHOP is between 38.2 and 61.8, the color will be yellow and neutral.
If CHOP is greater than 61.8, the color will turn red. negative
Rsi
If Rsi is greater than 61.8, the color will turn blue, positive
If Rsi is between 38.2 and 61.8, the color will be hexagonal and neutral
If Rsi is less than 38.2 the color will be red, negative
The Choppiness Index (CHOP) is an indicator designed to determine if the market is choppy (trading sideways) or not choppy (trading within a trend in either direction). The Choppiness Index is an example of an indicator that is not directional at all. CHOP is not meant to predict future market direction, it is a metric to be used to for defining the market's trendiness only. A basic understanding of the indicator would be; higher values equal more choppiness, while lower values indicate directional trending.
Relative Strength Index (RSI)
The Relative Strength Index (RSI) is a well versed momentum based oscillator which is used to measure the speed (velocity) as well as the change (magnitude) of directional price movements. Essentially the RSI, when graphed, provides a visual mean to monitor both the current, as well as historical, strength and weakness of a particular market. The strength or weakness is based on closing prices over the duration of a specified trading period creating a reliable metric of price and momentum changes. Given the popularity of cash settled instruments (stock indexes) and leveraged financial products (the entire field of derivatives); RSI has proven to be a viable indicator of price movements.
The Lazy Trader - Index (ETF) Trend Following Robot50/150 moving average, index (ETF) trend following robot. Coded for people who cannot psychologically handle dollar-cost-averaging through bear markets and extreme drawdowns (although DCA can produce better results eventually), this robot helps you to avoid bear markets. Be a fair-weathered friend of Mr Market, and only take up his offer when the sun is shining! Designed for the lazy trader who really doesn't care...
Recommended Chart Settings:
Asset Class: ETF
Time Frame: Daily
Necessary ETF Macro Conditions:
a) Country must have healthy demographics, good ratio of young > old
b) Country population must be increasing
c) Country must be experiencing price-inflation
Default Robot Settings:
Slow Moving Average: 50 (integer) //adjust to suit your underlying index
Fast Moving Average: 150 (integer) //adjust to suit your underlying index
Bullish Slope Angle: 5 (degrees) //up angle of moving averages
Bearish Slope Angle: -5 (degrees) //down angle of moving averages
Average True Range: 14 (integer) //input for slope-angle formula
Risk: 100 (%) //100% risk means using all equity per trade
ETF Test Results (Default Settings):
SPY (1993 to 2020, 27 years), 332% profit, 20 trades, 6.4 profit factor, 7% drawdown
EWG (1996 to 2020, 24 years), 310% profit, 18 trades, 3.7 profit factor, 10% drawdown
EWH (1996 to 2020, 24 years), 4% loss, 26 trades, 0.9 profit factor, 36% drawdown
QQQ (1999 to 2020, 21 years), 232% profit, 17 trades, 3.6 profit factor, 2% drawdown
EEM (2003 to 2020, 17 years), 73% profit, 17 trades, 1.1 profit factor, 3% drawdown
GXC (2007 to 2020, 13 years), 18% profit, 14 trades, 1.3 profit factor, 26% drawdown
BKF (2009 to 2020, 11 years), 11% profit, 13 trades, 1.2 profit factor, 33% drawdown
A longer time in the markets is better, with the exception of EWH. 6 out of 7 tested ETFs were profitable, feel free to test on your favourite ETF (default settings) and comment below.
Risk Warning:
Not tested on commodities nor other financial products like currencies (code will not work), feel free to leave comments below.
Moving Average Slope Angle Formula:
Reproduced and modified from source:
Elders Force Index - With Signal EMA - ValenteSame as Elders Force Index, but with an Additional EMA for buy and sell signal
Put Call RatioPlots the CBOE Put Call Ratio and marks up locations of extremities.
Useful as a factor of confluence in identifying extremities in the market.
Nifty VolumeWhy this Script : Nifty 50 does not provide volume and some time it is really useful to understand the volume .
This is the pine script which calculate the nifty 50 volume .
Logic :
Take each stock contribute to nifty 50 and find it's volume .
Multiply the same with contribution percentage of the same on Nifty 50
Add up all of them and find the total volume .
There is a similar script by @daytraderph which is built for Bank Nifty (custom volume) . I took the same and built for Nfity.
Nifty has 50 stocks and you cant call security method more than 40 times from one Pine script, so this is the limitation of this script. It consider top 40 stocks and find the volume (which contribute pretty much around 95% of the volume) and convert the same to 100 %
Bank Nifty VolumeWhy this Script : Nifty 50 does not provide volume and some time it is really useful to understand the volume .
This is the pine script which calculate the nifty 50 volume .
Logic :
Take each stock contribute to nifty 50 and find it's volume .
Multiply the same with contribution percentage of the same on Nifty 50
Add up all of them and find the total volume .
I took the open source code from @daytraderph script called, Custom Volume
I will make sure I will update the contribution percentage of all stocks my self instead o you update using input methods. This is the difference. Some people don't know where to look at this to update the value, so for them this script might be useful. And this is the only difference comparing to Custom Volume script.
Index SMA vs. CloseVery simple script that index the close price with the SMA 20,50 and 200. It is very useful to plot and see if stocks are extended vs. de SMAs.
Index Trend Filter - Weekend Trend TraderThis little script simply gives you a quick visual cue of where price is compared to a particular EMA of another security or underlying index.
It is based on Nick Radge's broader market filter weekend trend trader system, but can be applied to other timeframes if you want to confirm if the index is in an up trend or down trend.
• Green means the underlying index price is above the EMA
• Red means the underlying index price is below the EMA
FauxLife EFIModification to Elder's Force Index (EFI)
Ability to change calculation from standard EMA to your choice of SMA, EMA, WMA, or HMA. Very interesting results!
Adjust lookback from standard/suggested 13 candlesticks
Added a color indication to positive or negative force reading
Added background color tint for an easier read on dashboard setups
Suggested pair with my On Balance Volume with Cross to use as a filter & entry/exit setup. Enter or exit trades when the two indicators switch at the same time or within 1-2 candlesticks of each other.
COT extremes indexCalculates the difference between net of noncommercials and net of commercials.
Difference = (net of noncommercials) - (net of commercials).
The extreme reading in one end or another may indicate the possible change of trend.
Based on Tradingview COT sample script and Babypips formula.
Works on daily timeframe.
Relative Volume Strength IndexRVSI is an alternative volume-based indicator that measures the rate of change of average OBV.
How to read a chart using it?
First signal to buy is when you see RVSI is close to green oversold levels.
Once RVSI passes above it's orange EMA, that would be the second alert of accumulation.
Be always cautious when it reaches 50 level as a random statistical correction can be expected because of "market noises".
You know it's a serious uptrend when it reaches above 75 and fluctuates there, grading behind EMA.
The best signal to sell would be a situation where you see RVSI passing below it's EMA when the whole thing is close to Red overbought level
It looks simple, but it's powerful!
I'd use RVSI in combination with price-based indicators.
Mean Reversion w/ Bollinger BandsThis is a more advanced version of my original mean reversion script.
It employs the famous Bollinger Bands.
This robot will buy when price falls below the lower Bollinger Band, and sell when price moves above the upper Bollinger Band.
I've only tested it on the S&P 500, though you could try it out on other assets to see the backtest performance.
During the recent COVID-19 bear market drop, it produced several buy signals on the S&P which I followed, and made some nice gains so far.
I still think this would make a better investing strategy (buy undervalued / sell over-valued), rather than a trading strategy.
I use this robot for my long term portfolio.