Gamestudio Links
Zorro Links
Newest Posts
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (LucasJoshua, rht, 1 invisible), 30,808 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rht, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Must then be called in a fixed order in the script #487888
10/24/23 16:29
10/24/23 16:29
Joined: Aug 2023
Posts: 19
I
izorro Offline OP
Newbie
izorro  Offline OP
Newbie
I

Joined: Aug 2023
Posts: 19
I have noticed this being mentioned in several indicators in https://zorro-project.com/manual/en/ta.htm

Functions internally create series and thus must be called in a fixed order in the script.

Could someone explain what this means? what is the "fixed order"?

Re: Must then be called in a fixed order in the script [Re: izorro] #487889
10/24/23 16:51
10/24/23 16:51
Joined: Feb 2017
Posts: 1,839
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,839
Chicago
For every run() call, series() must be called the same exact number of times every time. It cannot be changed by an if statement between run() calls.

As a rule of thumb, put all series() calls outside of all if statements.

Re: Must then be called in a fixed order in the script [Re: AndrewAMD] #487892
10/25/23 07:40
10/25/23 07:40
Joined: Aug 2023
Posts: 19
I
izorro Offline OP
Newbie
izorro  Offline OP
Newbie
I

Joined: Aug 2023
Posts: 19
Ahh got it. Thank you.

Re: Must then be called in a fixed order in the script [Re: AndrewAMD] #487893
10/25/23 07:44
10/25/23 07:44
Joined: Aug 2023
Posts: 19
I
izorro Offline OP
Newbie
izorro  Offline OP
Newbie
I

Joined: Aug 2023
Posts: 19
This is a much better explanation, it should be documented somewhere if not already.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1