Support Board
Date/Time: Tue, 24 Dec 2024 16:36:21 +0000
Vertical Line from Absolute top to absolute bottom, study also does price level plots
View Count: 770
[2015-11-05 15:24:28] |
KhaosTrader - Posts: 128 |
Hi, I have a study that paints moving averages and also vertical lines. I dont think I can use sc.ScaleRangeType = SCALE_USERDEFINED; sc.ScaleRangeTop = 2; sc.ScaleRangeBottom = 1; Because it will mess up my moving average plots. I want the moving average plots to plot appropriately and my vertical lines to paint to the top of the chart screen to the bottom. How can I accomplish this please? |
[2015-11-05 17:12:00] |
KhaosTrader - Posts: 128 |
Just to clarify , I am using this code to define the line CloseTrades_TimeLineTop.Name = "CloseTrades TimeLine Top"; CloseTrades_TimeLineTop.DrawStyle = DRAWSTYLE_BARTOP; CloseTrades_TimeLineTop.PrimaryColor = COLOR_YELLOW; CloseTrades_TimeLineTop.DrawZeros = false; CloseTrades_TimeLineTop.LineStyle = LINESTYLE_DASH; CloseTrades_TimeLineTop.LineWidth = 1; CloseTrades_TimeLineBottom.Name = "CloseTrades TimeLine Bottom"; CloseTrades_TimeLineBottom.DrawStyle = DRAWSTYLE_BARBOTTOM; CloseTrades_TimeLineBottom.PrimaryColor = COLOR_YELLOW; CloseTrades_TimeLineBottom.DrawZeros = false; CloseTrades_TimeLineBottom.LineStyle = LINESTYLE_DASH; CloseTrades_TimeLineBottom.LineWidth = 1; The problem is, I must put an index value for each of them, this index value is a price level, not the percentage of the chart area... I have other subgraphs that do need to use price levels in the study, I just want the subgraphs that display a vertical line to not use price levels ... |
[2015-11-05 19:48:46] |
Sierra Chart Engineering - Posts: 104368 |
Have a look at the source code for the Time Line study.
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: