Prevent new entry if position was closed yesterday
Author: CarmaAdvisory
Creation Date: 5/25/2017 6:16 PM
profile picture


Hi I'm trying, without success, to create a simple filter to open a position: I'd want to prevent opening a new position if I closed the bosition yesterday or in the previous bar. In other words i?d wnat at least one day with no open position before I can open again a position.

Thank you in advance for your help!
profile picture



This method from Community Components library is what you're looking for: CooledOff.
profile picture


Thank you Eugene!
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).