Type/to search
0
Follow
1
Followers
Si desea utilizar el código MACD para indicar que la línea amarilla es más alta que la línea roja, ¿cómo debe escribirlo?
Help
Created 2021-12-29 01:06:21  
 1
 912

function main(){
// Se puede rellenar en diferentes periodos de k líneas, como PERIOD_M1, PERIOD_M30, PERIOD_H1 ...
var records = exchange.GetRecords(PERIOD_M15)
var macd = TA.MACD(records, 12, 26, 9)
// Regresa tres conjuntos de datos de registro de visualización correspondientes a DIF, DEA y MACD respectivamente
Log("DIF:", macd[0], "DEA:", macd[1], "MACD:", macd[2])
}

Related Recommendations
Comment
All comments (1)

    平台公开的又MACD和各种均线策略,你可以参考

    4 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)