Hello
I wrote my first little indicator for showing the spread Value on the Top Right Corner.
But I do have problems to get the actual value for the Ask and Bid price to calculate the Spread.
I tried different approaches but didn't solved it yet. I wrote into the code (see below) the errors which I got on each approach.
Can anybody help me and tell me, what I do wrong here?
Thanks
P.S. attached the code: