Hi Pyradius,
You may have misunstood what I mean. You codes are PREV based latches that will omit the repetitve buy or sell signals before buy exit or sell exit signals are given. These repetitive signals are located in the soming bars before the exit signals given. Actually, I have used Forum Latch to suppress the upcoming repetitive signals in the coming bars although it doesn't follow the same logic as yours. With Forum Latch, a long signal will force to close a short position if any even before a short exit signal, and similarly, a short signal will force to close a long position if any even before a long exit signal is given.
What I mean is that I want a tool or a DLL that can suppress the repetitive signals on the "same trigger bar" (or the same intraday bar). There are repetitive signals when I switch on the Tools \ Options \ Real-time \ Enable real-time (Enable live bars & Recalculate expert live for "Each Tick"). I need to check these options as I need MS to give the intrabar signal instead of end-of-bar / complete bar signal.
For example, in a 5-min chart, if my long condition is that price > 1000, and the last bar close price is 999; and say the current bar open is 999 and next tick is 1001. MS (with the above setting) will issue an alert with the expert when price is 1001. Assume the price has never fall back to below 1001 for the upcoming ticks to complete the current bar, MS will continue issuing long alerts as long as a new tick is being updated and price is bigger than 1000 while before the current bar is completed. I want the second and other repetitive signals to be suppressed.
How can this been done?
Regards,
Gary