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.