what is the best way to go about closing a position X days after entry?
I am using the following code but when I optimize it only goes to 5 days.
CODE:
Please log in to see this code.
I am thinking that instead specifying in the code that places the trade, that I should do something like:
if "bars since entered" = delay, then Cover.
Ultimately I'd like to see how a strategy works simply by selling X days after a particular setup. (perhaps 1-20 days)