Skip to content

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

declare const OPEN: number;

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

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