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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, Ayumi, 7th_zorro), 877 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Print asset name #474916
11/13/18 07:16
11/13/18 07:16
Joined: May 2018
Posts: 65
T
tuuPaul Offline OP
Junior Member
tuuPaul  Offline OP
Junior Member
T

Joined: May 2018
Posts: 65
Script which enters long position when ma20>ma40 with two assets. How can i detect which asset provide ma20>ma40. How can i printf asset name guys?

Re: Print asset name [Re: tuuPaul] #474921
11/13/18 12:28
11/13/18 12:28
Joined: Feb 2017
Posts: 1,726
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,726
Chicago
The name of the currently selected Asset is a string called Asset.

http://zorro-project.com/manual/en/script.htm

Here is the magic line of code you seem to be looking for:
Code:
printf("\n%s",Asset);



Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1