Hi,
I am trying to set up parameter optimization in Lean localy. I am using VS Code and Dbug in container option.
If I use normal (non-parametrized) strategy, it seems the algorithm is started using the commad (I split it to be more readible):
"docker run --rm
--mount type=bind,source=C:\Users\Mislav\Documents\GitHub\Lean/Launcher/config.json,target=/Lean/Launcher/config.json,readonly
-v C:\Users\Mislav\Documents\GitHub\Lean/Data:/Data:ro
-v C:\Users\Mislav\Documents\GitHub\Lean/Results:/Results
--name LeanEngine
-p 5678:5678
--expose 6000
--mount type=bind,source=C:\Users\Mislav\Documents\GitHub\Lean\Launcher\bin\Debug\QuantConnect.Algorithm.CSharp.dll,target=/Lean/Launcher/bin/Debug/QuantConnect.Algorithm.CSharp.dll
--mount type=bind,source=C:\Users\Mislav\Documents\GitHub\Lean\Launcher\bin\Debug\QuantConnect.Algorithm.CSharp.pdb,target=/Lean/Launcher/bin/Debug/QuantConnect.Algorithm.CSharp.pdb
-v C:\Users\Mislav\Documents\GitHub\Lean/Algorithm.Python:/Lean/Algorithm.Python -p 55555:55555
--entrypoint mono quantconnect/lean:latest
--debug
--debugger-agent=transport=dt_socket,server=y,address=0.0.0.0:55555,suspend=y QuantConnect.Lean.Launcher.exe
--data-folder /Data
--results-destination-folder /Results
--config /Lean/Launcher/config.json"
If I set up config.json file in Optimizer.Launcher and used self.Parameter in my algo, how can I start Optimizer.LAuncher instead of Launcher
My try:
"docker run --rm
--mount type=bind,source=C:\Users\Mislav\Documents\GitHub\Lean/Optimizer.Launcher/config.json,target=/Lean/Optimizer.Launcher/config.json,readonly
-v C:\Users\Mislav\Documents\GitHub\Lean/Data:/Data:ro
-v C:\Users\Mislav\Documents\GitHub\Lean/Results:/Results
--name LeanEngine
-p 5678:5678
--expose 6000
--mount type=bind,source=C:\Users\Mislav\Documents\GitHub\Lean\Launcher\bin\Debug\QuantConnect.Algorithm.CSharp.dll,target=/Lean/Launcher/bin/Debug/QuantConnect.Algorithm.CSharp.dll
--mount type=bind,source=C:\Users\Mislav\Documents\GitHub\Lean\Launcher\bin\Debug\QuantConnect.Algorithm.CSharp.pdb,target=/Lean/Launcher/bin/Debug/QuantConnect.Algorithm.CSharp.pdb
-v C:\Users\Mislav\Documents\GitHub\Lean/Algorithm.Python:/Lean/Algorithm.Python -p 55555:55555
--entrypoint mono quantconnect/lean:latest
--debug
--debugger-agent=transport=dt_socket,server=y,address=0.0.0.0:55555,suspend=y QuantConnect.Lean.Launcher.exe
--data-folder /Data
--results-destination-folder /Results
--config /Lean/Launcher/config.json"
Aaron Janeiro Stone
Optimizer.Launcher/bin/Debug/QuantConnect.Optimizer.Launcher.exe is the executable I think you're looking for (i.e., as opposed to QuantConnect.Lean.Launcher.exe )
Mislav Sagovac
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!