Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
6 registered members (TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible), 17,843 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to pass data series() to TMF without globals #484134
09/14/21 11:57
09/14/21 11:57
Joined: Sep 2021
Posts: 13
-
R
Raven478 Offline OP
Newbie
Raven478  Offline OP
Newbie
R

Joined: Sep 2021
Posts: 13
-
Good day,

Is it possible to pass in a vars / series into the TMF without using globals?

The TMF uses a specific series to trail the stoploss. For context, I am running multi assets and algos in the same script hence why I can't use globals.

Re: How to pass data series() to TMF without globals [Re: Raven478] #484139
09/14/21 22:34
09/14/21 22:34
Joined: Jul 2017
Posts: 787
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 787
You can declare a global array of vars and pass just the index of the needed series in that array to the tmf.

Re: How to pass data series() to TMF without globals [Re: Raven478] #484141
09/15/21 06:29
09/15/21 06:29
Joined: Apr 2008
Posts: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
Austria
In asset loop:

AssetInt[0] = series(...);

In the TMF:

vars MySeries = AssetInt[0];

Re: How to pass data series() to TMF without globals [Re: Raven478] #484142
09/15/21 08:35
09/15/21 08:35
Joined: Sep 2021
Posts: 13
-
R
Raven478 Offline OP
Newbie
Raven478  Offline OP
Newbie
R

Joined: Sep 2021
Posts: 13
-
Thanks for both replies @Zheka and @Petra. And the code sample is much appreciated @Petra. smile


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1