In summary, this tool allows users to detect stale, fake, or old ticks that somehow make it to the mt4 platform A tool that we have used for quite a while to prevent orders or other price-based activity from being triggered in error. Rogue ticks may appear harmless, but if you suspect that your indicators or orders are being triggered in error, "rogue ticks" may be the reason.
Each tick should arrive in sequence in a continuous price feed. So we check the current tick [tick0] timestamp and compares it to the previous tick [tick-1] timestamp. if tick0 < tick-1, it is labeled a rogue tick and an alert is issued with the information from both the rogue tick and the last good tick. The smallest available timestamp is seconds.
Installation: copy RogueTickDetector.mq4 or ex4 to [mt4 folder]\experts\indicators . Restart mt4 and it should appear in the navigator window under 'custom indicators'.
The best way to use the indicator would be from a terminal hosted on reliable VPS, close to the broker's actual trading servers. Track as many symbols as you can handle, but limit to one instance per symbol. Full logging is provided as a reference. It is good to check the same pair across at least 2 different unrelated brokers simultaneously, preferably on live accounts.
Rogue ticks are usually a result of some issue on the broker's side, either price feed problem from liquidity provider or intentional. In a "good" price feed, there shouldn't be more than a couple of alerts per day max. When you are flooded with rogue ticks over several minutes or hours for no apparent reason, that may be cause for further investigation to ensure that it is not affecting order execution.
Feedback is appreciated. AnkaSoftware assisted greatly in the development. If source code is re-purposed, please give credit to original code.
Each tick should arrive in sequence in a continuous price feed. So we check the current tick [tick0] timestamp and compares it to the previous tick [tick-1] timestamp. if tick0 < tick-1, it is labeled a rogue tick and an alert is issued with the information from both the rogue tick and the last good tick. The smallest available timestamp is seconds.
Installation: copy RogueTickDetector.mq4 or ex4 to [mt4 folder]\experts\indicators . Restart mt4 and it should appear in the navigator window under 'custom indicators'.
The best way to use the indicator would be from a terminal hosted on reliable VPS, close to the broker's actual trading servers. Track as many symbols as you can handle, but limit to one instance per symbol. Full logging is provided as a reference. It is good to check the same pair across at least 2 different unrelated brokers simultaneously, preferably on live accounts.
Rogue ticks are usually a result of some issue on the broker's side, either price feed problem from liquidity provider or intentional. In a "good" price feed, there shouldn't be more than a couple of alerts per day max. When you are flooded with rogue ticks over several minutes or hours for no apparent reason, that may be cause for further investigation to ensure that it is not affecting order execution.
Feedback is appreciated. AnkaSoftware assisted greatly in the development. If source code is re-purposed, please give credit to original code.
Attached File(s)
RogueTickDetector.mq4
5 KB
|
272 downloads
Measure trends automatically with zero lag