Translating Moving Average and Chart Marker Indicators Between Platforms
Summary
The post shows an example of translating a technical indicator from Tongdaxin syntax to 同花顺 (Tonghuashun) syntax. The original indicator plots three moving averages using configurable periods and places icons at selected points based on the current bar count. The suggested rewrite assigns explicit colors to the moving averages and changes the icon-drawing arguments to the target platform’s form.
The accompanying explanation says the platforms differ in how moving-average colors are specified and describes the revised marker parameters as using colors and bar-count settings. It notes that the conversion should be tested and refined. The post supplies no chart output, validation procedure, or evidence that the rewritten expressions behave identically in all cases, so it is best treated as a syntax example rather than a verified port. The discussion also contains an unrelated limit-up expression, without enough context to explain or assess it.
Key ideas
- The example ports three moving averages and bar-position markers between two Chinese charting platforms.
- The target platform’s moving-average definitions include explicit color attributes.
- Icon drawing uses platform-specific arguments for conditions, bar counts, and colors.
- The proposed conversion is not accompanied by test results, so equivalent behavior should be verified.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.