ATR Contract Recommendation Extended v1.0 – Patch Notes
New Features:
**ATR Calculation Enhancements:**
- User-selectable ATR length and smoothing method (RMA, SMA, EMA, WMA).
**Account Size Customization:**
- Supports three account sizes: 150K, 100K, and 50K.
- Distinct ATR thresholds and recommendation levels for each account size for NQ, ES, and YM.
**Base Recommendation Functions:**
- Integrated functions (f_getNQRec, f_getESRec, f_getYMRec) that determine the base recommendation from the ATR value based on the thresholds.
**Zero-Lag Moving Average Market Condition:**
- Calculates a zero-lag moving average (ZLMA) on 5‑minute data.
- Determines market condition as “Trending Up” or “Trending Down” based on the ZLMA slope.
- Counts direction changes over a user‑defined lookback period; if too many changes occur, the market is classified as “Chop.”
**Chop Override Logic:**
- When chop override is enabled and the market condition is “Chop”, the final recommendation becomes “INVALID.”
- Otherwise, the final recommendation remains as determined by the ATR-based base recommendation.
**Customizable Table Display:**
- Displays ATR, final recommendation, and market condition in a table on the chart.
- Fully customizable table settings: text color, background color, border width, frame width, text size, and table position.
- Option to remove the table background for a transparent look.
Improvements:
• Fully integrated thresholds and recommendations for multiple account sizes across NQ, ES, and YM.
• Clean integration of the zero-lag moving average logic to assess market trending versus choppiness.
• Robust table display that updates only on the last bar, ensuring minimal chart clutter.
Bug Fixes:
• Resolved issues with undefined function references by defining all required recommendation functions.
• Improved table display logic and background removal functionality.
Enjoy the new features and improved performance!