Backtest an EMA Strategy Using REST API

Presented at FXCM Algo Summit, 15 June 2018 in London

During this workshop, FXCM’s Charles Graves demonstrates connecting to the REST API and backtesting a simple Exponential Moving Average strategy using FXCM’s Python wrapper.

  • For the Jupyter notebooks used during this demo, please click here.
  • To access fxcmpy, please click here.

Follow along:

Get your free API token and start algo trading today! To generate your token:

  1. Register for a free practice account here.
  2. Log into and click on the account ID in the upper right corner.
  3. Click token management and generate your token.

Risk Warning: The FXCM Group does not guarantee accuracy and will not accept liability for any loss or damage which arise directly or indirectly from use of or reliance on information contained within the webinars. The FXCM Group may provide general commentary which is not intended as investment advice and must not be construed as such. FX/CFD trading carries a risk of losses in excess of your deposited funds and may not be suitable for all investors. Please ensure that you fully understand the risks involved.