Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
exchange.GetName
exchange.GetLabel
exchange.GetCurrency
exchange.SetCurrency
exchange.GetQuoteCurrency
exchange.GetPeriod
exchange.SetMaxBarLen
exchange.SetPrecision
exchange.GetRate
exchange.SetRate
exchange.SetBase
exchange.GetBase
exchange.SetProxy
exchange.SetTimeout
exchange.Encode
IO
Network
Storage
Threads
TA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Retrieves the K-line period configured on the FMZ Quant Trading platform website page when running a strategy in backtesting or live trading, i.e., the default K-line period used when calling the exchange.GetRecords() function without passing any parameters.

exchange.GetPeriod()

Examples

Read the default K-line period (in seconds) set on the page.

javascript
function main() { var period = exchange.GetPeriod() Log("K-line period (seconds)", period) // Output: K-line period (seconds) 3600 (the K-line period set on the page is 1 hour) }
python
def main(): period = exchange.GetPeriod() Log("K-line period (seconds)", period) # Output: K-line period (seconds) 3600 (the K-line period set on the page is 1 hour)
rust
fn main() { let period = exchange.GetPeriod(); Log!("K-line period (seconds)", period); // Output: K-line period (seconds) 3600 (the K-line period set on the page is 1 hour) }

Returns

TypeDescription

number

The number of seconds of the K-line period, an integer value, in seconds.

See Also