Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, AndrewAMD, Quad, Ayumi), 806 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Asset list - Market Column #487327
03/18/23 16:02
03/18/23 16:02
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Hi,
is there any way to specify, in the asset list, complex market hours i.e gaps within the day or different trading hours during different day of the week. Few example from my broker Oanda follows:
Australia 200 : Mon - Fri 09:50 - 16:30; 17:10 - 07:00
Brent Crude Oil : Sun-Thu: 20:00 - 17:59, Thu-Fri: 20:00 - 16:59 (New York)

Thank you in advance

Re: Asset list - Market Column [Re: MatPed] #487329
03/20/23 00:04
03/20/23 00:04
Joined: Feb 2016
Posts: 15
Russia
nsg Offline
Newbie
nsg  Offline
Newbie

Joined: Feb 2016
Posts: 15
Russia
Something I can instantly think of is to simply add 5 more fields (one for each day of week) to your AL and get these values in the script through AssetStr ( https://zorro-project.com/manual/en/algovar.htm ). AssetStr[0] for Monday, [1] for Tuesday, etc. You'll also have to write specific parsers for each asset and DOW using string functions ( https://zorro-project.com/manual/en/str_.htm ) and to be careful with switching to a correct asset within your script.

Re: Asset list - Market Column [Re: nsg] #487330
03/20/23 08:44
03/20/23 08:44
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
mmmm, I will not mess up the asset list. it will impact a lot of things. It could be done with a separte file, but I'd like to know if there is a way to manage this with standard settings. Thank you


Moderated by  Petra 

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