So, you own an Apple Watch and want to put it to good use, perhaps while you’re sitting on the toilet or engaged in activities other than day trading?
Here’s a solution for that.
- An Apple Watch (duh?)
- XAMPP installed on the computer running cTrader
- SwingFish Helper calgo (which you should have anyway 😉 )
- Five minutes of your time
First off, XAMPP installs a lightweight webserver on your computer, which is useful for many applications later on. The system load it generates is almost negligible (below 0.2%). Just download the XAMPP package from apachefriends.org, install it, set it up with the web root, and you’re all set.
Next, configure the SwingFish Helper to write statistics by enabling ‘overlay/Enable Statistics file’ and set the location of these files to the web root defined in the XAMPP configuration.
This setup allows the real-time status file to be readable by a web request, ensuring these requests won’t interfere with your cTrader and trading activities
With this, we can perform all the exciting functions we like. Since the statistics file is saved in JSON format, it can be easily read from another machine.
For example, you can view my real-time trade status on the SwingFish website at swingfish.trade/tradingroom, where this data originates from this setup.
Now, how do we get this to work on the Apple Watch? It’s actually VERY simple, thanks to OSX Shortcuts. (works on iPhone too)
Simply create a shortcut that loads the JSON file and then displays it on your watch display.
Example:
If you encounter any issues while setting up the shortcut, feel free to let me know. I can share my shortcut with you for a one-click setup, where you’ll only need to update the URL to your own cTrader.