Gamestudio Links
Zorro Links
Newest Posts
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 1,738 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Spread that is returned by the marketVal #470649
01/28/18 14:45
01/28/18 14:45
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline OP
Member
kujo  Offline OP
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
Hello,

I'm using M1 data with BarPeriod = 1440. I assumed that a Spread returned by the marketVal() should be an average spread for a bar, in my case the daily bar. However, the returned spread is a spread for a last M1 tick in a daily bar.

Is it working as designed?

Re: Spread that is returned by the marketVal [Re: kujo] #470654
01/29/18 00:26
01/29/18 00:26
Joined: Feb 2017
Posts: 1,830
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,830
Chicago
Not as you describe. Only one value is sampled to represent the bar.

Also, different plugins may use different values for MarketVal, not necessarily spread.

Re: Spread that is returned by the marketVal [Re: AndrewAMD] #470655
01/29/18 01:55
01/29/18 01:55
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline OP
Member
kujo  Offline OP
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
Originally Posted By: AndrewAMD
Not as you describe. Only one value is sampled to represent the bar.

Also, different plugins may use different values for MarketVal, not necessarily spread.


You mean that it's working as designed? The returned value shouldn't be the average value but the value of the last tick representing the bar?

I'm using M1 data files from Zorro's site with spread values

Last edited by kujo; 01/29/18 02:06.
Re: Spread that is returned by the marketVal [Re: kujo] #470661
01/29/18 09:35
01/29/18 09:35
Joined: Jul 2000
Posts: 28,133
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,133
Frankfurt
The spread is the spread of the close, viz. the last ask-bid quote of the bar.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1