Fix compile errors: NeuralNet input param rename, Orchestrator refs to pointers, EVT_MaxAbsZ call, SYMBOL_MARGIN_INITIAL, remove unused var
This commit is contained in:
@@ -216,7 +216,6 @@ void PrintNeuralStats() {
|
||||
Print(" " + orchestrator.NeuralInfo());
|
||||
// Feature importanza approssimata: media |W1| per input
|
||||
if(orchestrator.IsNeuralReady()) {
|
||||
string lines[8];
|
||||
// Non possiamo accedere direttamente ai pesi
|
||||
Print(" (vedi CSV per loss history e training samples)");
|
||||
}
|
||||
@@ -349,7 +348,7 @@ void ManagePositions(const MarketData &data, const FinalSignal &fs) {
|
||||
|
||||
// Solo il margine libero limita i trade
|
||||
double freeMargin = AccountInfoDouble(ACCOUNT_MARGIN_FREE);
|
||||
double marginReq = lot * SymbolInfoDouble(sym, SYMBOL_MARGIN_REQUIRED);
|
||||
double marginReq = lot * SymbolInfoDouble(sym, SYMBOL_MARGIN_INITIAL);
|
||||
if(marginReq >= freeMargin && freeMargin > 0) {
|
||||
Print("Margine insufficiente: lot=", lot, " free=", freeMargin, " req=", marginReq);
|
||||
return; // Skip — solo il margine blocca i trade
|
||||
|
||||
Reference in New Issue
Block a user