MID
The midpoint of BID and ASK, rounded to the instrument’s PRECISION.
declare const MID: number;Bars, price(), prices() and the built-in indicators use mid prices unless you ask for a side.
Example
Section titled “Example”function onTick() { log("Mid", MID, "GBP/USD mid", INSTRUMENTS["GBP_USD:OANDA"].MID);}