Gamestudio Links
Zorro Links
Newest Posts
Can't plot daily high & low
by Junker. 10/13/19 23:51
Imgui Lite-c Development
by txesmi. 10/13/19 09:40
A9
by Dooley. 10/11/19 18:53
Need Help Finding Cause of Crash
by Dooley. 10/11/19 18:51
What algorithm is used for BALANCED?
by JamesHH. 10/11/19 17:32
Votes for future features
by AndrewAMD. 10/11/19 14:12
Price not shown correctly via MT4 bridge
by gamadeus. 10/10/19 05:48
Loading Keybindings from a File
by Dooley. 10/10/19 03:44
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
5 registered members (Michael_Schwarz, YG8, kvm, JamesHH, 1 invisible), 637 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
FrankW, TedMar, raimucuk, vivaldi2, filip
18304 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: 11
D
dh85 Offline OP
Newbie
dh85  Offline OP
Newbie
D

Joined: Jun 2019
Posts: 11
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,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,024
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: 11
D
dh85 Offline OP
Newbie
dh85  Offline OP
Newbie
D

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

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

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


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1