Tags:

This strategy uses logarithmic functions to model price changes based on the standard deviation and mean of trading volume to calculate z-score as input parameters to the logarithmic function for predicting future prices.

- Calculate ROC value of closing price, accumulate positive values into volume_pos and negative values into volume_neg
- Calculate the difference between volume_pos and volume_neg as net_volume
- Calculate standard deviation net_std and mean net_sma of net_volume
- Calculate z-score by dividing net_sma by net_std
- Use closing price, 20-day standard deviation of closing price and z-score as parameters into the logistic function to predict next periodâ€™s price
- Long when predicted price is above current actual price * 1.005, close position when below * 0.995

This strategy combines statistical information of trading volume and price prediction using logarithmic functions.

Advantages are:

- Utilizes long-short difference in trading volume to gauge market sentiment
- Logarithmic function fits price change curve well for prediction
- Simple and straightforward strategy, easy to implement

Some risks also exist in this strategy:

- Trading volume indicators have lag, cannot timely reflect market changes
- Logarithmic prediction not always accurate, can be misleading
- Lack of stop loss measures inability to control losses

Risks can be reduced by:

- Combine other indicators to judge reliability of volume signals
- Optimize parameters of logarithmic function to improve prediction accuracy
- Set stop loss lines to limit maximum loss per trade and overall

This strategy can be further optimized by:

- Adopt machine learning to dynamically optimize logarithmic function
- Incorporate volatility indicators to adjust position sizing
- Add Bayesian filtering to filter out invalid signals
- Combine with breakout strategies to enter on breakout points
- Use association rules to detect volume-price divergence signals

Combining multiple methods can further improve stability and profitability.

This strategy integrates statistical indicators of trading volume and logarithmic prediction into a unique quantitative trading methodology. With continuous optimization, it can become an efficient and stable automated trading system. By leveraging machine learning and portfolio optimization theories, we are confident to further improve its trading performance.

/*backtest start: 2023-11-19 00:00:00 end: 2023-12-10 00:00:00 period: 1h basePeriod: 15m exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=4 strategy("Logistic", overlay=true ) volume_pos = 0.0 volume_neg = 0.0 roc = roc(close, 1) for i = 0 to 100 if (roc > 0) volume_pos := volume else volume_neg := volume volume_net = volume_pos - volume_neg net_std = stdev(volume_net, 100) net_sma = sma(volume_net, 10) z = net_sma / net_std std = stdev(close, 20) logistic(close, std, z) => m = (close + std) a = std / close pt = m / ( 1 + a*exp(-z)) pt pred = logistic(close, std, z) buy = pred > close * 1.005 sell = pred < close * 0.995 color = strategy.position_size > 0? #3BB3E4 : strategy.position_size == 0? #FF006E : #6b6b6b barcolor(color) if (buy == true) strategy.entry("Long", strategy.long, comment="Open L") if (sell == true) strategy.close("Long", comment="Close L")

- Momentum Capture Channel Strategy
- Hedging Oscillation Reversal Strategy
- Quantitative Trading Strategy Based on Bollinger Bands and RSI
- The Relative Volume Indicator Strategy
- The Octagon Cloud Tracing Strategy
- Probability-Enhanced RSI Strategy
- Triple EMA Trend Following Strategy
- Stan The Man - An Advanced Stock Trading Strategy Based on Dual Moving Average and Volatility
- Reverse Mean Breakthrough Strategy
- Double Moving Average Reversal Strategy
- Simple Moving Average Crossover Strategy
- Bollinger Bands and RSI Trend Following Strategy
- Meticulous EMA Crossover Strategy
- Trend Following Strategy Based on Moving Average
- RSI Trading Strategy
- Turtle Trend Trading System
- Multiple Moving Averages Crossover Trading Strategy
- Flexible MA/VWAP Crossover Strategy with Stop Loss/Take Profit
- Bollinger Band-based Price Action Strategy
- Dual Moving Average Range Breakout Strategy