forked from animatedread/Warrior_EA
Eliminate the separate `AI_TOPOLOGY_PRESET` enum and input. Fold the topology presets directly into `AI_CHOICE` as new combined values (MLP_3L, MLP_4L, CONV_2L, LSTM_2L, HYBRID_2L) plus `AI_NONE`. Remove the `TopologyPreset` input variable and update default `AIType` assignments. Update the market description to reflect the simplified single‑selector interface. **Why:** Users previously had to choose an AI architecture and a topology preset separately. Now the UI shows one coherent selector that bundles architecture with its appropriate dense‑layer depth, reducing complexity and preventing mismatches.
20 lines
1.4 KiB
MQL5
20 lines
1.4 KiB
MQL5
//+------------------------------------------------------------------+
|
|
//| Warrior_EA |
|
|
//| AnimateDread |
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
string eaName = "Warrior_EA";
|
|
string tableschema = "year INTEGER, month INTEGER, day INTEGER, dayOfWeek INTEGER, hour INTEGER, minutes INTEGER, pattern STRING, direction STRING, entryPrice DOUBLE, exitPrice DOUBLE, result STRING";
|
|
bool IsBacktesting = false;
|
|
//--- EnableITF/EnableSessionFilter/EnableNewsFilter/EnableRiskGuard moved to real inputs
|
|
//--- (Variables\Inputs.mqh) for consistency with every other filter's on/off toggle - see there.
|
|
bool EnablePAI = (AIType == MLP_3L || AIType == MLP_4L);
|
|
bool EnableCONV = (AIType == CONV_2L);
|
|
bool EnableLSTM = (AIType == LSTM_2L);
|
|
bool EnableHYBRID = (AIType == HYBRID_2L);
|
|
//--- Unlike the Enable* flags above (fixed from inputs at file-load time), this one is only known at
|
|
//--- runtime - OnInit() sets it from CheckMarketDepthAvailability() before any signal is created, and
|
|
//--- OnDeinit() reads it back to decide whether MarketBookRelease() is needed. See
|
|
//--- Signals\SignalMarketDepth.mqh's class-level comment.
|
|
bool g_marketDepthAvailable = false;
|
|
//+------------------------------------------------------------------+
|