But, I want to have the strategy stop entering when the 2nd position is still on. What happens is when my primary condition is first met, there are two position entries. 1 position exits very quickly, and the other has a wide trailing stop. What I would like is to program some way to NOT re-enter the 2nd position while the first is still on. I would like to do this within the strategy instead of using the max entries in trade direction field when running the strategy.
I know other ways to handle this such as setting number of entries in one direction etc. Can I use "user values" to indicate whether a position is still on or not? I would like to do this because I can then get fancy about having the closed position perhaps reenter after all. For instance, I could change that user value with some condition and let the first position reenter after all.
I hope I am clear. I really just want to learn some different ways of coding these multiple entries and exits.
Thanks! Hard to believe I only downloaded this program about 2 and a half weeks ago.

Comment