Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (Quad, M_D, Ayumi, AndrewAMD), 783 guests, and 1 spider.
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