Gaussian MFI BFThe signals are based on the Gaussian Channel calculated by Donovan Wall. Thanks also to Kiasaki for Rate of Change code.
Simply going long and short based on Gaussian channel was not consistent enough so I also included an MFI filter. We only go long if Money Flow Index is greater than the last candle (more money is flowing in than out). The opposite for short. Also employed Rate of Change function (white background) to avoid sideways market.
A 2% stop loss seems to be the most balanced for this strategy but can can altered in the settngs.
Also included a take-profit function but it seems this is best not implemented for this strategy, at least in the case of XBT/USD.
A derivative of The MFI is also plotted on the chart simply to compare the current candle with the last candle visually.
Background color:
Green = Long
Red = Short
White = No Trade
Money Flow Index (MFI)
Open Interest Money Flow Index (OIMFI)CAUTION : This system was inspired from seiglerj' s "Money Flow Index " script. Open Interests are used instead of volume.
What is the Money Flow Index ( MFI )?
The Money Flow Index ( MFI ) is a technical oscillator that uses price and volume for identifying overbought or oversold conditions in an asset. It can also be used to spot divergences which warn of a trend change in price. The oscillator moves between 0 and 100.
Unlike conventional oscillators such as the Relative Strength Index ( RSI ), the Money Flow Index incorporates both price and volume data, as opposed to just price. For this reason, some analysts call MFI the volume-weighted RSI .
What Does the Money Flow Index ( MFI ) Tell You?
One of the primary ways to use the Money Flow Index is when there is a divergence. A divergence is when the oscillator is moving in the opposite direction of price. This is a signal of a potential reversal in the prevailing price trend.
For example, a very high Money Flow Index that begins to fall below a reading of 80 while the underlying security continues to climb is a price reversal signal to the downside. Conversely, a very low MFI reading that climbs above a reading of 20 while the underlying security continues to sell off is a price reversal signal to the upside.
Traders also watch for larger divergences using multiple waves in the price and MFI . For example, a stock peaks at $10, pulls back to $8, and then rallies to $12. The price has made two successive highs, at $10 and $12. If MFI makes a lower higher when the price reaches $12, the indicator is not confirming the new high. This could foreshadow a decline in price.
The overbought and oversold levels are also used to signal possible trading opportunities. Moves below 10 and above 90 are rare. Traders watch for the MFI to move back above 10 to signal a long trade, and to drop below 90 to signal a short trade.
Other moves out of overbought or oversold territory can also be useful. For example, when an asset is in an uptrend, a drop below 20 (or even 30) and then a rally back above it could indicate a pullback is over and the price uptrend is resuming. The same goes for a downtrend. A short-term rally could push the MFI up to 70 or 80, but when it drops back below that could be the time to enter a short trade in preparation for another drop .
Reference : www.investopedia.com
WARNING :
** Since each instrument in the list has its own unique contract data, you must first enter its name to display it. I recommend you to select OANDA from the markets. Finally, when the COT reports are issued, it may repaints. However, this repaint is usually close to closing or after close .(When COT reports are so sharp ) So use this script only 1W ( 1 week ) or 1 M ( 1 month ) timeframe.
** This data is taken to Tradingview with the help of Quandl. This is a very low possibility, but the system will not work if there is a malfunction.
FEATURES :
*** Working with all futures (Including : Bitcoin )
*** If you dont work with "Futures" , you can select "Others" from switchable menu and use volume for all instruments.
*** New generation elegant design used : Adaptive coloring Overbought - Oversold Levels according to the closing price.
NOTE : This code is open source under the MIT License. If you have any improvements or corrections to suggest, please send me a pull request via the github repository github.com
Stay tuned. Best wishes !
Dependent Variable Odd Generator For Machine Learning TechniquesCAUTION : Not suitable for strategy, open to development.
If can we separate the stagnant market from other markets, can we be so much more accurate?
This project was written to research it. It is just the tiny part of the begining.
And this is a very necessary but very small side function in the main function. Lets start :
Hi users, I had this idea in my mind for a long time but I had a hard time finding the parameters that would make the market stagnant. This idea is my first original command system. Although it is very difficult to make sense of the stagnant market, I think that this command system can achieve realistic proportions. With 's money flow index, I opened the track to determine the level. On the other hand, the prices were also using a money flow index, and it forced me to make the limitations between the levels in a logical way. But the good thing is that since the bollinger bandwidth uses a larger period, we are able to print normal values at extreme buy and sell values.
In terms of price, we can define excessive purchase and sale values as the period is smaller. I have repeatedly looked at the limit values that determine the bull, bear, and bollinger bandwidth (mfi), and I think this is the right one. Then I have included these values in the probability set.
The bull and bear market did not form the intersection of the cluster, and because there are connected events, the stagnant market, which is the intersection, will be added to the other markets with the same venn diagram logic and the sum of the probability set will be 1. is equal to. I hope that we can renew the number generators in the very important parameters of machine learning such as Markov Process with generators dependent on dependent variables, which bring us closer to reality. This function is open to development and can be made of various ideas on machine learning. Best wishes.
This code is open source under the MIT license. If you have any improvements or corrections to suggest, please send me a pull request via the github repository github.com
RSI/MFI - MTF - Entry signals/Trend colored bars - JD@version=2
This indicator is designed to give early entry signals as well as to follow trend moves, according to different settings.
The indicator shows a histogram of the RSI ro MFI in relation to an ema of the RSI or MFI.
The histogram is then smoothed to give early reversal/entry signals.
The actual RSI/MFI line with oversold/overbought indication can be displayed or omitted, as preferred.
in addition to the RSI/MFI line or as an alternative to it, the background colour can be set to change folowing the RSI/MFI signals.
The timeframe can be chosen. Higher timeframes (eg. 3h) tend to give less false signals.
version 5.
added support for custom Multiple Time Frame selection.
added option for choice of RSI or MFI as base indicator.
added option for price bar coloring according to the indicator. (deselecting "borders" in the "style" tab is recommended)
price bar coloring can be adjusted for different strategies:
1. following the slope of the histogram (for faster entry/exit signals)
2. according to positive or negative histogram (for longer moves)
3. according to pos. or neg. RSI/MFI (for longer term trend holds)
4. uptrend: biased towards faster buy signals and slower sell signals to stay in the uptrend
5. downtrend: biased towards faster sell signals and slower buy signals to stay in the downtrend
A longer timeframe (eg. 3x) is recommended for following trend moves.
try different strategies to see what works better for RSI or MFI.
JD.
Function : Bollinger Bands and BBW Squeeze DetectorThis script shows Bollinger Bands function and want to detect Bollinger Band Width Squeeze with a successful, different perspective .
Bollinger Bands : You can specify the Bollinger Bands periods as mutable variables .
Bollinger Band Width Squeeze : First the Bollinger bands width was calculated.The width was then divided into levels using the money flow index.
Thus, the bollinger takes into account the available volume averages when calculating the band width mfi (Money Flow Index).
After this modelling, we can limit and color the lower limit and upper limits just as Relative Strength Index.
We can even put warnings on oversold areas if desired. Let's not forget that we are working with width rather than price.
By design, squeeze areas are defined directly above the Bollinger Bands with coloration. I think it is very practical and looks stylish.
I tried and found it quite successful and wanted to share it with users.
I came up with many ideas when I wrote this system, and I will share them very soon . I hope it will be useful to users and give new ideas.
Best regards.
Bilateral Stochastic RSI/MFI [AL] @Version=3 Hi, this is a Stochastic RSI/MFI converted from Alex Grover's (www.tradingview.com) idea for the Stochastic calculation.
It also includes the cycle calculation and filtering form Anooj Patel
And the Divergence plots from Just UncleL www.tradingview.com
There are probably a few i have forgotten but thanks to all of the community who share and help us all learn!!
MFI Divergence v2Edited the RSI div indicator by Libertus to use MFI & show on candles. V2 update filters the divs using stochastic oversold & overbought & removes the lagging signals (they were offset back by 1 bar).
Default settings were tuned for xbtusd 1hr; works well if after a signal you wait for a stochastic indicator to stop being oversold or overbought, so if eg. you see a cluster of sell signals at a top, wait for the stoch to cross below 80 before entry. Please backtest before trading with this, DYOR NFA GLHF!
MFI DivergenceThis is an edit of the RSI divergence indicator by Libertus (thanks!). Play around with the settings, you'll want to tweak length & lookback per market & timeframe.
MACD LB MFIThis script includes MACD histogram plus MFI in four states
All backgrounds are compared to previous bar in +/- 10%
1. Green (green) + Volume + Range (++)
2. Fading (yellow) - Volume - Range (--)
3. False (gray) - Volume + Range (-+)
4. Crouching (red) + Volume - Range (+-)
Minimal Godmode 1.0// Acknowledgements:
// Original Godmode Authors:
// @Legion, @LazyBear, @Ni6HTH4wK, @xSilas
// Drop a line if you use or modify this code.
// Godmode 3.1.4: @SNOW_CITY
// Godmode 3.2: @sco77m4r7in and @oh92
// Godmode3.2+LSMA: @scilentor
// Godmode 4.0.0-4.0.1: @chrysopoetics
// Jurik Moving Average: @everget
// Minimal Godmode v1.0:
// Removed BITSTAMP:BTCUSD, added presets for 9-26-13 and 17-6-4, added more exchanges + USDT and USDC pairs to multi-exchange option
// JMA smoothing - more responsive + less lag than SMA at equivalent length settings
// Minor cosmetic changes to account for pinescript 3 transparency and z-order
Momentum Exhaustion + Swing Points ComboCombination of @Zeenobit's Swing Points and Momentum Exhaustion indicators; RSX instead of RSI from @jaggedsoft/@everget's RSX Divergences script(s).
Top 5 coins cummulated Upvol/Dnvol and Money FlowThis script reads price and volume information for the top 5 coins (on 9 exchanges, a total of 29 pairs), calculates the cummulative upvolume and downvolume according to the Money Flow (MFI) formula, and shows upvolume and downvolume separately on the chart as a green and a red line.
The coins used are BTC, ETH, LTC, XRP and EOS. They are the top 5 coins by daily volume, as of 24th of February 2019.
Because of the many security() calls needed, the script is VERY slow, so have lots of patience.
I find it useful as a broad crypto market indicator - for example to compare the current pump with the pumps in the past.
Can also calculate the aggregated Money Flow (MFI) if you check that option in the indicator's configuration. Make sure to wait for recalculation and rescale the chart afterwards - MFI has a value from 0 to 100 and you may need to zoom in.
3 Sessions DividerAsia (Syndey + Tokio)
London
NY
Made for GMT-6 (Central US Time)
Sessions may Overlap.
RSI + STOCHRSI - combinedRSI + Stoch RSI combined script
Very usable for free accounts with indicator limits.
Use 2 indicators as 1
RSI / Stoch / SRSI / MFI / Aroon Overlay [SigmaDraconis]Combines 4 popular indicators (RSI, Stoch, SRSI, MFI) and 1 peculiar one (Aroon) in 1 for those who want to save indicators but not only.
This is an evolution of my (simpler) "RSI / Stoch / Stoch RSI (SRSI) Overlay " that you can find on my scripts.
Added bands for oversold/overbought areas (70/30 common for RSI and 80/20 for SRSI and MFI), as well as a middle 50 horizontal line.
Neutral bands around 55-45 added as well that can be hidden for less clutter. I also recommend a more transparent coloring for these since Pine script doesn't allow default transparency for horizontal lines.
By default only RSI and Stoch are activated, you can activate Aroon, MFI and SRSI on the inputs window.
Some extra notes:
* RSI, Stoch and MFI can help to strengthen one's decision as well as Aroon to predict a possible trend reversal, SRSI can show when RSI has high probability of being topped or bottomed when oversold/overbought but don't forget to look at volume and how the trend progresses that can keep SRSI above 80 or below 20 while RSI and price continues to trend, divergences are most helpful here to find possible reversal areas.
* This chart depicts some interesting divergences, as well as Stoch tops and bottoms and confluences between RSI/MFI and Stoch on some over-extended tops and bottoms that shown being good reversal zones.
RSI resistances are shown as well, failing to break above 60 or the neutral zone (this is a bearish BTC trend chart after all) or failing to gain support to break up certain levels (RSI notes a more bullish trend when consistently above 60 and more bearish below 40).
If you like it and use it to profit, please tip me below :)
Tip jars:
BTC: 15nMBiEGVrdGcu9C1h6QRcTNRvugHkqrMQ
ETH: 0xC33845946c48B61fBCbEA0367ec2238CaF2b73bc
BTS: sigma-draconis
Log MFI - Money Flow Index The main concept was to make a bound oscillator calculate with a formula that places emphasis on the mean averages. Ideally this would mean that the oscillator won't have a tendency to swing into overbought/oversold condition and cause whipsaw. Using log is a way to increase the signal to noise ratio, with the regular MFI still plotted.
This indicator is best used in confluence with price action swings, where volume would normally be the highest.
Stoch Money Flow (ADMF) & Absolute Strength Index (ASI) [cI8DH]This indicator can apply my previous indicator, Historical and Standard Stochastic, to Money Flow (ADMF) or Absolute Strength Index (ASI) or both at the same time. It can also display those two indicators in regular mode as well as showing visual cues when the indicators make new ATH or ATL.
ASI is basically a new name I am giving to my Gain/Loss Moving Average indicator. If you normalize ASI with the moving average of all the changes in price, it becomes identical to RSI. So ASI is basically non-normalized RSI, that is why it should be a more accurate representation of price momentum.
ADMF is an accumulation/distribution and money flow momentum indicator. Both ASI and ADMF are not range-bound so it is not easy to compare them against each other. When stochastic equation is applied to them, they both become range-bound and comparable. The gaps between the two indicator can reveal valuable information about market dynamics. The chart below shows some examples (note the settings).
For conventional usages of stochastic, please read www.tradingview.com(STOCH) and www.tradingview.com(STOCH_RSI). I recommend you to find the optimal length by playing with the stoch length in the indicator settings. If this parameter is calibrated properly, this indicator can be a powerful tool for identifying market cycle.
You can get these features ( ATH , ATL detection and historical stochastic) for any other indicator using the script below:
Money Flow IndexMFI (money flow index) indicator, to help identify volume trends, divergence, and reversals. Optional settings to show the "raw" money flow or the money flow ratio, instead of the final MFI calculation. Also includes optional SMA (for MFI only).
MFI/RSI with Volatility Bands [LazyBear (edited)]Edited version of the script by LazyBear.
Update of my previous script.
Features:
- plot both MFI and/or RSI (LazyBear only allows one of both)
- plot RSI/MFI band (over sold - mid - over bought) + indicator lines
MFI/RSI with Volatility Bands [LazyBear (edited)]Edited version of the script by LazyBear.
Update of my previous script.
Features:
- plot both MFI and/or RSI (LazyBear only allows one of both)
- plot an indicator band (over sold - mid - over bought)
MFI Bitmex Zones - With Alerts- Credit To DreamsDefined & Beasley Savage
This is mainly a design change for helping with watching MFI for Leverage Trading on Bitmex.
How it Works:
Green Circles Mark Oversold & Long Position
Red Circles Mark Overbought & Short Position
Green Area Bullish
Red Area Bearish
Orange Area Consolidation