Register
Log In
Forums
Starting with Zorro
Opening trades when starting a strategy
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
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
How to Get Free Live Data for Zorro Futures Paper Trading?
by AndrewAMD. 05/19/24 14:42
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Zorro Calculate Commission and Spread Even Setting Is Off
by Zheka. 05/16/24 10:41
Change chart colours
by 7th_zorro. 05/11/24 09:25
Texture/Sprite animation tool. Someone interested in ?
by NeoDumont. 05/10/24 19:36
Seeking Advice: Trading Two Algorithms for SPX500 / US Treasury
by AndrewAMD. 05/07/24 00:56
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
Who's Online Now
3 registered members (
AndrewAMD
,
kzhao
,
7th_zorro
), 714 guests, and 7 spiders.
Key:
Admin
,
Global Mod
,
Mod
Newest Members
Hanky27
,
firatv
,
wandaluciaia
,
Mega_Rod
,
EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Opening trades when starting a strategy
#438196
03/09/14
21:46
03/09/14
21:46
Joined:
Nov 2012
Posts: 126
B
blaub4r
OP
Member
blaub4r
OP
Member
B
Joined:
Nov 2012
Posts: 126
I want to open a set of trades when I start the strategy.
The idea was using if(is(INITRUN)) but this does not seem to work.
Any ideas?
Re: Opening trades when starting a strategy
[
Re: blaub4r
]
#438198
03/10/14
00:38
03/10/14
00:38
Joined:
Jul 2013
Posts: 522
D
dusktrader
User
dusktrader
User
D
Joined:
Jul 2013
Posts: 522
I don't think you can do that, because (I think) during INITRUN, Zorro is still pacing through the LookBack.
Probably what you want is something like this:
if (Bar==LookBack) enterLong();
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
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