Displaying Monthly Strategy Returns with Pivot-Based Entries
Summary
This script combines a pivot breakout strategy with a chart table for monthly returns. It identifies pivot highs and lows, maintains the latest levels, and places stop entries just beyond those levels for long and short positions. For the performance display, it derives bar-by-bar changes in strategy equity, compounds those changes within each calendar month, and stores completed monthly returns for plotting. The interface offers controls for pivot confirmation bars, numeric precision, chart placement, and appearance.
The document provides an implementation approach rather than a research evaluation: it reports no measured returns or comparative results. Pivot points require confirmation from later bars, so signal timing and any use of historical data should be checked carefully. The included excerpt ends partway through the table-building section, leaving some display details unavailable. The example strategy uses a specified equity allocation and commission assumption, which affect results and should be accounted for when interpreting the monthly figures.
Key ideas
- The example strategy enters beyond confirmed pivot highs and lows using stop orders.
- Monthly returns are computed by compounding changes in strategy equity within each calendar month.
- The script stores monthly results in arrays for display in a chart table.
- Pivot confirmation timing, fees, and position sizing affect interpretation of reported returns.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.