Automated Trading Using Lua | Lesson 2.1 – Coding a Basic Strategy







Learn how to automate your trading strategy on FXCM’s Trading Station desktop platform using Lua coding language.

In this video you will learn how to…

◾ Translate strategy logic from English to Lua
◾ Use Simulation Mode to test strategy code
◾ Add custom functions to open, close, and manage trades

*️⃣ Source code for the strategy example coded in the video can be found at https://github.com/FXCMAPI/fxcmapi.github.io/blob/master/lua/Pip%20Sniper%20Deluxe%20PLUS.lua

**Additional Resources**

GitHub: Visit the GitHub repository for API documentation and resources for creating and backtesting your algorithmic trading strategy https://github.com/FXCM

API Trading: FXCM offers APIs ideal to automate your trading strategy. Learn more about our REST API, FIX, JAVA, and ForexConnect offering https://www.fxcm.com/uk/algorithmic-trading/api-trading/

FXCM Python Wrapper: FXCM.py is a convenient pythonic way to interact and expose all the capabilities of our REST API with different Python classes https://www.fxcm.com/uk/algorithmic-trading/forex-python/

Market Data: Access historical bid/ask prices, volume, trader sentiment, and other ready-to-go trading tools https://www.fxcm.com/uk/algorithmic-trading/market-data/

Disclaimer: 76.88% of retail client accounts lose money when trading FX/CFDs with FXCM LTD. Consider if you can afford the high risk of losing money.

Author:

3 thoughts on “Automated Trading Using Lua | Lesson 2.1 – Coding a Basic Strategy”

Leave a Reply

Your email address will not be published. Required fields are marked *