Gamestudio Links
Zorro Links
Newest Posts
How can I create a folder?
by danatrader. 03/29/20 21:57
History download
by danatrader. 03/29/20 21:49
Alice1a look back
by AndrewAMD. 03/29/20 16:01
Running banchmark test with FxPro on MT4
by Cobus. 03/29/20 13:38
Performance report - external trades
by Petra. 03/29/20 10:12
Multiple Zorro (free versions) instances
by Lozoteva. 03/29/20 10:09
Random Functions?
by gamers. 03/29/20 07:59
Loging off automatically ?
by 3run. 03/28/20 18:48
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
9 registered members (danatrader, kvm, alibaba, 3run, hast29, Jerome8911, painkiller, kerplunk1899, AndrewAMD), 669 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
HF_Psy, jj02520024, heitorfr, Art__, bmmtrader
18407 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,148
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,148
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();


Powered by UBB.threads™ PHP Forum Software 7.7.1