Hello,
I use a MPC and apply it on a portfolio of 60 stocks. I would like to allow a reentry of the same symbol not until 3 bars are passed after the stop loss instead of at the next bar. Does anybody know how to code it? Thank you for help.
Niels
Size:
Color:
Size:
Color:
Thank you Eugene. I am not sure if CooledOff works in the way I need it. An example: AAPL was exited by StopLoss. Currently, at the next day the strategy could generate an AAPL entry again, if the conditions are fine. I would like to exclude reentries for AAPL for three days. But only for AAPL. Other stocks could be opened regularly.
I think CooledOff make a pause for all stocks.
Thank you
Niels
Size:
Color:
You're right, it means a pause for all entries. But it's pretty simple to extend CooledOff with a check for Bars.Symbol == current symbol being processed e.g. AAPL. I've done it before so here you have an example to learn and tweak:
Feature Request: Trade Settlement Preference Setting (T+3)
Size:
Color: