'Strategy Stop or Halt syntax in pine script
Is there any specific syntax for stopping or halting the strategy after specific condition? I know it is possible with few manually conditions but I'm looking forward for built-in syntax if exist. Thanks
Solution 1:[1]
You are looking for
strategy.close("entryNameHere", when = yourBoolCondition)
Cheers and best of luck
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Bjorgum |
