diff --git a/compile.cmd b/compile.cmd index 0015d258..d70eb774 100644 --- a/compile.cmd +++ b/compile.cmd @@ -1,6 +1,6 @@ @echo off - set METAEDITOR="C:\Program Files\MetaTrader 5 Main\MetaEditor64.exe" + set METAEDITOR="C:\Program Files\MetaTrader 5 General\MetaEditor64.exe" set "LOGFILE=%~dpn1.log" if "%~1"=="" ( diff --git a/package.json b/package.json index f6dc8c20..f3ebc380 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "compileHelpers": "npm run mqlHelper helpers", "compileClasses": "npm run mqlHelper classes", "compileIndicators": "npm run mqlHelper indicators", - "repackXCATBEA": "node prepareXCATBEA.js" + "repackXCATBEA": "node prepareXCATBEA.js", + "repackXOM1EA": "node prepareXOM1EA.js" }, "repository": { "type": "git", diff --git a/prepareXOM1EA.js b/prepareXOM1EA.js new file mode 100644 index 00000000..82f073d5 --- /dev/null +++ b/prepareXOM1EA.js @@ -0,0 +1,29 @@ +// +// Import Requirements ... +const XProjectTools = require("./x-mql-project.tools"); + +// +// define constants ... +const projectName = "XOM1EA"; + +// +// Projects Resources ... +const projectResources = [ + "Libraries/*", // Required Libraries + "Classes/*", // Required Classes + "XOM1EA/*", // XOM1EA Projects ... + "Indicators/x-saherelm.xom1", // Required Indicators + "Helpers/x-saherelm.xom1.helper", // Indicator's Helpers Classes + "Experts/x-saherelm.xom1.ea", // Expert Advisers +]; + +// +run(); + +/** + * Main Project Function ... + */ +async function run() { + // + await XProjectTools.prepareProject(projectName, projectResources); +} diff --git a/x-mql-project.tools.js b/x-mql-project.tools.js index 05d42239..69536d03 100644 --- a/x-mql-project.tools.js +++ b/x-mql-project.tools.js @@ -25,6 +25,7 @@ const workspacePaths = [ "Indicators", // Required Indicators "Libraries", // Required Libraries "XCATBEA", // XCATBEA Projects ... + "XOM1EA", // XOM1EA Projects ... ]; //