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
Zorro not reconnecting to IB gateway after restart
by jcl. 03/11/26 13:30
Select folders dialog and select multiple files dialog
by jcl. 03/11/26 11:44
Z9 with 3.01.4 - Error 047: not enough ticks
by jcl. 03/10/26 12:28
ZorroGPT
by TipmyPip. 03/08/26 18:50
♪♫♪ [For hire] VOLKOVSTUDIO - Music, SFX, Voice over, implementa
by Volkovstudio. 03/05/26 17:28
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Who's Online Now
3 registered members (
USER0328
,
Quad
, 1 invisible), 14,101 guests, and 1 spider.
Key:
Admin
,
Global Mod
,
Mod
Newest Members
the1
,
alx
,
ApprenticeInMuc
,
PatrickH90
,
USER0328
19200 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