Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (PeroPero, 1 invisible), 858 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Pass vaiables with AssetList and AccountList #486581
09/07/22 07:24
09/07/22 07:24
Joined: Jan 2022
Posts: 58
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 58
Hello,

Is there a way to pass variables/arguments to the script, defined in AccountList and AssetList?

AccountList example:
I need to get some data from Binance API but only if I trade on Binance. I could do this way:
Code
if (strstr(Account, "binance"){...}

but if I don't have "binance" in the account name, I can't do that.

In the same way, it would be great if I could pass variables which are avaliable with the selected Asset.

AssetList example:
For example I don't want to analyze something with EURUSD: I check the "analyzeSomeStuff" argument (defined by the AssetList csv for example in a new column), and find out it's 0. But if the Asset is AUDUSD, in the "analyzeSomeStuff" column the value is 1.

Thank you!

Re: Pass vaiables with AssetList and AccountList [Re: NorbertSz] #486583
09/07/22 13:01
09/07/22 13:01
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
You can configure up to eight AssetVars or AssetStrs per asset in the asset list:
https://zorro-project.com/manual/en/account.htm
https://zorro-project.com/manual/en/algovar.htm

Re: Pass vaiables with AssetList and AccountList [Re: AndrewAMD] #486592
09/08/22 13:53
09/08/22 13:53
Joined: Jan 2022
Posts: 58
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 58
Perfect, thanks!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1