Dapatkan tempoh K-garis ditetapkan pada halaman laman web platform FMZ Quant Trading apabila backtesting dan menjalankan strategi dalam perdagangan langsung, iaitu tempoh K-garis lalai yang digunakan apabila memanggilexchange.GetRecords()
berfungsi tanpa lulus parameter.
Tempoh garis K dalam saat, nilai bulat dalam saat. nombor
pertukaran.GetPeriod()
function main() {
// For example, the K-line period set on the website page of the FMZ Quant Trading platform during backtesting and live trading is 1 hour.
var period = exchange.GetPeriod()
Log("K-line period:", period / (60 * 60), "hours")
}
def main():
period = exchange.GetPeriod()
Log("K-line period:", period / (60 * 60), "hours")
void main() {
auto period = exchange.GetPeriod();
Log("K-line period:", period / (60 * 60.0), "hours");
}
{@fun/Market/exchange.GetRecords pertukaran.GetRecords}
exchange.GetRecords exchange.SetMaxBarLen