1 (edited by psmnac 2025-09-18 18:30:01)

Topic: Multi Market Validation

Hello all

I tried to make a Multi Market validation workflow that will pass a strategy if it passes validation on x amount of markets.
For this I made a node js script with AI.

Disclaimer, I did not test this thorougly yet. Use at your own risk.

- Put MultiMarket.mjs in bin folder.

- You need to have an input folder with singular strategy collections. Use auto_save_at_collected parameter when generating    a batch you want to validate MM on and output_replace = false.

- It will run Multi market validation on pairs which are also in eastudio.

- If you choose --markets 8 it will choose the first 8 pairs like on the website

- You can also choose your own list use these parameters for that;
--custom_markets true --custom_markets_list "EURUSD,USDJPY,AUDNZD,NZDCHF"

- validation_limit is the amount of markets it should pass to be valid.

- validated files should be in your output folder + /validated


Example:



set "symbol=%1"
set "period=%2"
set "startdate=%3"
set "enddate=%4"
set "timer=%5"

REM |Generate Normally
node .\bin\gen.js ^
 --settings                   wf_start.ini ^
 --symbol                  %symbol% ^
 --period                 %period% ^
 --data_start             %startdate% ^
 --data_end                  %enddate% ^
 --max-working-minutes    %timer% ^
 --output              ./collections/coll_[server]_[symbol]_[period].json ^
 --auto_save_at_collected  1 ^
 --output_replace  false

REM | Validate Multi Market
node .\bin\MultiMarket.mjs ^
 --settings               wf_MultiMarket.ini ^
 --symbol                   %symbol% ^
 --period                 %period% ^
 --data_start             %startdate% ^
 --data_end               %enddate% ^
 --input                  ./collections/ ^
 --output                 ./collections/MultiMarket ^
 --markets                8 ^
 --validation_limit       4



So in this case it will go through 8 market pairs validations and the strategy needs to be valid for 4 pairs.

I hope people can use this. If you find this of use please share a nice workflow with me since I still struggle myself.

Post's attachments

MultiMarket.mjs 14.85 kb, 5 downloads since 2025-09-18 

You don't have the permssions to download the attachments of this post.

Re: Multi Market Validation

Updated to accept other parameters of gen.js

Re: Multi Market Validation

Perfect, thanks for sharing, I will try testing it with my workflows.

Re: Multi Market Validation

Thank you for posting your code.

I'll also check it because I want to add some sort of Multi Market capability to Express Generator.

I may use the algorithm for proposing symbols for validation from EA Studio's Multi Market.

For the Forex symbols, chose the:
- next symbol with the same underlying currency
- next symbol with the same base currency
- next symbol

For the crypto, stocks and indices, get the next symbol from the same category.

I want it to be simple for use. Something like:

 --count-of-tests   5
 --min-passed-tests 3

It will fetch the required data and will calculate the collections. It may use a temporary directory.
I imagine it like:

node /bin/mm.js ^
  --input  Collection-[SERVER]-[SYMBOL]-[PERIOD].json    ^
  --output Collection-[SERVER]-[SYMBOL]-[PERIOD]-MM.json ^
  --server  Premium    ^
  --symbols auto       ^
  --period  M15        ^
  --count-of-tests   5 ^
  --min-passed-tests 3

I may add also some of the advanced options like pattern matching of the input, overwriting the exported collection, silent run...

I'll work on this feature and will post updates.