This is a minimal Electron application that can replace GeckoFX in QuantConnect.Lean in order to graph backtest results in a desktop environment.
To clone and run this repository you'll need the following installed on your computer
- Git
- Node.js (which comes with npm)
- Visual Studio 2015 with Visual C++ and associated tools installed
From your command line:
# Clone this repository
git clone https://github.com/andrewhart098/electronQC.git
# Go into the repository
cd electronQC
# Install dependencies and run the app
npm install
# rerun electron-rebuild
./node_modules/.bin/electron-rebuild
# Or if you are in Windows
.\node_modules\.bin\electron-rebuild.cmd
# Now start the electron app with
npm start
Run the QuantConnect.Lean engine in visual studio configured to run in a desktop environment. Be sure you have your user id and api access token configured.
Comment out the following lines in Program.cs QuantConnect.Lean.Launcher:
if (environment.EndsWith("-desktop")) {
var info = new ProcessStartInfo
{
UseShellExecute = false,
FileName = Config.Get("desktop-exe"),
Arguments = Config.Get("desktop-http-port")
};
Process.Start(info);
}
Learn more about QuantConnect go to QuantConnect.com.