Register
Log In
Forums
Starting with Zorro
Print asset name
Forums
Calendar
Active Threads
Search
Forum Help
Gamestudio Links
► Features
► Download
► Online Manual
► Online Tutorial
► Free Resources
► F.A.Q.
Zorro Links
► Download
► Online Manual
► Online Tutorial
► Blog
► Support
► What's New?
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
Who's Online Now
3 registered members (
AndrewAMD
,
SBGuy
,
Petra
), 801 guests, and 8 spiders.
Key:
Admin
,
Global Mod
,
Mod
Newest Members
Mega_Rod
,
EternallyCurious
,
howardR
,
11honza11
,
ccorrea
19048 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
OP
Junior Member
tuuPaul
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,725
Chicago
AndrewAMD
Serious User
AndrewAMD
Serious User
Joined:
Feb 2017
Posts: 1,725
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);
www.vitaltrades.com
-
andrew@vitaltrades.com
Moderated by
Petra
Hop To
Gamestudio ------
Starting with Gamestudio
Atari lite-C
Editors & Templates
A8 Engine
Shaders
Third Party Tools
Acknex Users Magazine
The Past
The Future
Zorro ------
Starting with Zorro
Educational
Automated Trading
Zorro Scripts
The Z Systems
Zorro and the Brokers
Zorro Future
Feedback ------
Bug Hunt
Blame the Manual
Ask the Developers
Updates & Announcements
Rants
Game Creation ------
Game Design & Business
Jobs Wanted
Jobs Offered
User Resources
Projects
Showcase
Beyond Games & Money ------
Hilbert's Hotel
Morbius' Virtual Answering Machine
Print Thread
Switch to Threaded Mode
5
Excellent
4
Good
3
Average
2
Bad
1
Terrible
View Profile
Send Private Message
Follow User
Show Forum Posts
View Profile
Send Private Message
View Homepage
Follow User
Show Forum Posts
Default Style
gamestudio
UBBT77
UBBT77 - Dark2
Forum Rules
·
Mark All Read
·
Powered by UBB.threads™ PHP Forum Software 7.7.1