Skip to content

Repository contains one (1) trading strategy and three (3) non-trading strategies written in Lua and intended to be executed using FXCM Trading Station; all four were originally created as proof of concepts.

License

Notifications You must be signed in to change notification settings

jgulickson/FXCM-TradingStation-Strategies

Repository files navigation

FXCM-TradingStation-Strategies

Overview

Summary

Repository contains one (1) trading strategy and three (3) non-trading strategies written in Lua and intended to be executed using FXCM Trading Station; all three were originally created as proof of concepts. FXCM Trading Station is a financial trading application written for Windows that can leverage scripts written in Lua (and JavaScript) via Indicore SDK to further extend functionality.

Investment Dashboard

Proof of concept to calculate and aggregate select values from user specified FXCM, Oanda and/or Robinhood account(s). Currently includes equity, day p/l and leverage though modifying or adding additional data points is trivial. Oanda and Robinhood data is sourced via RESTful API queries. (Requires JSON.lua.)

Hue Lights Control

Proof of concept to control Philips Hue Lights based on trading activity.

FXCM To Oanda Trade Copier

Designed to copy postion(s) from an FXCM account to an Oanda account. FXCM positions are sourced from FXCM Trading Station directly and Oanda positions verified and modified via RESTful API queries. (Requires JSON.lua.)

Push Notifications

Proof of concept to facilitate of push notifications for trading, account and offer activity.

Installation

  1. Clone or download desired *.lua files from this repository. (Note that 'Investment Dashboard' and 'FXCM To Oanda Trade Copier' require JSON.lua.)

  2. Move *.lua files to the following directory depending on 32 or 64 bit OS version:

    C:\Program Files (x86)\Candleworks\FXTS2\strategies\Custom

    C:\Program Files\Candleworks\FXTS2\strategies\Custom

  3. If previously running, close and reopen FXCM Trading Station.

  4. Strategy(ies) will now be available under 'Alerts and Trading Automation' > 'New Strategy or Alert.'

OR

  1. Clone or download desired *.lua files from this repository. (Note that 'Investment Dashboard' and 'FXCM To Oanda Trade Copier' require JSON.lua.)

  2. If not running, open FXCM Trading Station.

  3. Drap and drop *.lua files onto a Marketscope chart instance.

Version History

Investment Dashboard

1.6.08312017
  • Bug fix release
  • Addressed issues with Robinhood leverage values
1.5.08072017
  • Bug fix release
  • Improved Robinhood 2 factor authentication experience
  • Addressed issues with Robinhood extended hours values not populating from server
1.4.08032017
  • Feature release
  • Updated Robinhood data to include extended hours values
  • Added Robinhood support for 2 factor authentication
1.3.04202017
  • Cosmetic release
  • Made Github ready
  • Removed email functionality
1.2.04102017
  • Cosmetic release
  • Added side variable to control presentation
1.1.04052017
  • Cosmetic release
  • Added color formatting for values
  • Update x & y coordinates calculation
1.0.03272017
  • Initial release
  • Proof of concept

Hue Lights Control

1.0.03092015
  • Initial release

FXCM To Oanda Trade Copier

2.1.04122017
  • Bug Fix release
  • Removed hardcoded values in AsyncOperationFinished() and updated to FXCM.SymbolToTrack.
2.0.04122017
  • Feature release
  • Added email notifications for order execution.
  • Updated select default values.
1.4.03192017
  • Cosmetic release
  • Removed hardcoded values to make Github ready
1.3.02272017
  • Feature release
  • Added email notifications
1.2.02032017
  • Feature release
  • Completed PositionCheck() function, now functional
1.1.02022017
  • Feature release
  • Performance improvements and cosmetic code updates
  • Added ParseResponse() function to parse LUA tables for eventual validation of responses from Oanda.
  • Added CreatePriceBounds() function to use in CreateOrder() to support Oanda's priceBounds parameter (FXCM's market range equivalent).
  • Added PositionCheck() function; currently not functional.
  • Updated log method for improved troubleshooting. Went from 'Host:trace' to a custom 'WriteToLog:debug' funtion.
1.0.01302017
  • Initial release

Push Notifications

1.4.07122016
  • Cosmetic release
  • Usability and verbiage improvements
1.3.08262015
  • Feature release
  • Added effective leverage notifications
1.2.08262015
  • Feature release
  • Added margin call status notifications
  • Added day p/l notifications
  • Added offer notifications
1.1.08242015
  • Feature release
  • Added deposit notifications
  • Added withdrawal notifications
  • Added usable margin notifications
  • Added market status notifications
  • Added price alert notifications
  • Substantial code optimization
  • Removed error checking routines
  • Renamed to "Push Notifications"
1.0.08142015
  • Initial release
  • Support for trading notifications
  • Support for test notifications

About

Repository contains one (1) trading strategy and three (3) non-trading strategies written in Lua and intended to be executed using FXCM Trading Station; all four were originally created as proof of concepts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages