Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/23/26 20:38
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 14,921 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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,839
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,839
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,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,149
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