Reply

Video Tutorial SQ Max Speed & Performance CPU,Ram,Disk & Extra 6k Strategy Quest challenge

92 replies

gentmat

Customer, bbp_participant, community, 234 replies.

Visit profile

7 years ago #115334

https://www.youtube.com/watch?v=l6oRsTNm0yc

// This is the link of the video , Check it out hopefully you will like it . YES i am arabic and the accent follows
me to death so if you have a problem with it “I am verry Sorry but i have to KILL YOU”

A big credit goes to “GeekTrader” , This Video tutorial is to teach you how to max speed of SQ 3 .
Tweaking CPU,rams and hard drives / SSD ‘s

The original post is like 10 pages + which seems bit complicated for beginners here so i explained it
step by step in this video + added more tweaks of my own (Hope it helps out beginners and even pro users of SQ).

End of the video is a quest for people to contribute more by filtering some good strategies and show us the procedure .. I am sure each pro will choose a different strategy(ies) we got to learn from the contributes.

Links of the video:

https://www.youtube.com/watch?v=l6oRsTNm0yc

* Strategies : https://drive.google.com/file/d/0B83k2vKtYK80UWNuWDZsenpQNzQ/view?usp=sharing

* Java Version 9 : http://cdn.azul.com/zulu-pre/bin/zulu…

* The scipt To use for the batch opening of SQ, Create new .bat file and add these line of codes and press
save . Watch the video to learn how to tweak the parameters.

 

 

 

@echo off
set NumberOfSQInstances=10
set MainSQLocation=C:/StrategyQuant
set TempSQLocation=C:/temp
set SQParameters=-J-server -J-Xmx1g -J-XX:+DisableExplicitGC -J-XX:+AggressiveOpts -J-XX:+UseSerialGC 
 
 
rmdir “%MainSQLocation%/temp” /S /Q
rmdir “%MainSQLocation%/log” /S /Q
rmdir “%TempSQLocation%/strategyquant-temp” /S /Q
mkdir “%TempSQLocation%/strategyquant-temp”
 
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
mkdir “%TempSQLocation%/strategyquant-temp/%%A”
)
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
compact /c /s:”%TempSQLocation%/strategyquant-temp/%%A”
)
c:
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
xcopy “%MainSQLocation%” “%TempSQLocation%/strategyquant-temp/%%A” /E /Y
CD “%TempSQLocation%/strategyquant-temp/%%A”
start /LOW StrategyQuant64.exe %SQParameters%
)
 
 
 

This is a new Script if you want to rename each instance so you can know each instance job . ( if you do not need this option use the above code )
1- NumberOfSQInstances= “to whatever number of instance you want to run” Lets say “X” instances
2- set arrayline[1]=CrossMaStrategyInstance
set arrayline[2]=RSIStrategyInstance
…. Continue declaring more to fit your X instances
lets say we want 3 instances so i ll add one more
arrayline[3]=anotherNewInstance

The code is :

 

@echo off
setlocal enabledelayedexpansion
 
 
 
 
set NumberOfSQInstances=2
set arrayline[1]=CrossMaStrategyInstance
set arrayline[2]=RSIStrategyInstance
 
 
 
 
set MainSQLocation=C:/StrategyQuant
set TempSQLocation=C:/temp
set SQParameters=-J-server -J-Xmx1g -J-XX:+DisableExplicitGC -J-XX:+AggressiveOpts -J-XX:+UseSerialGC
 
rmdir “%MainSQLocation%/temp” /S /Q
rmdir “%MainSQLocation%/log” /S /Q
rmdir “%TempSQLocation%/strategyquant-temp” /S /Q
mkdir “%TempSQLocation%/strategyquant-temp”
 
 
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
mkdir “%TempSQLocation%/strategyquant-temp/!arrayline[%%A]!”
)
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
compact /c /s:”%TempSQLocation%/strategyquant-temp/!arrayline[%%A]!”
)
 
c:
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
xcopy “%MainSQLocation%” “%TempSQLocation%/strategyquant-temp/!arrayline[%%A]!” /E /Y
CD “%TempSQLocation%/strategyquant-temp/!arrayline[%%A]!”
rename StrategyQuant64.exe !arrayline[%%A]!.exe
start /LOW !arrayline[%%A]!.exe %SQParameters%
 
)

0

gentmat

Customer, bbp_participant, community, 234 replies.

Visit profile

7 years ago #140867

Yes, i modified a bit in last part of script, the last line you posted is : start /LOW StrategyQuant64.exe %SQParameters%

when i ran bat, it informed ‘StrategyQuant64.exe can not be found and stopped automatically

So i tried adding location as : start /LOW F:\StrategyQuant\StrategyQuant64.exe %SQParameters%

It continued running but as you see in pictures i attached, database is then locked.

no no no so it is what i thought so .
dont edit it put it back as it was .

where is your sq3 folder location ?

Sent from my iPhone using Tapatalk

0

gusyoan

Customer, bbp_participant, community, 21 replies.

Visit profile

7 years ago #140868

no no no so it is what i thought so .
dont edit it put it back as it was .

where is your sq3 folder location ?

Sent from my iPhone using Tapatalk

 

F:\StrategyQuant

0

gusyoan

Customer, bbp_participant, community, 21 replies.

Visit profile

7 years ago #140869

F:\StrategyQuant

 

As i want put temp folder in Part I:\, the code i use should be:

 

@echo off
set NumberOfSQInstances=3
set MainSQLocation=f:\StrategyQuant
set TempSQLocation=i:\temp
set SQParameters=-J-server -J-Xmx1g -J-XX:+DisableExplicitGC -J-XX:+AggressiveOpts -J-XX:+UseSerialGC 
 
 
rmdir “%MainSQLocation%\temp” /S /Q
rmdir “%MainSQLocation%\log” /S /Q
rmdir “%TempSQLocation%\strategyquant-temp” /S /Q
mkdir “%TempSQLocation%\strategyquant-temp”
 
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
mkdir “%TempSQLocation%\strategyquant-temp\%%A”
)
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
compact /c /s:”%TempSQLocation%\strategyquant-temp\%%A”
)
c:
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
xcopy “%MainSQLocation%” “%TempSQLocation%\strategyquant-temp\%%A” /E /Y
CD “%TempSQLocation%\strategyquant-temp\%%A”
start /LOW StrategyQuant64.exe %SQParameters%

 

Is there anything wrong?

0

gentmat

Customer, bbp_participant, community, 234 replies.

Visit profile

7 years ago #140870

As i want put temp folder in Part I:\, the code i use should be:

@echo off
set NumberOfSQInstances=3
set MainSQLocation=f:\StrategyQuant
set TempSQLocation=i:\temp
set SQParameters=-J-server -J-Xmx1g -J-XX:+DisableExplicitGC -J-XX:+AggressiveOpts -J-XX:+UseSerialGC

rmdir “%MainSQLocation%\temp” /S /Q
rmdir “%MainSQLocation%\log” /S /Q
rmdir “%TempSQLocation%\strategyquant-temp” /S /Q
mkdir “%TempSQLocation%\strategyquant-temp”

FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
mkdir “%TempSQLocation%\strategyquant-temp\%%A”
)
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
compact /c /s:”%TempSQLocation%\strategyquant-temp\%%A”
)
c:
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
xcopy “%MainSQLocation%” “%TempSQLocation%\strategyquant-temp\%%A” /E /Y
CD “%TempSQLocation%\strategyquant-temp\%%A”
start /LOW StrategyQuant64.exe %SQParameters%
)

Is there anything wrong?

yes in the final u have c:
put i: where your clones are :p

Sent from my iPhone using Tapatalk

0

gusyoan

Customer, bbp_participant, community, 21 replies.

Visit profile

7 years ago #140871

yes in the final u have c:
put i: where your clones are 😛

Sent from my iPhone using Tapatalk

So, it should be : 

 

