Skip to content

The closing mid price of the current bar in onTick, or of the bar that just closed in onIntervalClose. The same as PRICE.CLOSE and PRICE.MID.CLOSE.

declare const CLOSE: number;

Each timeframe and each instrument in INSTRUMENTS has its own CLOSE, such as H4.CLOSE.

function onIntervalClose() {
log("CLOSE", CLOSE, "4-hour CLOSE", H4.CLOSE, "GBP/USD CLOSE", INSTRUMENTS["GBP_USD:OANDA"].CLOSE);
}