forked from animatedread/Warrior_EA
TARGET_SWING: the direction models learn which way the next CONFIRMED SWING PIVOT lies from the current close. Geometry-free - the label owes nothing to a stop, target or horizon - which is what lets trade management be tuned separately instead of being baked into what the net learns. SwingPivotDirectionLabel reuses the ZigZag pivot the horizon and leg-size measurement already walk, so there is ONE notion of "pivot" in the codebase. It walks forward in time and stops at m_swingConfirmationBars: a pivot nearer than that is still repainting, so its label is not knowable yet and the bar stays Neutral. That boundary is the whole lookahead control for this target. TrainingTarget input is back (TARGET_BARRIER default, unchanged behaviour) with TARGET_FRACTAL and TARGET_SWING beside it; |TGT:SWG1 joins the fingerprint so switching trains a separate model rather than relabelling an existing one. ADZigZag was renamed to ZigZag throughout (30 identifiers). It has loaded MetaTrader's stock Examples\ZigZag at its stock defaults for some time - the migration was done, only the name was left behind, and a name that says "AD" about a stock indicator is exactly the legacy pointer this codebase should not carry. No behaviour change: same #resource, same params. Compile-verified in the staging copy: 0 errors, 0 warnings. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
22 lines
1.4 KiB
MQL5
22 lines
1.4 KiB
MQL5
//+------------------------------------------------------------------+
|
|
//| IndicatorResources.mqh |
|
|
//| AnimateDread |
|
|
//| |
|
|
//| How this EA addresses the indicators it does not compute itself. |
|
|
//| |
|
|
//| There used to be a WARRIOR_CI(name) macro here that switched |
|
|
//| between an embedded #resource path and a bare name, because the |
|
|
//| MQL5 Market build had to ship one self-contained .ex5. That build |
|
|
//| is gone (2026-08-23) and the macro expanded to its own argument, |
|
|
//| so it is gone with it - a switch with one position is not a |
|
|
//| switch. The five AD indicators are named at their call sites in |
|
|
//| Features.mqh and load from <MQL5>\Indicators\ at call time. |
|
|
//+------------------------------------------------------------------+
|
|
#ifndef WARRIOR_INDICATOR_RESOURCES_MQH
|
|
#define WARRIOR_INDICATOR_RESOURCES_MQH
|
|
//--- The ZigZag that ships with every MetaTrader install, addressed by its path under MQL5\Indicators\.
|
|
//--- Loading MetaQuotes' own copy means any fix they make arrives without a rebuild here; our
|
|
//--- ZigZag was a byte-identical rename of it.
|
|
#define WARRIOR_STOCK_ZIGZAG "Examples\\ZigZag"
|
|
|
|
#endif // WARRIOR_INDICATOR_RESOURCES_MQH
|