|
Re: Custom indicators and TA-lib
[Re: bot]
#482061
12/14/20 16:17
12/14/20 16:17
|
Joined: Feb 2017
Posts: 1,725 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,725
Chicago
|
Zorro is not open source. Some functions are open source. The ones that are have a check mark in this list are open source and zipped up in the source folder: https://zorro-trader.com/manual/en/funclist.htmYou are responsible for calling series() and indicator functions on the script side. Zorro iteratively calls the run() function, which is where you place your indicator function calls. The free tutorial with the free Zorro software starts here. It's well worth your time, as it will answer most of your questions: https://zorro-project.com/manual/en/tutorial_var.htm
|
|
|
Re: Custom indicators and TA-lib
[Re: bot]
#482063
12/14/20 17:38
12/14/20 17:38
|
Joined: Feb 2017
Posts: 1,725 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,725
Chicago
|
Thank you for the links, I don't need the source code, but want the function definition like inputs/outputs so that I can use to write my own indicators for Zorro.
I see SETSERIES(Data,Period); is used heavily inside indicators.c but cannot find the function definition for it. You never call SETSERIES() in Zorro, ever. It's buried in the backend and not callable in the script. series() is defined here: https://zorro-project.com/manual/en/series.htm
|
|
|
Re: Custom indicators and TA-lib
[Re: bot]
#482064
12/14/20 17:41
12/14/20 17:41
|
Joined: Feb 2017
Posts: 1,725 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,725
Chicago
|
|
|
|
Re: Custom indicators and TA-lib
[Re: bot]
#482067
12/14/20 20:06
12/14/20 20:06
|
Joined: Feb 2017
Posts: 1,725 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,725
Chicago
|
One thing that isn't clear to me is where to add the custom indicators? in indicators.c file?
Also, in the same file most of the indicators call SETSERIES, as in example below:
// Awesome Oscillator var AO(var* Data) { var R = SMA(Data,5)-SMA(Data,34); SETSERIES(Data,34); return R; }
That is the reason I want too know what is the purpose of SETSERIES function?
Zorro ignores the indicators.c file completely, and therefore you should ignore indicators.c. It is impossible for you (the script-writer) to use SETSERIES, so ignore that too. You put your custom indicator function either in a header file and include it, or put it above the run() function. Both have the same effect of working.
|
|
|
Re: Custom indicators and TA-lib
[Re: AndrewAMD]
#482166
01/04/21 23:14
01/04/21 23:14
|
Joined: Dec 2020
Posts: 13
bot
OP
Newbie
|
OP
Newbie
Joined: Dec 2020
Posts: 13
|
What does the SETSERIES function do? Why is it used in few places? e.g. in // Awesome Oscillator
SETSERIES(Data,34);
What does the series function do?
How to access the TA LIB functions?
Last edited by bot; 01/04/21 23:16.
|
|
|
|