2
Follow
0
Followers
数字货币交易,想写一个4小时或者日线级别的KDJ金叉买入,死叉卖出的策略
看API文档:
function main(){
var records = exchange.GetRecords(PERIOD_M15)
var kdj = TA.KDJ(records, 9, 3, 3)
Log("k:", kdj[0], "d:", kdj[1], "j:", kdj[2])
}
这个输出的是一堆信息,没有给出金叉或者死叉的信息,要怎么去判断给出信号?
主要想写一个4小时或者日线级别的KDJ金叉买入,死叉卖出的策略。
比如,我的策略里,循环判断,监测到时金叉的时候,买入,监测到死叉的时候卖出
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 (2)
- 1