Support Board
Date/Time: Sat, 23 Nov 2024 18:11:35 +0000
Post From: Python for Sierra Chart
[2013-06-13 03:00:17] |
Kiwi - Posts: 375 |
For a while I've been looking at moving my development to Python rather than C++. To enable this required a few extra bits and pieces that I'll post to the board for anyone interested. The original post is here. The attached file runs with Python3 (might run with 2 as well). It: 1. Reads an SCID file. 2. Converts it to a pandas dataframe (for time series manipulations) 3. Writes it back to an SCID file leaving the T, BV and AV fields free so that they can be used for commands to C++ code to indicate conditions on the SC chart or to act on Sierra (place orders etc). An entire read/convert/write loop takes under 1ms on a 3.2GHz machine so there is no appreciable lag between reading a new tick and writing it to the output file. . |
SCID_to_DF_RT.py - Attached On 2013-06-13 02:59:38 UTC - Size: 10.03 KB - 2199 views |