Support Board
Date/Time: Sun, 12 Jan 2025 09:15:50 +0000
Do I need to use 2 independent STUDIES?
View Count: 812
[2017-02-03 05:02:36] |
User701247 - Posts: 117 |
Referring to following coding, I would like to know on how to assign a LEFT_variable and RIGHT_variable within SubgraphIndex in order to classify LEFT or RIGHT on showing colors. Is there any given sample similar to this situation? or Do I have to separate LEFT and RIGHT into 2 independent STUDIES? and apply them into chart? Do you have any suggestions? Thanks you very much for any suggestions ======================================================================================== for (int SubgraphIndex = 0; SubgraphIndex < SC_SUBGRAPHS_AVAILABLE - 1; ++SubgraphIndex) { How to assign variable HERE for ConditionMet_LEFT? ... sc.Subgraph[SubgraphIndex].DrawStyle = DRAWSTYLE_SQUARE_OFFSET_LEFT_BODY; ... } for (int SubgraphIndex = 0; SubgraphIndex < SC_SUBGRAPHS_AVAILABLE - 1; ++SubgraphIndex) { How to assign variable HERE for ConditionMet_RIGHT? ... sc.Subgraph[SubgraphIndex].DrawStyle = DRAWSTYLE_SQUARE_OFFSET_RIGHT_BODY; ... } ConditionMet_LEFT = false; if (p_VolumeAtPrice->AskVolume < p_VolumeAtPrice->BidVolume ) ConditionMet_LEFT = true; ConditionMet_RIGHT = false; if (p_VolumeAtPrice->AskVolume > p_VolumeAtPrice->BidVolume ) ConditionMet_RIGHT = true; if (ConditionMet_LEFT) sc.Subgraph[AvailableSubgraphIndex][BarIndex] = Price; <<< How to show color on LEFT side for ConditionMet_LEFT? if (ConditionMet_RIGHT) sc.Subgraph[AvailableSubgraphIndex][BarIndex] = Price; <<< How to show color on RIGHT side for ConditionMet_RIGHT? |
[2017-02-03 10:08:34] |
Sierra Chart Engineering - Posts: 104368 |
For each condition that is true on a particular chart bar you need to use a separate study sc.Subgraph. Each Subgraph can only have a single Draw Style. That Subgraph Draw Style applies across all chart bars. Refer to the documentation here: ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].DrawStyle These need to be separate study Subgraphs. They cannot use the same SubgraphIndex sc.Subgraph[SubgraphIndex].DrawStyle = DRAWSTYLE_SQUARE_OFFSET_LEFT_BODY; sc.Subgraph[SubgraphIndex].DrawStyle = DRAWSTYLE_SQUARE_OFFSET_RIGHT_BODY; Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2017-02-03 13:09:08] |
User701247 - Posts: 117 |
I would like to know if there are 10 studies applied across all chart bars, is there any function to combine 10 different studies into a group name, so I can only apply a single group name containing 10 different studies instead of applying 10 studies into charts manually. Do you have any suggestions? Thanks you very much for any suggestions |
[2017-02-03 18:03:20] |
Sierra Chart Engineering - Posts: 104368 |
Refer to: Study Collections Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: