Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Daily OHLC: enterLong on Open / exitLong on Close #478214
09/20/19 04:50
09/20/19 04:50
Joined: Jun 2019
Posts: 14
D
dh85 Offline OP
Newbie
dh85  Offline OP
Newbie
D

Joined: Jun 2019
Posts: 14
I have daily OHLC t6 data and want to enterLong on the daily bar Open price and exit on the same daily bar Close price.

Zorro always uses the Close price when calling enterLong and I don't know how to make it use the Open price instead.

Many thanks in advance.

Re: Daily OHLC: enterLong on Open / exitLong on Close [Re: dh85] #478215
09/20/19 10:09
09/20/19 10:09
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Set Fill=1, exit the previous trade, then set Fill=2 and enter the next trade.

https://manual.zorro-project.com/fill.htm

Re: Daily OHLC: enterLong on Open / exitLong on Close [Re: jcl] #478223
09/21/19 03:36
09/21/19 03:36
Joined: Jun 2019
Posts: 14
D
dh85 Offline OP
Newbie
dh85  Offline OP
Newbie
D

Joined: Jun 2019
Posts: 14
Thanks so much jcl!

This is doing exactly what I wanted (Fill = 3 instead of 2):

Fill = 1;
exitLong();
Fill = 3;
enterLong();


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1