Here is how you can get automatic switching to the best algorithm.
Use the password parameter to define a set of algorithms you want to mine. Your miner connection will close (and switch to the next configured algorithm) if the algorithm is not the most profitable in your set.
-p x11,neoscrypt,lyra2
-p scrypt,scryptn
The difficulty parameter can be combined with the algorithms.
-p d=64,scrypt,scryptn
Or with any other.
-p rig1,scrypt,scryptn
இல்லைte that the password parameter must be all together, i.e. without spaces.
To complete the setup, you will need to configure your miner to rotate between all algorithms.
Here is an example Windows batch file for ccminer.
:start ccminer -r 0 -a x11 -o stratum+tcp://stratum.koinium.it:3533 -u joe.mydevice -p x11,x13,x14,x15,quark,lyra2 ccminer -r 0 -a x13 -o stratum+tcp://stratum.koinium.it:3633 -u joe.mydevice -p x11,x13,x14,x15,quark,lyra2 ccminer -r 0 -a x15 -o stratum+tcp://stratum.koinium.it:3733 -u joe.mydevice -p x11,x13,x14,x15,quark,lyra2 ccminer -r 0 -a lyra2 -o stratum+tcp://stratum.koinium.it:4433 -u joe.mydevice -p x11,x13,x14,x15,quark,lyra2 ccminer -r 0 -a quark -o stratum+tcp://stratum.koinium.it:4033 -u joe.mydevice -p x11,x13,x14,x15,quark,lyra2 sleep 5000 goto start
By default, we use our built-in factor table to normalize profitability. The scrypt algorithm is the reference with a factor of 1.
'scrypt' => 1, 'scryptn' => 0.5, 'c11' => 2.0, 'x11' => 5.5, 'x13' => 3.9, 'x14' => 3.7, 'x15' => 3.5, 'nist5' => 6.0, 'zr5' => 10.0, 'drop' => 5.0; 'neoscrypt' => 0.3, 'lyra2' => 1.3, 'quark' => 6,
But you can also specify your custom profitability factors for each algorithm.
-p x11=5.1,neoscrypt=0.5,lyra2=2