Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 644 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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,731
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,731
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