1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
90 lines of Pine Script v5 from strategies/momentum/mfi_strategy.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.
MFI Strategy - Eterna MCP opens long entries when MFI crosses above the oversold level or displays bullish divergence while under the midline. It enters short positions on overbought crossunder signals or bearish divergences above the midline. Positions are closed upon receiving an opposite trade signal. User parameters control MFI length, overbought and oversold thresholds, divergence lookback, position sizing, and leverage settings. The indicator plots in a separate pane with signal shapes. There is no built-in stop loss.
Money Flow Index calculation with volume weighting
Bullish and bearish MFI divergence detection
Overbought and oversold signal triggers
JSON webhook alerts configured for automated execution
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
MFI Length
int
14
mfiLength
Overbought
int
80
overboughtLevel
Oversold
int
20
oversoldLevel
Divergence Lookback
int
5
divergenceLookback
Leverage
float
5.0
leverageSize
Position Size
float
0.01
positionSize
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
MACD + Divergences [Alorse] is a momentum strategy that calculates the MACD oscillator and identifies regular and hidden divergences using pivot high and low points. It filters trade signals with dual Exponential Moving Averages (EMA 150 and 600) to ensure tra
This strategy combines the ATR-banded Q-Trend indicator with the Klinger Volume Oscillator (KVO) to execute confluence trades. It enters long when a Q-Trend buy trigger aligns with a positive KVO value and a bullish candle confirmation, taking short trades und
This strategy calculates the Inverse Fisher Transform on selectable technical factors including Money Flow Index, RSI, RSX, Karobein Oscillator, and Scaled Price. It smooths values using a Jurik Moving Average smoother and plots the resulting oscillator in a s
This strategy calculates the normalized rate of change between On-Balance Volume (OBV) and Price Volume Trend (PVT) indicators. It applies Bollinger Bands to this volume metric along with a Hodrick-Prescott filter array for time series decomposition. Displayed
This strategy plots a MACD oscillator in a separate pane and trades Bitcoin futures from zero-line and signal-line crosses. Optional early momentum signals, a volume filter, and a trend moving-average filter can confirm entries. It sizes positions as fixed con
This strategy calculates a Relative Strength Index (RSI) applied to the Volume Weighted Average Price (VWAP) rather than standard close values. It plots dedicated long and short RSI-VWAP lines with customizable overbought and oversold thresholds, alongside an