Daily DCA Entries with EMA Crossovers and a Closing Rule
Summary
The document describes a Pine strategy that sizes purchases as a fixed daily cash amount divided by the closing price, then enters only when the close crosses above one of several EMAs. It sets a trade-count cap and plots the EMA ribbon. The published backtest settings specify BTC/USDT futures, although the overview discusses buying shares. No performance results are reported.
There are material mismatches between the description and the included code. The overview says positions close below the 20-day SMA or on a preset end date, but the code defines the sell condition as always true and calls for closing all positions whenever selling is enabled. The overview also describes a 300-trade cap, while the parameter and source specify 10,000. These differences mean the stated entry and exit behavior cannot be taken as a faithful account of the executable strategy. The document flags general DCA, indicator-lag, and stop-placement risks, but supplies no evidence that the strategy is profitable.
Key ideas
- The strategy calculates purchase quantity from a fixed daily investment divided by the closing price.
- Entries require a daily boundary and a close crossing above at least one configured EMA.
- The overview's stated moving-average stop conflicts with source code that closes positions whenever selling is enabled.
- The published trade cap is 10,000 in the parameters and source, despite the overview describing a different limit.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.