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

CarmaAdvisory

#1
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

Eugene

#2
Hi,

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

CarmaAdvisory

#3
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).