Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
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 Offline OP
Member
blaub4r  Offline 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 Offline
User
dusktrader  Offline
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 

Powered by UBB.threads™ PHP Forum Software 7.7.1