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 (degenerate_762, AndrewAMD), 877 guests, and 5 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
Finding currently active asset #480202
05/26/20 14:00
05/26/20 14:00
Joined: Oct 2016
Posts: 23
NSW
M
mayark Offline OP
Newbie
mayark  Offline OP
Newbie
M

Joined: Oct 2016
Posts: 23
NSW
Hello Forum,

I know this would have been answered by now.
What I am after is to find the current asset without hard coding it like using the asset() function. What is selected in the dropdown list in Zorro GUI is what I am after and I want to capture this in my script.
How would I go about capturing this?
Sorry, I am coming from MQL4 background. The equivalent is: OrderSymbol();


Thanks.

Last edited by mayark; 05/26/20 14:02.
Re: Finding currently active asset [Re: mayark] #480203
05/26/20 14:27
05/26/20 14:27
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline
Senior Member
Grat  Offline
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
simple:

strx(Asset,"/","")

Re: Finding currently active asset [Re: mayark] #480222
05/26/20 21:54
05/26/20 21:54
Joined: Oct 2016
Posts: 23
NSW
M
mayark Offline OP
Newbie
mayark  Offline OP
Newbie
M

Joined: Oct 2016
Posts: 23
NSW
Thank you Grat. I will try this.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1