A derivative contract between a trader and broker to exchange the difference in price of an asset from the time the position is opened to when it is closed. CFDs allow trading on various markets (forex, indices, commodities, stocks, crypto, etc.) without owning the underlying asset. You can profit from price moves in either direction (long or short). In practical terms, a CFD lets your forex robot trade instruments like stock indices or gold using the same account. CFDs are typically leveraged, involve paying the spread and possibly commissions, and may incur overnight financing charges (swap/rollover) if held overnight.