I'm testing a strategy and I've got a couple of questions:
1) Once in position, I'm looking to exit at the close of n bars since my entry bar.
2) I need to choose a different order, depending on the position of the next opening bar.
Let's say, for example, that if the next bars opens in a gap up, I want to enter short at
today's high and exit at the close of the bar.
Could someone help me with the code?
Thanks.
Comment