0
Follow
0
Followers
El último dato que obtiene GetRecords es la hora de inicio de los parámetros de configuración. ¿Cómo puedo obtener la línea K dentro del rango de tiempo establecido en la configuración?
Created 2020-12-18 19:13:01
1
1265
En mi configuración de retrotracción, tengo el rango de tiempo de 2020-12-15 a 2020-12-17 y quiero obtener el valor de KDJ para el período.
Cuando uso el código
records = _C(exchange.GetRecords)
Log(records)
Sin embargo, el resultado obtenido es de 2020-12-12 22:00:00 a 2020-12-15 00:00:00, el subíndice es 101, la hora de inicio establecida es la hora de finalización de la devolución del resultado.
Soy un novato, no sé si he usado la función equivocada, solo quiero obtener los valores de KDJ y RSI en el rango de tiempo establecido para tomar decisiones estratégicas, ¡por la ayuda de Dios, gracias!
Related Recommendations
How to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?
Comment
All comments (1)
结束时间是当前策略运行到的时间,你可以试试下面的,等一分钟log一次
while True:
records = _C(exchange.GetRecords)
Log(records)
Sleep(60*1000)
6 years ago
- 1