Yield (C#) A keyword used with iterators (e.g., IEnumerable) to return each element of a collection one at a time. While not commonly used in cTrader scripts, yield return can simplify writing custom data generators in C#. Back to Robots Glossary Index