How to randomize the variables in the template?
3 replies
Chad Lin
6 months ago #292958
<p data-start=”0″ data-end=”157″>As you can see in the image attached, I created a grid trading template with many variables. One of them is called <strong data-start=”110″ data-end=”129″>tradeMultiplier, and its value is now 2. That means if I start with 0.01 lots and the price drops to the next grid level, I will increase my position to 0.02, then 0.04, then 0.08 lots, and so on.</p>
<p data-start=”312″ data-end=”579″>The problem is that when I use SQX to build strategies with this template, I want SQX to randomize the tradeMultiplier variable. I do not want it to always be a fixed value of 2. I would like it to test values like 1.3 or 1.5 and evaluate their performance.</p>
<p data-start=”581″ data-end=”758″ data-is-last-node=”” data-is-only-node=””>However, in the current template, this parameter can only be set as a fixed number. e.g., It’s 2 now, and when I build strategies, the lot multiplier has to be a fixed 2.</p>
<p data-start=”581″ data-end=”758″ data-is-last-node=”” data-is-only-node=””>I do not know how to configure it so that SQX can randomize it when building EAs.</p>
<p data-start=”581″ data-end=”758″ data-is-last-node=”” data-is-only-node=””>Thank you.</p>
0
Chad Lin
6 months ago #292959
@tomas262 Can you help me pls
0
Chad Lin
6 months ago #292960
As you can see in the image attached, I created a grid trading template with many variables. One of them is called tradeMultiplier, and its value is now 2. That means if I start with 0.01 lots and the price drops to the next grid level, I will increase my position to 0.02, then 0.04, then 0.08 lots, and so on.
The problem is that when I use SQX to build strategies with this template, I want SQX to randomize the tradeMultiplier variable. I do not want it to always be a fixed value of 2. I would like it to test values like 1.3 or 1.5 and evaluate their performance.
However, in the current template, this parameter can only be set as a fixed number. e.g., It’s 2 now, and when I build strategies, the lot multiplier has to be a fixed 2.
I do not know how to configure it so that SQX can randomize it when building EAs.
Thank you.
0
Chad Lin
6 months ago #292964
@tomas262 Can you help me pls
0
Viewing 3 replies - 1 through 3 (of 3 total)