Spread that is returned by the marketVal

Posted By: kujo

Spread that is returned by the marketVal - 01/28/18 14:45

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?
Posted By: AndrewAMD

Re: Spread that is returned by the marketVal - 01/29/18 00:26

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.
Posted By: kujo

Re: Spread that is returned by the marketVal - 01/29/18 01:55

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
Posted By: jcl

Re: Spread that is returned by the marketVal - 01/29/18 09:35

The spread is the spread of the close, viz. the last ask-bid quote of the bar.
© 2024 lite-C Forums