49 lines
2.4 KiB
Python
49 lines
2.4 KiB
Python
"""GoldScalperPro parameter mappings for .set generation (doc 07 §2a).
|
|
|
|
Maps Python param names → EA input names. Most are 1:1 (the Python dict uses
|
|
the EA's own ``InpXxx`` names). Enums are stored as ints already, so no cast
|
|
needed. Booleans need ``true``/``false`` wire form — the base ``ParamMapping``
|
|
handles that.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from shared.mt5_pipeline.set_gen import ParamMapping
|
|
|
|
# 1:1 mappings — the Python dict keys already match the EA input names.
|
|
GOLD_SCALPER_MAPPINGS: list[ParamMapping] = [
|
|
ParamMapping("InpTimeframe", "InpTimeframe"),
|
|
ParamMapping("InpFastEmaPeriod", "InpFastEmaPeriod"),
|
|
ParamMapping("InpSlowEmaPeriod", "InpSlowEmaPeriod"),
|
|
ParamMapping("InpRsiPeriod", "InpRsiPeriod"),
|
|
ParamMapping("InpRsiBuyLevel", "InpRsiBuyLevel"),
|
|
ParamMapping("InpRsiSellLevel", "InpRsiSellLevel"),
|
|
ParamMapping("InpPullbackAtrMult", "InpPullbackAtrMult"),
|
|
ParamMapping("InpAtrPeriod", "InpAtrPeriod"),
|
|
ParamMapping("InpMinAtrPoints", "InpMinAtrPoints"),
|
|
ParamMapping("InpMaxSpreadAtrPct", "InpMaxSpreadAtrPct"),
|
|
ParamMapping("InpSizingMode", "InpSizingMode"),
|
|
ParamMapping("InpFixedLots", "InpFixedLots"),
|
|
ParamMapping("InpRiskPercent", "InpRiskPercent"),
|
|
ParamMapping("InpStopMode", "InpStopMode"),
|
|
ParamMapping("InpAtrSLMult", "InpAtrSLMult"),
|
|
ParamMapping("InpAtrTPMult", "InpAtrTPMult"),
|
|
ParamMapping("InpStopLossPoints", "InpStopLossPoints"),
|
|
ParamMapping("InpTakeProfitPoints", "InpTakeProfitPoints"),
|
|
ParamMapping("InpUseBreakEven", "InpUseBreakEven"),
|
|
ParamMapping("InpBreakEvenPoints", "InpBreakEvenPoints"),
|
|
ParamMapping("InpBreakEvenLock", "InpBreakEvenLock"),
|
|
ParamMapping("InpUseTrailing", "InpUseTrailing"),
|
|
ParamMapping("InpTrailStartPoints", "InpTrailStartPoints"),
|
|
ParamMapping("InpTrailStepPoints", "InpTrailStepPoints"),
|
|
ParamMapping("InpMaxPositions", "InpMaxPositions"),
|
|
ParamMapping("InpMaxTradesPerDay", "InpMaxTradesPerDay"),
|
|
ParamMapping("InpDailyLossLimit", "InpDailyLossLimit"),
|
|
ParamMapping("InpDailyProfitTarget", "InpDailyProfitTarget"),
|
|
ParamMapping("InpMinSecondsBetween", "InpMinSecondsBetween"),
|
|
ParamMapping("InpUseSession", "InpUseSession"),
|
|
ParamMapping("InpSessionStartHour", "InpSessionStartHour"),
|
|
ParamMapping("InpSessionEndHour", "InpSessionEndHour"),
|
|
ParamMapping("InpMagicNumber", "InpMagicNumber"),
|
|
ParamMapping("InpComment", "InpComment"),
|
|
]
|