Pine script 松树脚本策略问题

Pine script 松树脚本策略问题,pine-script,Pine Script,修复此行的定义: longStop = na longStop := shortCondition ? na : longCondition and strategy.position_size <=0 ? close - (atrout * stopMult) : longStop[1] shortStop = na shortStop := longCondition ? na : shortCondition and strategy.position_size >=0 ?

修复此行的定义:

longStop = na
longStop :=  shortCondition ? na : longCondition and strategy.position_size <=0 ? close - (atrout * stopMult) : longStop[1] 
shortStop = na
shortStop := longCondition ? na : shortCondition and strategy.position_size >=0 ? close + (atrout * stopMult) : shortStop[1]
longStop = na
longStop :=  shortCondition ? na : longCondition and strategy.position_size <=0 ? close - (atrout * stopMult) : longStop[1] 
shortStop = na
shortStop := longCondition ? na : shortCondition and strategy.position_size >=0 ? close + (atrout * stopMult) : shortStop[1]
stopMult = input(title="ATR S/L Multiplier", defval=3)
profitMult = input(title="ATR T/P Multiplier", defval=3)