Support Board
Date/Time: Sun, 22 Dec 2024 05:37:37 +0000
Post From: [API] Concerning +/- slope color/direction on study in general
[2015-04-01 22:43:31] |
MiiMeldon - Posts: 2 |
Hi. I have recently installed and setup SierraCharts and another platform that uses SierraCharts, InfinityAT, and am wondering how in the API do we determine the positivity or negativity of a curve of a study, in general? For instance, an 8 EWA plotted on the chart, we set black for when it is negatively sloped and red for positively sloped. How do you programmatically access the current color (+/- direction state) of a given study laid on a chart? I don't think comparing bars/candles with previous ones would suffice, because that is not really the same thing. I am assuming the developer of a given indicator/study specifies when a color is to change, or SierraCharts somehow determines this. The strategy relies on the + or - state of a curve of two studies/indicators to function, and must be according to the reported and drawn color of said indicators. Is there an API callback or method for this? This is really important for the strategy to even work. I am assisting a live trader develop his strategy in to an automated setup and am looking to trade soon myself live, but it is crucial for the correct functionality before considering using the platform. Thanks in advance. - David |