Period
Description
Syntax
public Period(): numberReturn Value
Example
try {
const period = this.api.Period();
console.log(`Current chart timeframe: ${period} minutes`);
} catch (error) {
console.error("Failed to get chart period:", error.message);
}Last updated