MarkJoy:
Hello,
I saw that the below code prints 2 different values. Question is why?
Is it correct that Spread[] contains spread values at open time? and MarketInfo contains current spread value?
I think the Spread array contains an average spread for that bar/candlestick.
MarketInfo() is definitely returning the current, actual spread.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
I saw that the below code prints 2 different values. Question is why?
Is it correct that Spread[] contains spread values at open time? and MarketInfo contains current spread value?