The famous saying “Successful investing is anticipating the anticipations of others” by John Maynard Keynes:

Keynes’s quotation says that good investing involves not only examining fundamentals, but anticipating how other investors will behave and what others think others will do. It highlights looking forward to market psychology rather than intrinsic value, reminding us of his “beauty contest” metaphor in which contestants attempt to ascertain what the average view is instead of their own preferences.

In short: The secret to market success is to predict what the crowd and trends are going to do, not necessarily the merits of an investment—knowing what everybody else thinks the market will do, and beating them to it.