Using Google Drive for Signals - Printable Version +- Alera Forum (https://aleratrading.com/forum) +-- Forum: Alera Portfolio Manager (https://aleratrading.com/forum/forumdisplay.php?fid=1) +--- Forum: Documentation (https://aleratrading.com/forum/forumdisplay.php?fid=2) +--- Thread: Using Google Drive for Signals (/showthread.php?tid=101) |
Using Google Drive for Signals - admin - 04-19-2020 Using Google Drive for Signals You can connect APM to your Google Drive to pull signals from a specified folder. NOTE: Since APM requires read access to Google Drive, it is recommended that you create a new Google account if you do not wish to grant APM access to all your Google Drive files.
Posting Your Signals There are two main ways to post your signals to Google Drive Backup and Sync Use Google Backup and Sync to sync a local folder on your computer to your Google Drive. You can then write signals to this folder and they will automatically be uploaded to your Drive. Note that Backup and Sync only recognizes file changes WHEN the file contents change. This means the last modified time on your file will not update when you change it locally on your computer, unless you change the file contents too. You can change file contents without modifying signals by adding a blank new line to the file. Google Drive API If you're familiar with programming, you can attempt to upload files to your Drive directly through your code. *IMPORTANT* Google Drive only stores the last modified time up to one second accuracy AND since signal files are processed in the order of OLDEST to NEWEST, you need to make sure that your files are generated 2 seconds apart to ensure that they are processed in the desired order, e.g. process sell signals first, then buy signals. If you do not care about the order of your signals, then the last modified time does not matter. Sharing Your Signals Simply share your Google Drive folder with the desired party and have them use the same Folder ID in their APM instance. |