Undeclared identifier ‘longTakeProfit’ in Pine Editor
The error is for longStopLoss and longTakeProfit, shortStopLoss and shortTakeProfit. I double checked the original definition and its the same. I think its because theyre part of different functions but I dont know how to fix it.