Signals per time

Login or Register

Please login or register in order to view and post in the Forum.

11 posts / 0 new
Last post
Curtis
Last seen: 3 years 8 months ago
Joined: 03/15/2015 - 15:31
Signals per time

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?

0
cpayne
Last seen: 1 year 7 months ago
Joined: 03/30/2009 - 00:00
Using SSTAT for First Signal Only

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.

Curtis
Last seen: 3 years 8 months ago
Joined: 03/15/2015 - 15:31
That will work, now I can

That will work, now I can just adjust the SSTAT < 3 to give me the time between sigs that I want, thanks!

Curtis
Last seen: 3 years 8 months ago
Joined: 03/15/2015 - 15:31
If I put this signal on a

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?

cpayne
Last seen: 1 year 7 months ago
Joined: 03/30/2009 - 00:00
Completed Bar Mode

There is a checkbox in the Signal Marker window "Signal Completed Bar Only".  Have you tried checknig that?

Curtis
Last seen: 3 years 8 months ago
Joined: 03/15/2015 - 15:31
That works for the marker but

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.

cpayne
Last seen: 1 year 7 months ago
Joined: 03/30/2009 - 00:00
Referencing Previous Open

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.

Curtis
Last seen: 3 years 8 months ago
Joined: 03/15/2015 - 15:31
I'm trying to buy the open

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?

cpayne
Last seen: 1 year 7 months ago
Joined: 03/30/2009 - 00:00
Forward Referencing Open

Yes...

OP.1

is open of previous bar.  To reference open of next bar...

FREF(OP, 1)

FREF stands for "Forward" Reference.

Curtis
Last seen: 3 years 8 months ago
Joined: 03/15/2015 - 15:31
This is now causing huge

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.

cpayne
Last seen: 1 year 7 months ago
Joined: 03/30/2009 - 00:00
Share Chart Definition

And I'll take a look a look at it.