By Uladzimir Leuchankou, founder of Signal2Forex · Rewritten on 18 November 2026
What does it mean to add sentiment to a trading strategy? Most people would say — look at where the crowd stands and trade the other way. I suppose that is an answer too. But for me, an IG client sentiment strategy is something smaller: one more filter on top of rules that already work.
IGCS — short for IG client sentiment — shows the share of IG accounts that are long or short in one market. In a strategy this number can do three jobs. It should never open a trade alone.
| Job | Question it answers | What it changes |
|---|---|---|
| Trend filter | Is the crowd against the move? | You take or skip the entry |
| Range filter | Is the crowd one-sided at a level? | You trust the level more or less |
| Warning signal | Has the crowd joined the move? | You stop adding new trades |
Forex IG client sentiment as a trend filter
Forex IG client sentiment is easy to read, so I start with a live case. I wrote down the EUR/USD reading for two other articles on this site — trend trading against the crowd on 4 November and how to read IG client sentiment on 6 November. Today I read it again.
On 4 November, 64% of IG accounts were long at 1.1194. On 6 November, 63% were long at 1.1138. Today, 18 November, 66% are long at about 1.0994.

That is a fall of 200 pips in two weeks — about $2,000 on one standard lot, $20 on 0.01 lot. The crowd did not leave. It stayed long the whole way down, and today’s share is the highest of the three.
This is what a trend filter looks for. The price falls, most accounts are long, so the crowd stands against the move. A seller who already has a reason — a broken level, a moving average, his own rule — gets a small yes from the number. A buyer gets a no. Should you sell just because 66% of accounts are long? I would not. The number gives no entry and no stop.
USD/JPY shows the same picture from the other side. On 4 November, 63% of accounts were short at 158.68. Today 68% are short at about 159.47 — the pair is 79 pips higher, about $495 on one standard lot and $4.95 on 0.01 lot. If you use sentiment as a trend filter, you need the trend rule first, because the crowd cannot tell you where the trend is.
Range filter and the ratio of two
There is another job at the edge of a range. The old version of this page said that a ratio beyond two to one marks a zone where the price may turn. Many articles repeat this line, and I do not agree with it as a rule on its own.
Look at the numbers above. The EUR/USD ratio was 1.78 to 1 on 4 November and it is 1.94 to 1 today, almost two to one. The pair lost 200 pips between those two readings. What did the ratio tell a buyer at 1.1194? Very little.
For me the ratio has meaning only when the price already moves sideways between two clear levels. A range for me needs two touches at the top, two touches at the bottom and enough room between them to pay for the spread and the stop. Then 70% long at the top says that buyers came late.
Is two to one the right line? I do not know — I have no test that proves it.
EUR/USD stayed between 63% and 66% long in all three readings, so 66% looks normal for this pair right now. If you want to use the ratio, you need to learn what is normal for each pair first.
Warning signal in a strong move
The third job is the quietest. Sometimes a trend keeps running and the crowd swings over to the same side. Fewer traders are then left to close at a loss and push the price further. Neither pair shows this today.
If USD/JPY keeps rising and the long share jumps from 32% to above 50%, I would stop adding new buys. I would not close anything on this alone, because a trend can run for weeks after the crowd has joined it and my stop is already in place.
A warning only means wait.
Four checks before an order
Where does this number sit inside a strategy? Order matters. The first check — your own setup, with an entry and a stop. Then the market state — trend or range. Only after that comes IGCS, which can say yes or no to the setup.
In code this can be one line: sell only if the trend is down and the long share is above 55%. Is one threshold enough? For a first test, yes. One parameter is easier to test than three, and 55% here is only an example.
The fourth check is risk, and sentiment does not touch it. I would never make a position larger because 70% of accounts lean the other way, and I would never move a stop because of this number. Position size, stop, spread, the time of day — all this stays with your rules. Sentiment is not only a late check in the chain, it is also the weakest one.
IG client sentiment API
People who search for “IG client sentiment API forex” usually want this number inside their own code. The feed exists. IG gives its clients a REST API, and one request returns the reading for one market. The reply has this shape — the numbers here are today’s reading from the IG web page.
GET /clientsentiment/EURUSD
{ "marketId": "EURUSD",
"longPositionPercentage": 66,
"shortPositionPercentage": 34 }
You need an IG account, an API key and a login session first. The reply holds only these three fields, so there is no price, no time and no history. You need to add the time and the price yourself.
For MetaTrader there are more steps. WebRequest, the MQL5 function for web calls, works only from Expert Advisors and scripts — indicators cannot call it. Your server address needs to be on the allowed list in the terminal options. This function also waits for the reply, so a slow server stops your robot for that time. One line matters most in the MQL5 documentation: “WebRequest() cannot be executed in the Strategy Tester.”