@echo off
set NumberOfSQInstances=3
set MainSQLocation=f:\StrategyQuant
set TempSQLocation=i:\temp
set SQParameters=-J-server -J-Xmx1g -J-XX:+DisableExplicitGC -J-XX:+AggressiveOpts -J-XX:+UseSerialGC 
 
 
rmdir “%MainSQLocation%\temp” /S /Q
rmdir “%MainSQLocation%\log” /S /Q
rmdir “%TempSQLocation%\strategyquant-temp” /S /Q
mkdir “%TempSQLocation%\strategyquant-temp”
 
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
mkdir “%TempSQLocation%\strategyquant-temp\%%A”
)
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
compact /c /s:”%TempSQLocation%\strategyquant-temp\%%A”
)
I:
FOR /L %%A IN (1,1,%NumberOfSQInstances%) DO (
xcopy “%MainSQLocation%” “%TempSQLocation%\strategyquant-temp\%%A” /E /Y
CD “%TempSQLocation%\strategyquant-temp\%%A”
start /LOW StrategyQuant64.exe %SQParameters%
)
 
Now, it created 4 folders as i set 3 instances in script, folder 1,2 and 3 are well cloned, only the first one left side is empty. But i have no SQ started after BAT ran  :wacko:
File: 1.png1.png

0

gusyoan

Customer, bbp_participant, community, 21 replies.

Visit profile

7 years ago #140872

I tried to run cloned file, StrategyQuant64.exe does not run after double click

File: 2.png2.png

0

gentmat

Customer, bbp_participant, community, 234 replies.

Visit profile

7 years ago #140873

I tried to run cloned file, StrategyQuant64.exe does not run after double click

give me teamviewer access

Sent from my iPhone using Tapatalk

0

gusyoan

Customer, bbp_participant, community, 21 replies.

Visit profile

7 years ago #140874

give me teamviewer access

Sent from my iPhone using Tapatalk

sent you by pm

0

gusyoan

Customer, bbp_participant, community, 21 replies.

Visit profile

7 years ago #140875

I finally got the problem, thanks to gentmat. So kind for your help

File: 3.png3.png

0

gentmat

Customer, bbp_participant, community, 234 replies.

Visit profile

7 years ago #140876

You welcome i updated the post in case someone have Non-english windows. 

Hope it will help others if they got problems / 

 

18th this month the new sq4 hopefully this thread will die with sq3 and the new SQ4 wont need the hell of multiple instances .

0

Ati

Customer, bbp_participant, community, 7 replies.

Visit profile

6 years ago #145056

Hi Gentmat,

I copied the Java version 9 from given link in your video, but SQ does not start. I compared the Java file against your copy Java 9 in your Hard disk and there is a  a couple differences. Could you please do new download and try it.  I have also run script . Script works copy instances. But they do not start. I would appreciate your help.

 

Atila

0

Ati

Customer, bbp_participant, community, 7 replies.

Visit profile

6 years ago #145059

I finally got the problem, thanks to gentmat. So kind for your help

 

What was the issue? I have same problem SQ does not start? Can you tell me how did you resolved?

0

gentmat

Customer, bbp_participant, community, 234 replies.

Visit profile

6 years ago #145080

What was the issue? I have same problem SQ does not start? Can you tell me how did you resolved?

when im back home. install teamviewer so i can check it myself. thats how i solved the last guy problem. it was windows language chinese not english

Sent from my iPhone using Tapatalk

0

afhampton

Customer, bbp_participant, community, 26 replies.

Visit profile

6 years ago #145325

I am curious as to what is considered “better performance” when it comes to building strategies. By observing my installation, it looks like SQ is generating a new strategy approximately every .5 s. Are others seeing similar speeds and is this considered good performance for SQ? 

0

Karish

Customer, bbp_participant, community, sq-ultimate, 443 replies.

Visit profile

6 years ago #145332

I am curious as to what is considered “better performance” when it comes to building strategies. By observing my installation, it looks like SQ is generating a new strategy approximately every .5 s. Are others seeing similar speeds and is this considered good performance for SQ? 

Depends on your PC speed like SSD CPU RAM,

 

this method of which this topic is for is to reduce SQ from eating a lot of RAM,

when i use SQ for searching strategies i use 1g of RAM for each, and i typically use 20~ SQ instances at once.

 

but when i use SQ for re-testing the strategies i use 16g per 1 instance.

 

it helps 🙂

0

Viewing 15 replies - 76 through 90 (of 92 total)

1 2 3 5 6 7