0
Follow
1
Followers
Jika anda ingin menggunakan kod MACD untuk menunjukkan bahawa garis kuning lebih tinggi daripada garis merah, bagaimanakah anda harus menulisnya?
Created 2021-12-29 01:06:21
1
912
function main(){
// boleh diisi dengan tempoh k baris yang berbeza, seperti PERIOD_M1, PERIOD_M30, PERIOD_H1 ...
var records = exchange.GetRecords(PERIOD_M15)
var macd = TA.MACD(records, 12, 26, 9)
// Lihat log dapat diketahui dan mengembalikan tiga array, masing-masing sesuai dengan DIF, DEA, MACD
Log("DIF:", macd[0], "DEA:", macd[1], "MACD:", macd[2])
}
Related Recommendations
Built-In Function_Cross Analysis and InstructionsHow 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 engine
Comment
All comments (1)
- 1
