Script: How to access last price?

 

Hello,

I was writing a simple script which its job is to send market data to external program but I have an issue.

I don't know how to access Last Price, Ask price and Bid price in script

How can I solve this? 

 
You just read Ask and Bid using MarketInfo( ) ... That's all.
Reason: