-
What “the spread filter?”
-
Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your difficulty.
No free help (2017)Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2018)We're not going to code it for you (although it could happen if you are lucky or the issue is interesting).
No free help (2017) -
With my indicator, I maintain my own maximum spread using a power mean.
Can I find out the biggest spread at the past in MT4? - MQL4 programming forum - Page 2 #14 (20.04.15)
Hi
I assume you want to filter out new trades (or other functions) when spread is too high.
It’s actually quite easy – just set some maxSpread that allow trading and add a condition before the function you want to block when spread is too high:
if (SymbolInfoInteger(SYMBOL_SPREAD)>maxSpread) { //do the fnction here// }
-
What “the spread filter?”
-
Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your difficulty.
No free help (2017)Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2018)We're not going to code it for you (although it could happen if you are lucky or the issue is interesting).
No free help (2017) -
With my indicator, I maintain my own maximum spread using a power mean.
Can I find out the biggest spread at the past in MT4? - MQL4 programming forum - Page 2 #14 (20.04.15)
A spread filter is the instruction you embed in your program -not in indicators - for those occasions that the asset's Ask and Bid prices have a big gap in between .
The instruction is usually to not trade or close trades unless it's done automatically (margin call) when the gap is big , unless you are adventurous and want the opposite.
Yesterday's events have erected a lot of interest for this type of mechanism , and now you know what it is and how to use it like @Marzena Maria Szmit demonstrated.
☕️
Of course. But that's not what OP wrote. He wrote “the spread filter” meaning the one in his head, that he did not describe, or post. There are no mind readers here and our crystal balls are cracked.
Do you really think I do not know what a spread filter is?
Of course. But that's not what OP wrote. He wrote “the spread filter” meaning the one in his head, that he did not describe, or post. There are no mind readers here and our crystal balls are cracked.
Do you really think I do not know what a spread filter is?
1.what "a spread filter"?
😇 🖤
That may be the case, but remember that the OP is not a native English speaker and their use of “the” may not have the grammatical importance that you are giving it.
However, I agree that the OP did not put any effort into their question and simply tossed it into the “ether” with no regard or after-thought. There has been none follow-up either.
C'mon guys , you really cannot tell what a spread filter is ?
in mql5.com a forum about coding forex programs ?
with your massive experience on top of that ?
😇 🖤
Lorentzos, that is not the issue as both I and William know what a spread filter is!
We are discussing the difference in the used article's meaning — “the” and “a” can create a very different meaning (in proper English) — “a spread filter” means something more general and unspecific, while “the spread filter” means a very specific spread filter that requires further explanation.
William assumed that the OP knows how to write in proper English and gave the article “the” grammatical importance, while you, not being a native English speaker, did not notice this and assumed it as unimportant. Since the OP is also not a native English speaker, they probably also did not see the grammatical importance.
However, irrespective of the above explanation, even considering “spread filter” in general terms, the OP did not put in any effort into giving more details about the issue. They did not provide any code, they did not explain how they want to use the filter, do they want to prevent high spread or low spread, is it before opening or on closing, etc.
Also, the OP has not even responded! There was no follow-up on the question!
Lorentzos, that is not the issue as both I and William know what a spread filter is!
We are discussing the difference in the meaning of the article used — "the" and "a" can create a very different meaning (in proper English) — "a spread filter" means something more general and unspecific, while "the spread filter" means a very specific spread filter that requires further explanation.
William assumed that the OP knows how to write in proper English and gave the article "the" gramatical importance, while you, not being a native English speaker did not notice this and assumed it as unimportant. Since the OP is also not a native English speaker, they probably also did not see the gramatical importance.
However, irrespective of the above explanation, even considering "spread filter" in general terms, the OP did not put in any effort into giving more details about the issue. They did not provide any code, they did not explain how they want to use the filter, do they want to prevent high spread or low spread, is it before opening or on closing, etc.
This is not grammar school though . or , This is not the grammar school though 😄
I understand William -highly knowledgeable as he is - may have a teaching background (respect), so it really stood out for him.
What the op wanted though was obvious . Clear as day.
Kudos to @Marzena Maria Szmit who had the generosity to reveal that million dollar code . 😇 🖤
Cheers and chill out guys.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use