closelong = (n1 < n2 and p < n2 and confidence < dt) or (strategy.opentrades.profit(strategy.opentrades.size(strategy.opentrades.all)) < SL) or (strategy.opentrades.profit(strategy.opentrades.size(strategy.opentrades.all)) > TP)
I dont know how to solve it. Many Thanks!
i want that total number is all but ‘strategy.opentrades.all’ is wrong.
New contributor
user25598400 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.