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
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,246 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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