New video tutorial – How to code custom indicator in StrategyQuant

In this tutorial Tomas Brynda, our senior programmer, will show you step-by-step how to add TDI indicator into StrategyQuant using Java code. The advantage of adding an indicator this way is a possibility to use it for backtests for any timeframe without importing any additional data etc..

You can find the tutorial below:

Subscribe
Notify of
9 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Sabino
Sabino
28. 8. 2020 11:48 am

Hello Tomas, thanks for the explanation, really enlightening.
I saw that you rewrite the statistical functions of Variance and Standard Deviation. Is it possible to define them in specific statistical packages? So as to reuse them in all other circumstances?
where can I find the javadoc of this distribution? Sorry if I have not found it
Thank you for all, cordiality, Sabino.

Tomas Brynda
Tomas Brynda
Reply to  Sabino
9. 9. 2020 1:45 pm

Hi Sabino,
if you want to use the Variance and Standard deviation calculations in multiple snippets, it would be good to define them as new calculator classes inside SQ.Calculators package and make them extend AbstractCalculator class. Then you will be able to use it the same way as any other calculator.
You can find the documentation here: https://strategyquant.com/doc/programming-sq. Please note, we are still working on it, so it’s not complete yet. We plan to add some javadoc style documentation as well.
Best regards,
Tomas

Martin
Martin
1. 9. 2020 12:52 am

Great video. This was soooooo useful. Thank you so much for uploading it.

Tomas Brynda
Tomas Brynda
Reply to  Martin
9. 9. 2020 1:48 pm

Hi Martin, I’m glad it helped. Thanks for watching

yudhiyu
yudhiyu
2. 1. 2021 4:18 am

Please send me the link to download the source code for both the SQX and MT4 of TDI indicators..
Thx.

javed syed
javed syed
10. 1. 2021 2:41 am

How can I bring tradestation indicator into SQ as a custom indicator. thanks

tomas262
tomas262
Reply to  javed syed
27. 1. 2021 9:52 pm

If you have a favorite indicator in TS that you would like to see in SQX you can follow our codebase tutorials to learn how to translate your indicator into SQX https://strategyquant.com/codebase
Alternatively you can create a request for developers too add your indicator for you using this link https://roadmap.strategyquant.com/projects/sqp/tasks/new

shahin zare
shahin zare
14. 3. 2021 11:08 am

Hi. After write java code of indicator and add to building block. We don’t need to write signal code of indicator?

tomas262
Admin
Reply to  shahin zare
30. 7. 2021 8:05 pm

Actually a signal is a superstructure to an indicator definition and it is not necessary to use it. SQX can build strategies just by using the basic indicator definition

Continue reading