Type/to search

Price Change & Average Pricing Strategy Based on Quantitative Indicators

Cryptocurrency
Created: 2023-12-11 11:18:56
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy combines the price change rate and moving average technical indicators to locate the buy and sell points accurately. When the price drops sharply, a buy threshold is established. And when the price continues to fall, long positions are opened. When the price rises, a sell threshold is set up. And existing long positions are closed out when the price keeps rising and breaks through the sell threshold. At the same time, the strategy also adopts the pyramiding method to open multiple long positions at different price levels to lower the cost.

Principles

Long Entry Logic

  1. Calculate the Rate of Change (ROC) of the price, and set up the long entry threshold line.
  2. When the price breaks through the long entry threshold downwards, record this breakpoint and initiate the long entry limit line.
  3. The long entry limit line lasts for a certain duration defined by input parameters and expires afterwards.
  4. When the price continues to fall and crosses below the long entry limit line, the first long position is opened.

Long Close Logic

  1. Calculate the Rate of Change (ROC) of the price, and set up the long close threshold line.
  2. When the price breaks through the long close threshold upwards, record this breakpoint and initiate the long close limit line.
  3. The long close limit line lasts for a certain duration defined by input parameters and expires afterwards.
  4. When the price continues to rise and crosses above the long close limit line, all existing long positions are closed.

Risk Control

The strategy has built-in stop loss and take profit functions that can be customized to control risks dynamically.

Pyramiding

When opening each new trade position, the system calculates the subsequent long entry price according to the input percentage parameters, thus implementing averaging down through multiple long entries.

Advantages

  1. Adopt the rate of change (ROC) indicator to locate buy and sell signals accurately. ROC is very sensitive to price changes.
  2. Use limit lines for further confirmation of entry and exit signals to avoid false breaks.
  3. The pyramiding method tracks market value while keeping risks under control.
  4. Built-in stop loss and take profit strictly controls risks for each position.

Risks & Solutions

  1. Fierce market fluctuation may lead to too many open positions. We can set reasonable parameters for pyramiding to limit total open positions.
  2. Stop loss or take profit may get triggered frequently when the market is ranging. We can loosen the percentage levels or even disable SL & TP in sideways markets.

Optimizations

  1. Combine with other indicators like moving averages to filter entry signals. Only adopt ROC signals when prices actually break the MA lines.
  2. Improve the pyramiding logic, open subsequent positions only when prices continue to fall by a certain percentage instead of just lowering the entry price.
  3. Optimal parameter settings may differ significantly across trading instruments. Extensive backtest and demo trading is necessary.
  4. Build an adaptive stop loss mechanism with different percentage levels based on market volatility conditions.

Conclusion

The strategy effectively combines accurate entry signals with limit line filters, built-in risk management functions, and pyramiding for position sizing. With reasonable parameter tuning, it can acquire excess returns while keeping risks in check. Future improvements may focus more on signal filtering methods and risk control for broader market adaptability.

Source
Pine
/*backtest
start: 2022-12-04 00:00:00
end: 2023-12-10 00:00:00
period: 1d
basePeriod: 1h
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/
// @version=4
// © A3Sh
Strategy parameters
Strategy parameters
Risk
Portfolio Percentage
Leverage
Broker Maintenance Margin Percentage
Take Profit
Percentage
Stop Lossss
Percentage
Price Averaging Layers
2nd Layer Long Entry %
3rd Layer Long Entry %
4th Layer Long Entry %
ROC Logic to OPEN Long Entry
Rate of Change bar lookback
ROC Threshold % to Setup Long Entry
Price Drop Threshold % to OPEN Long Entry
Duration of Long Entry Threshold Line in bars
Min % of Price Drop to OPEN Long Entry
ROC Logic to CLOSE Long Entry
Rate of Change bar lookback
ROC Threshold % to Setup Close Threshold
Price Rise Threshold % to CLOSE Long Entry
Duration of Entry Limit in bars
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)