参数优化优化向前优化
This commit is contained in:
@@ -35,7 +35,7 @@ class EAAutoScanner:
|
||||
"from_date": "2025.01.01", "to_date": "2025.12.31",
|
||||
"model": 1, "deposit": 10000, "leverage": "1:100"
|
||||
},
|
||||
"walk_forward": {"enabled": False}
|
||||
"walk_forward": {"enabled": False, "forward_mode": 0, "forward_date": ""}
|
||||
}
|
||||
if params:
|
||||
for pname, pinfo in params.items():
|
||||
@@ -84,4 +84,4 @@ if __name__ == "__main__":
|
||||
fname = cfg["ea_name"].replace(" ", "_") + ".json"
|
||||
with open(os.path.join(args.output, fname), "w", encoding="utf-8") as f:
|
||||
json.dump(cfg, f, indent=4, ensure_ascii=False)
|
||||
print(f"Saved: {fname}")
|
||||
print(f"Saved: {fname}")
|
||||
|
||||
Reference in New Issue
Block a user