dlouisbriggs wrote:Thank you aaronpriest ...
I haven't used variables in .cmd files yet so please bear with me.
Suppose I wanted to run 3 pairs. Would I change the "set symbol=%1" to "set symbols=EURUSD GBPUSD USDCAD"
No, each variable you want to call later needs it's own unique number, hence this at the top of generate.cmd:
set symbol=%1
set period=%2
set minutes=%3
Then in the start command that references generate.cmd (AllPairs.cmd for example) you use the variables you already set placeholders for (1, 2, 3, etc.). In this case symbol, period, and minutes. Thus the command you see that starts generate.cmd and then has symbol, period, and minutes afterward, in that precise order, because those were the 1, 2, and 3 placeholders already defined in generate.cmd. For example:
START C:\express-generator\generate.cmd EURAUD H1 60
START C:\express-generator\generate.cmd EURCAD H4 120
You can use whatever variables you want, as long as they are in the correct order. You couldn't say generate.cmd H4 120 EURUSD for example because symbol=%1, period=%2, and minutes=%3, you'd have to arrange the variables in the correct sequence to match the placeholders you defined. You can define as many variables as you need in this manner, just use them in the correct sequence.