Support Board
Date/Time: Tue, 11 Feb 2025 00:51:10 +0000
Post From: Color specific point on Indicator, acsil
[2020-08-24 20:19:44] |
User681150 - Posts: 62 |
i have a indicator (Stoch MOM) that i wanted to paint the line a different color when it crosses a threshold i grab the study array, then compare array to a theshold, then I am using sc.SetStudySubgraphColors BUT it paints all the points the same color (even when i fill in the secondary color or if i use an ELSE statement). what is the best way to color specific points on an indicator using ACSIL ? thanks * study added to chart by using Studies functionality. so i am trying to manipulate a current studies subgraph based on a condition sc.GetStudyArrayUsingID(6, 0, stochMoM); //get study array if(stochMOM[sc.Index] > 70) { sc.SetStudySubgraphColors(4, 6, 0 , RGB( 0, 0,255), RGB(250,0,0), 1); } //sc.SetStudySubgraphColors(chart#, study#1, subg#, PrimaryColor, SecondaryColor, SecondaryColorUsed) Date Time Of Last Edit: 2020-08-24 20:22:33
|