Type/to search

Trend Following Strategy Based on Volume Flow Indicator

Cryptocurrency
Created: 2023-10-10 14:51:13
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy implements trend following trading based on Volume Flow Indicator (VFI). It judges the market trend direction by calculating price fluctuations and volume changes, and realizes low buying and high selling.

Strategy Principle

  1. Calculate VFI indicator: Compute VFI value based on logarithmic price change and volume, and smooth out oscillations through smoothing techniques.

  2. Determine trend direction: VFI crossing above 0 is a bullish signal, while crossing below 0 is a bearish signal.

  3. Trading signals: Go long when fast EMA crosses above slow EMA and VFI crosses above buy line; close position when VFI crosses below sell line.

  4. Stop loss: Set fixed stop loss percentage.

This strategy mainly relies on VFI to determine the trend direction, combined with moving averages to generate trading signals. VFI reflects market sentiment through price volatility and volume changes, making it a trend following indicator. Compared with single price indicators, VFI provides more comprehensive judgments and identifies trend reversal points better, filtering out consolidations.

Advantages

  1. VFI determines trends better than single price indicators, effectively filtering out consolidations and false breakouts.

  2. Moving averages provide supplementary judgements, avoiding incorrect signals from VFI in ranging markets.

  3. Fixed stop loss controls risk and facilitates risk management.

  4. Trend following mode generates excess returns without predicting reversals.

  5. Flexible parameter tuning adapts to different periods and products.

Risks

  1. VFI may generate incorrect signals during significant fluctuations.

  2. Fixed stop loss could be too wide or too narrow.

  3. Ill-configured entry and exit settings lead to over-trading or missing trades.

  4. Trend following fails to capture reversals and needs timely stop loss.

  5. Improper parameters cause premature or delayed entry.

Enhancements

  1. Optimize VFI calculation by adjusting parameters.

  2. Fine-tune moving average periods for better signal timing.

  3. Employ dynamic stop loss instead of fixed one.

  4. Add other indicators to filter signals.

  5. Optimize parameters separately based on timeframe.

  6. Test robustness across different products.

Conclusion

This strategy determines the trend direction with VFI and uses moving averages to filter out wrong signals. It realizes low buying/high selling through trend following without predicting reversals. The advantage lies in its superior trend detection over single price indicators and ability to filter out consolidations. The main risk is generating incorrect signals during fluctuations. Optimizing parameters, adding supplementary indicators and stop loss techniques can improve its stability. Overall, with parameter tuning and stop loss optimizations, this VFI based strategy can become a reliable trend following system.

Source
Pine
/*backtest
start: 2023-10-02 00:00:00
end: 2023-10-06 21:00:00
period: 3m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © mohanee
//This strategy is based on VFI indicator published by  UTS.  
//more details of VFI indicator can be found at  [url=http://mkatsanos.com/VFI.html]http://mkatsanos.com/VFI.html[/url] 
Strategy parameters
Strategy parameters
Length
Coef
Volume Cutoff
Smoothing Period
Smoothing Type
Buy Line
Sell Line
Stop Loss%
Long EMA
short EMA1
short EM2A
Visualize Trend
Apply Filling
Show Moving Average
Moving Average Type
Moving Average Length
• ALMA - Offset (global setting)
• ALMA - Sigma (global setting)
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)