Gamestudio Links
Zorro Links
Newest Posts
Chat Room for Zorro Programmers
by danatrader. 07/02/20 18:35
Locating unfreed memory
by Dooley. 07/02/20 14:39
A9
by Aku_Aku. 07/02/20 12:43
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 07/02/20 11:11
Help with code
by danatrader. 07/02/20 04:22
Grid Trading - dynamic
by danatrader. 07/01/20 17:15
Fuzzy Range
by AndrewAMD. 07/01/20 16:57
new macro: break_assets
by AndrewAMD. 07/01/20 01:01
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 (Zheka, Ayumi, 3run, 20BN, kvm, ozgur, Quad, jenGs, Grat), 423 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
carolthesecond, Roger399, vrindger, XRaf, pchen90
18472 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,249
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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