Warrior_EA/Warrior_EA.mqproj
AnimateDread 15827a6b77 refactor(trade-mgmt): remove all confidence-scaled trade management
Five modes went, all of them staking real risk on the model's confidence:
Intelligent entry (ENTRY_INTELLIGENT), stop (SL_INTELLIGENT), target
(TP_INTELLIGENT), trailing (CTrailingIntelligent) and lot size
(CMoneyIntelligent's quarter-Kelly). With them, the Confidence_Source
input and the CONFIDENCE_SOURCE enum, whose only job was choosing which
number those five read.

The reason is calibration, not correctness: the confidence magnitude is
known to be miscalibrated against the label prior, so every one of these
modes multiplied money by a quantity whose units were never established.
The DB arm had a second, independent defect - since the tester DB guard
(SignalDatabaseActive) it reads 0 in tester and optimizer but non-zero
live, so any backtest of CONF_DB/CONF_BLENDED could not reproduce live
trading. And what the DB produces is a filter-RANKING win rate, not a
per-trade win probability.

Both confidence numbers are still recorded per trade (aiConfidence /
dbConfidence) and still bucketed against outcome in TradeJournalReport.
Recording is what keeps the question answerable; acting on it was the
part with no evidence behind it. ConfidenceBridge.mqh now carries an
explicit telemetry-only rule at the top.

ENUM ORDINALS PINNED. Removing a member vacated a value in four enums at
once and MT5 does not validate an enum input replayed from a saved .set
or a stored optimization pass. TRAILING_STRATEGY and
MONEY_MANAGEMENT_STRATEGY now carry explicit values so the survivors keep
the numbers they were saved as, and ValidateBarrierInputs is widened into
ValidateTradeManagementInputs covering SL_Mode, TP_Mode,
Entry_Multiplier, TrailingStrategy and MM_STRATEGY. Without that gate a
chart saved with the Intelligent stop would feed SL_Mode = -1 into a
multiplier now used verbatim, placing the stop on the wrong side of entry.

RETRAIN-NEUTRAL: neither SL_Mode nor TP_Mode appears in
BuildModelFingerprint() or ComputeDbConfigFingerprint() since the
swing-pivot target replaced the barrier labels. No .nnw, .cfg or .db
re-keys. Also drops the now-dead g_TradeRewardRiskRatio bridge, the
CMoneyRiskBase::AdjustRiskAmount hook and the unsigned AIConfidence().

Compile-verified in _claude_stage: 0 errors, 0 warnings.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-25 10:10:20 -04:00

656 lines
No EOL
15 KiB
JSON

{
"platform" :"mt5",
"program_type":"expert",
"copyright" :"AnimateDread",
"version" :"3.2",
"cpu_architecture" :"1",
"optimize" :"1",
"fpzerocheck" :"1",
"tester_no_cache":"0",
"tester_everytick_calculate":"0",
"unicode_character_set":"0",
"static_libraries":"0",
"files":
[
{
"path":"Warrior_EA.mq5",
"compile":true,
"relative_to_project":true
},
{
"path":"MQL5\\Include\\Expert\\Expert.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Expert\\ExpertBase.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Trade\\SymbolInfo.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Object.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\StdLibErr.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Trade\\AccountInfo.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Trade\\PositionInfo.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Trade\\OrderInfo.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Trade\\DealInfo.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Trade\\HistoryOrderInfo.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Indicators\\Indicators.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Indicators\\Trend.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Indicators\\Indicator.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Indicators\\Series.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Arrays\\ArrayObj.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Arrays\\Array.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Arrays\\ArrayDouble.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Indicators\\Oscilators.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Indicators\\Volumes.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Indicators\\BillWilliams.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Indicators\\Custom.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Indicators\\TimeSeries.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Arrays\\ArrayInt.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Arrays\\ArrayLong.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Expert\\ExpertTrade.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Trade\\Trade.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Expert\\ExpertSignal.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Expert\\ExpertMoney.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Expert\\ExpertTrailing.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Expert\\Trailing\\TrailingNone.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"Trailing\\TrailingATR.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Money\\MoneyFixedRisk.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Money\\MoneyFixedLot.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"MQL5\\Include\\Expert\\Money\\MoneySizeOptimized.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"System\\PrintVerbose.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"System\\NewBar.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Expert\\ExpertCustom.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Expert\\ExpertSignalCustom.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Database\\DatabaseManager.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Structures\\tradeRecordStructure.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\Signals.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalAC.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalCCI.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalIchimoku.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalMA.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalMACD.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalRSI.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalStoch.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalSAR.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalEB.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalPB.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalIB.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalsessionFilter.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalNewsFilter.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalITF.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Trailing\\Trailing.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Money\\Money.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Variables\\Inputs.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"MQL5\\Include\\Generic\\Interfaces\\IMap.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\Interfaces\\ICollection.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\HashMap.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\Interfaces\\IEqualityComparer.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\Internal\\DefaultEqualityComparer.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\Internal\\EqualFunction.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\Interfaces\\IEqualityComparable.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\Internal\\HashFunction.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\Interfaces\\IComparable.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\Internal\\CompareFunction.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\HashSet.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\Interfaces\\ISet.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Generic\\Internal\\PrimeGenerator.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"Enumerations\\InputEnums.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Database\\DatabaseFileSystemManager.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Database\\DatabaseVersionManager.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Database\\DatabaseConnectionManager.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Database\\DatabaseOperationsManager.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Structures\\signalInfoStructure.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Variables\\Variables.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Expert\\ExpertMoneyCustom.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalDTDB.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalAO.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalWPR.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalRVI.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalPAI.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"AI\\Network.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"MQL5\\Include\\OpenCL\\OpenCL.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"Signals\\SignalLSTM.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Signals\\SignalCONV.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Enumerations\\GlobalEnums.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Expert\\ExpertSignalAIBase.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"MQL5\\Include\\Arrays\\ArrayFloat.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Math\\Stat\\Normal.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Math\\Stat\\Math.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Arrays\\ArrayDatetime.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"Variables\\ConfidenceBridge.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Variables\\RiskBudget.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Variables\\IndicatorTuneRanges.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"Panel\\ControlPanel.mqh",
"compile":false,
"relative_to_project":true
},
{
"path":"MQL5\\Include\\Controls\\Dialog.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\WndContainer.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\Wnd.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\Rect.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\Defines.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\WndClient.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\Panel.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\WndObj.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\ChartObjects\\ChartObjectsTxtControls.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\ChartObjects\\ChartObject.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\Scrolls.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\BmpButton.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\ChartObjects\\ChartObjectsBmpControls.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\Edit.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Charts\\Chart.mqh",
"compile":false,
"relative_to_project":false
},
{
"path":"MQL5\\Include\\Controls\\Button.mqh",
"compile":false,
"relative_to_project":false
}
],
"resources":
[
{
"type":"string",
"path":"AI\\Network.cl",
"name":"",
"relative_to_project":true
},
{
"type":"image",
"path":"MQL5\\Include\\Controls\\res\\Up.bmp",
"name":"",
"relative_to_project":false
},
{
"type":"image",
"path":"MQL5\\Include\\Controls\\res\\ThumbVert.bmp",
"name":"",
"relative_to_project":false
},
{
"type":"image",
"path":"MQL5\\Include\\Controls\\res\\Down.bmp",
"name":"",
"relative_to_project":false
},
{
"type":"image",
"path":"MQL5\\Include\\Controls\\res\\Left.bmp",
"name":"",
"relative_to_project":false
},
{
"type":"image",
"path":"MQL5\\Include\\Controls\\res\\ThumbHor.bmp",
"name":"",
"relative_to_project":false
},
{
"type":"image",
"path":"MQL5\\Include\\Controls\\res\\Right.bmp",
"name":"",
"relative_to_project":false
},
{
"type":"image",
"path":"MQL5\\Include\\Controls\\res\\Close.bmp",
"name":"",
"relative_to_project":false
},
{
"type":"image",
"path":"MQL5\\Include\\Controls\\res\\Restore.bmp",
"name":"",
"relative_to_project":false
},
{
"type":"image",
"path":"MQL5\\Include\\Controls\\res\\Turn.bmp",
"name":"",
"relative_to_project":false
}
]
}