Fix MQL5 compile: rename 'input' params in NeuralNet (keyword conflict), replace Orchestrator pointers with direct array access (MQL5 doesn't support struct pointers)

This commit is contained in:
pietro_giacobazzi
2026-06-13 15:18:49 +02:00
parent c70c2f28ce
commit a29befcd67
2 changed files with 128 additions and 133 deletions
@@ -498,9 +498,9 @@ for(int i = 0; i < m_hidden; i++) {
first, last, best, bestEpoch+1, ArraySize(m_lossHistory));
}
int Predict(vector &input) {
vector output;
Forward(input, output);
int Predict(vector &inp) {
vector output;
Forward(inp, output);
int bestIdx = 0;
double bestVal = output[0];
for(int i = 1; i < m_outputs; i++) {
@@ -512,9 +512,9 @@ for(int i = 0; i < m_hidden; i++) {
return bestIdx;
}
double GetCombinedZ(vector &input) {
vector output;
Forward(input, output);
double GetCombinedZ(vector &inp) {
vector output;
Forward(inp, output);
return output[0] - output[2];
}