How to obtain last price in tick() function?

Posted By: JamesHH

How to obtain last price in tick() function? - 03/18/20 01:16

My understanding of the manual is that in tick(), priceClose() gives the ask quote. So how does one get the trade price when a trade occurs?
Posted By: Petra

Re: How to obtain last price in tick() function? - 03/18/20 08:51

By switching from ask prices to trade prices:

brokerCommand(SET_PRICETYPE,2);

https://manual.zorro-project.com/brokercommand.htm
© 2024 lite-C Forums