Risk Management: If already long then do not place new order
问题 If the flag is already indicating long, there should not be a new flag indicating long. If flag does not indicate long evaluate the expression longCondition = if (strategy.long) ? false: (rsi<30) and (close>moving_avg) shortCondition = if (strategy.short) ? false: (rsi>70) and (close<moving_avg) Processing script... line 30: mismatched input 'shortCondition' expecting 'end of line without line continuation' 回答1: I assume this is an indicator and not a strategy. Because you can configure how