Hello. Two anti-stop hunting ideas for you to consider:
1)
Just had this idea the other day.... think it's worth presenting. Now those of us that code EAs know that we can generate our own log files. (with FileOpen())
So I was thinking that if you had multiple brokers running simultaneously, you could use them as a sort of "check and balance" system.
What you would do is write to the text file if/when a large spike occured w/ one of your brokers. The other MT4s running on the other brokers would be polling this log file, and consequently be able to check THEIR price streams for the same spike.
What you do from there is your own choice.
2)
The second idea is not my own, but maybe some of you haven't heard of it. Instead of including the SL and TP w/ your order, you can simply exit the trade as it hits the TP or SL with the OrderClose() command.
Now by combining the two techniques, you could effectively determine a stophunt w/ step (1), and then hold the position until the price returned.
1)
Just had this idea the other day.... think it's worth presenting. Now those of us that code EAs know that we can generate our own log files. (with FileOpen())
So I was thinking that if you had multiple brokers running simultaneously, you could use them as a sort of "check and balance" system.
What you would do is write to the text file if/when a large spike occured w/ one of your brokers. The other MT4s running on the other brokers would be polling this log file, and consequently be able to check THEIR price streams for the same spike.
What you do from there is your own choice.
2)
The second idea is not my own, but maybe some of you haven't heard of it. Instead of including the SL and TP w/ your order, you can simply exit the trade as it hits the TP or SL with the OrderClose() command.
Now by combining the two techniques, you could effectively determine a stophunt w/ step (1), and then hold the position until the price returned.