Type/to search

Moving Average Entry Optimization Strategy

Cryptocurrency
Created: 2023-09-14 16:52:30
Last modified: 3 years ago
1
Follow
1781
Followers

Strategy Logic

This strategy optimizes the entry points after signals from a basic moving average system.

The main logic is:

  1. Calculate moving average over a period (e.g. 20-day)

  2. Crossovers generate long/short signals

  3. After signals, don't enter immediately but wait for better levels

  4. If better levels occur within specified days (e.g. 3 days), enter trades

  5. If not, enter at closing price on 5th day to avoid missing out

This seeks to capitalize on resumption of trends after consolidations rather than entering signals immediately. Allows establishing positions at improved levels.

Advantages

  • Entry optimization for better entry levels

  • Maximum wait days avoids completely missing trades

  • Simple and clear rules easy to implement

Risks

  • Waiting time and thresholds require optimization

  • Could miss some short-term trend opportunities

  • Needs to monitor both time and price conditions

Summary

This strategy aims to get better entry levels through simple entry optimization while ensuring trends are not missed. But optimizing wait time and entry criteria is crucial.

Source
Pine
/*backtest
start: 2023-08-14 00:00:00
end: 2023-09-13 00:00:00
period: 1h
basePeriod: 15m
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/
// © dongyun

//@version=4
Strategy parameters
Strategy parameters
period
maxwait
threshold
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)