In the Strategy Builder, I am trying to do some candlestick patterns with OnTick calculation. What I want is:
If price crosses above the high of X bars ago, buy to enter
If prices crosses below the low of X bars ago, sell to enter
Then exit longs if they fall below the low of the previous bar, exit shorts if they cross above the high of the previous bar.
Now, I know I can't use CrossAbove() or CrossBelow() to do these things. So I am stuck with things like:
If Default input[0] > High[1]
Then either enter long or exit short as the case may be.
Here's the question: how in the heck do I accomplish this without sending a zillion signals?
This is ESPECIALLY plaguing me when exiting - sometimes I will exit a long (for example) but there will be one-to-many exits and I end up accidentally entering a short from the long exit order(s)!
This is just a test script for something much more complicated, but I cannot move forward until this is addressed. It even seems to occur when I put BarsSinceEntry != 0 on the entry page or BarsSinceExit != 0 on the exit condition page (again, this is in the Strategy Builder for now).
Thank you!

Comment