I have a signal(2) that triggers off another signal(1), signal(2) looks for a LH within 3 bars of signal(1) by (SSTAT < 3) where SSTAT is bars since last signal(1) and (HI < HI.1). The problem is that if there are 2 LH's after signal(1) then I get multiple signal(2)'s and I only want the 1st one( and possibly want to limit to no signal(2) in last x minutes), I tried to fix this by adding (SSTAT_LS > 3) where SSTAT_LS is bars since last signal(2), this is self referencing and IRT locked up. How do I set the amount of time before a signal can re-trigger?
Try this:
SSTAT < 3 AND HI < HI.1 AND SUM(HI < HI.1, SSTAT) = 1
That last condition is ensuring that this lower high is the 1st, but summing up all the lower highs since the signal occurred, and since that includes the current bar, you only want a signal when the SUM is 1. That make sense.
That will work, now I can just adjust the SSTAT < 3 to give me the time between sigs that I want, thanks!
If I put this signal on a chart it starts to print until a HL is made, is there a way to make it trigger only after the bar is closed?
There is a checkbox in the Signal Marker window "Signal Completed Bar Only". Have you tried checknig that?
That works for the marker but what I was getting at is that the signal that I'm using for my system is likely triggering the same way and if I tell it to buy the open of the signal bar it is likely buying the open of that bar which it can only know in hindsight(backtest). What I want is to buy the open price of the signal bar(or some other price in relation to that) but on some subsequent bar.
Well, if you want to enter at the previous open, you could use...
AND SET(V#10, OP.1)
or 2 opens back...
AND SET(V#10, OP.2)
and set the rule up to enter on V#10. I just don't have enough information on your system and specifically what you're trying to do to give you a complete answer, but you can certainly reference the signals on previous bars with SIGNAL.1 or SIGNAL.2 and the prices on previous bars with OP.1 or OP.2, etc.
I'm trying to buy the open price of the bar after the signal, wouldn't OP.1 be the bar prior to the signal?
Yes...
OP.1
is open of previous bar. To reference open of next bar...
FREF(OP, 1)
FREF stands for "Forward" Reference.
This is now causing huge issues in calculations, "SUM(HI < HI.1, SSTAT) = 1", noticed in the time it takes to refresh signal and backtest.
And I'll take a look a look at it.