我该如何重新编码?如何修复错误?
var float close_lock = na
var float open_lock = na
var float high_lock = na
var float low_lock = na
var bool normal_ticker_check = na
normal_ticker_check := syminfo.type != 'spread'
if (normal_ticker_check)
close_lock := security(syminfo.prefix+":"+syminfo.ticker , timeframe.period , close ,barmerge.gaps_off, barmerge.lookahead_on)
open_lock := security(syminfo.prefix+":"+syminfo.ticker , timeframe.period , open ,barmerge.gaps_off, barmerge.lookahead_on)
high_lock := security(syminfo.prefix+":"+syminfo.ticker , timeframe.period , high ,barmerge.gaps_off, barmerge.lookahead_on)
low_lock := security(syminfo.prefix+":"+syminfo.ticker , timeframe.period , low ,barmerge.gaps_off, barmerge.lookahead_on)
else
close_lock := close
open_lock := open
high_lock := high
low_lock := low
错误:不能在“if”或“for”中调用“security”或“financial”