Type/to search

Moving Average Candle Regression Strategy

Cryptocurrency
Created: 2023-09-14 17:50:14
Last modified: 3 years ago
1
Follow
1781
Followers

Strategy Logic

This strategy combines various technical indicators and strategies, mainly for determining index entry and exit points.

The key logic is:

  1. Compute moving average candles including open, close, high and low

  2. Calculate momentum of MA candles and momentum linear regression

  3. Calculate linear regression of MA candles itself

  4. Use SuperTrend to determine overall direction

  5. When momentum regression turns from negative to positive, or strongly positive, it signals entry

  6. When momentum turns from positive to negative, or weakens, it signals exit

The strategy synthesizes various indicators to assess short- and long-term market moves and rhythm for determining index trade timing.

Advantages

  • MA candles reflect medium- to long-term trends

  • Regression analysis identifies trend changes

  • SuperTrend assists overall direction

  • Multiple indicators improve accuracy

Risks

  • Complex parameter optimization

  • Difficult to balance multiple indicators

  • Infrequent signals mean lower trade frequency

Summary

This strategy aims to uncover market timing signals by analyzing short- and long-term patterns. But parameter tuning and model optimization needs improvement.

Source
Pine
/*backtest
start: 2023-09-06 00:00:00
end: 2023-09-13 00:00:00
period: 15m
basePeriod: 5m
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/
// © HeWhoMustNotBeNamed

//@version=4
Strategy parameters
Strategy parameters
Moving Average Type (MA Candles)
Length (MA Candles)
Moving Average Type (Momentum)
MA Length (Momentum)
Look Back Period Percentile High/Low
Highest Percentile - 0.90=90%, 0.95=95%, 0.99=99%
Lowest Percentile - 1.10=90%, 1.05=95%, 1.01=99%
Bollinger Band Standard Devaition Up
aggressiveLong
longTrades
useVixFix
Start Time
End Time
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)