BID
The latest bid price of the instrument your algorithm runs on. A sell, or the close of a long position, fills near this price.
declare const BID: number;Each instrument in INSTRUMENTS has its own BID. Indicators cannot read BID; they work from bars.
Example
Section titled “Example”function onTick() { const stop = BID - 20 * PIP_SIZE; log("A stop 20 pips below the bid would sit at", stop.toFixed(PRECISION)); log("GBP/USD bid", INSTRUMENTS["GBP_USD:OANDA"].BID);}