Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, monk12, Quad), 829 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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