0
Follow
0
Followers
GetRecords에서 얻은 마지막 데이터는 구성 매개변수의 시작 시간입니다. 구성에서 설정한 시간 범위 내에서 K-라인을 어떻게 얻을 수 있습니까?
Created 2020-12-18 19:13:01
1
1265
저는 재측정 구성에서 시간을 2020-12-15에서 2020-12-17의 범위로 설정하고, 그 기간의 KDJ 값을 얻고 싶습니다.
제가 코드를 사용했을 때
records = _C(exchange.GetRecords)
Log(records)
하지만 얻은 결과는 2020-12-12 22:00:00부터 2020-12-15 00:00:00까지, 하단호는 101이고, 설정된 시작 시간은 반환된 결과의 종료 시간이다.
저는 신입사원입니다. 제가 잘못된 함수를 사용했는지 모르겠지만, 저는 KDJ와 RSI 값을 설정된 시간 범위에서 얻으려고 합니다. 전략적 판단을 하기 위해, 신의 도움, 감사합니다!
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