I have two signals.
Signal 1. Long = LO < LO.15 AND CL > CL.3 AND HI > HI.1
Signal 2. Short = HI > HI.15 AND CL < CL.3 AND LO < LO.1
As an example we start a new session. Signal 1 fires off first. I do not want to see another long signal marker until I first see signal 2 fire off. As of now I may have 10 bars in a row fire off long signal markers, before I get to the first signal 2 marker.
How do I correct this? I basically just want to see single alternating signals, LSLSLSLS. Not LLLLLLLL,SSSS.LLLLLLLLLLL.SS.LLLL, where every bar that meets the criteria gets a signal.
Thanks,
Wade
You would need to involve SSTAT to give you the number of bars since the previous signal 1 and signal 2 as well as POS to give you the number of bars into the session. Inspect how the large purple and pink dots were coded in the following chart definition.
https://www.linnsoft.com/charts/wr-signals-es
Thanks Chad, I appreciate your help on the matter. I made an error once I visualized the work. Long signals can be redundant if the long signal occurs at a lower price. Short signals can be redundant if they occur at lower prices. Otherwise it works.
I looked at the code thinking I could make that change myself, but its like reading chinese!!!
Typo in the previous message...should of read short signals can be redundant is they occur at HIGHER prices. Sorry about that!!