So I would build it in two parts. A small script asks for the reading once per hour and writes one line to a CSV file — time, pair, long share, price. The robot reads only that file, on a live chart and in the tester. If the newest line is more than two hours old, the robot ignores the filter and follows its normal rules.
My own Forex V Portfolio does not read this number. It trades 14 pairs on H1 with price and a spread filter. A web feed from one broker can fail at night, and I cannot test it on past data, so it stays out of the code. I keep sentiment on a second screen, next to the real account I show on YouTube.
The price of a filter
Every filter has a cost, and most articles about sentiment skip it. A filter removes trades, and some of those trades would have won. Take round numbers — I invented them to show the arithmetic, and they are not results from my account. A strategy makes 100 trades, wins 45 of them at 60 pips and loses 55 at 40 pips.
45 × 60 − 55 × 40 = 2,700 − 2,200 = +500 pips
That is $5,000 on one standard lot, $50 on 0.01 lot. Now an IGCS filter removes 30 of these trades. Does the result get better? This depends only on the win rate of the 30 trades that are gone.
If those 30 trades win 45% of the time, like the others, you lose 150 pips of profit — $1,500 on one standard lot, $15 on 0.01 lot. At 40% nothing changes. At 30% the result rises to 800 pips. A filter pays only when the trades it removes win less than 40% of the time.

Measuring this takes far more data than people expect. With 30 removed trades, the error on a 40% win rate is about 9 points either way. A good filter and a bad filter can look the same.
To bring that error down to about 2.5 points, you need about 400 removed trades. At 30 out of 100, that is about 1,330 trades — more than five years at one trade per day on one pair. There is one more trap: if you try ten thresholds on the same log, one of them will look good by chance.
A useful log covers quiet weeks, news weeks and strong trends, because a filter that saw only one kind of market says little about the next one. It gives you not only a test of the filter, but also a sense of what is normal on each pair. If you plan to add sentiment to a robot, you need to start the log long before you trust the filter.
Second opinion from futures
IG shows one broker and counts accounts, so 0.01 lot and 10 lots weigh the same. For this reason I like to compare it with a different crowd. The CFTC futures report for 10 November shows leveraged funds with 114,051 long euro contracts and 185,727 short ones. That is 71,676 contracts net short, about €9 billion at €125,000 per contract.
Funds and IG clients stand on opposite sides of the same pair. The two crowds disagree. Who is right in the end? Since 4 November the price has moved the way the funds wanted, and that is all I can say. The report comes out once a week, so it is a slow check, and I explain how to read it in this guide to the COT report.
The next event that can change this picture is the Federal Reserve decision on 9 December. I do not know what the crowd will do that evening.
Forex IG client sentiment is one small number. A trend rule first, a real range, a warning to wait, an early log, a second source from futures — all this turns that number into a useful filter. The more carefully you test it, the steadier your strategy stays when the crowd is wrong.
Uladzimir Leuchankou is a software engineer with a BSc in Finance and the founder of Signal2Forex. He writes the site’s trading robots, and this article comes from that work. You can find him on LinkedIn and MQL5.
Sources: IG public market pages for EUR/USD and USD/JPY, read on 4, 6 and 18 November 2026; IG REST Trading API reference; MQL5 WebRequest documentation; CFTC Traders in Financial Futures report, 10 November 2026; Federal Reserve meeting calendar. Forex trading carries a high risk of loss, and no filter removes it.


Signal2forex.com - Best Forex robots and signals