Support Board
Date/Time: Sat, 18 Jan 2025 18:41:50 +0000
ASCIL Price Expansion Tool Issue
View Count: 1031
[2018-01-31 11:42:22] |
User942837 - Posts: 108 |
Hi, I'd like to add the tool of type DRAWING_PRICE_EXPANSION across the high and low of particular bars. Using the (BeginDateTime and EndDateTime) or (BeginIndex and EndIndex) don't allow for expansion across the same bar. Why is this not allowed if I want to draw the lines across 1 bar? The only way I managed to do it is using the BeginValue and EndValue but that one spans across the whole chart and if I have multiple candles it gets very messy. Your input is greatly appreciated. Thanks |
[2018-02-02 16:55:49] |
Sierra Chart Engineering - Posts: 104368 |
This should work. We will have to run a test.
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 |
[2018-02-08 20:20:22] |
User942837 - Posts: 108 |
hi, is this scheduled on your things to do please? |
[2018-02-14 05:16:50] |
Sierra Chart Engineering - Posts: 104368 |
Yes, we are looking this over now.
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 |
[2018-02-14 23:06:35] |
Sierra Chart Engineering - Posts: 104368 |
Here is a code example for this: /*==========================================================================*/
SCSFExport scsf_UseToolExampleDrawingPriceExpansion(SCStudyInterfaceRef sc) { // Set configuration variables if (sc.SetDefaults) { sc.GraphName = "UseTool Example: Price Expansion"; sc.GraphRegion = 0; sc.FreeDLL = 0; sc.AutoLoop = 0; //No automatic looping return; } int& r_LineNumber = sc.GetPersistentInt(1); if (sc.IsFullRecalculation) { s_UseTool Tool; //Tool.Clear(); Tool.ChartNumber = sc.ChartNumber; Tool.DrawingType = DRAWING_PRICE_EXPANSION; Tool.ExtendLeft = 1;// Extend the horizontal lines to the left of the chart region. if (r_LineNumber != 0) Tool.LineNumber = r_LineNumber; // Update BarIndex to 40 bars from the end int BarIndex = sc.ArraySize - 100;// 100 bars back and from high to low BarIndex = max(BarIndex, 0); Tool.BeginDateTime = sc.BaseDateTimeIn[BarIndex]; Tool.EndDateTime = sc.BaseDateTimeIn[BarIndex];//sc.ArraySize - 1 Tool.BeginValue = sc.High[BarIndex];//sc.ArraySize - 1 Tool.EndValue = sc.Low[BarIndex]; Tool.Color = RGB(255, 0, 255); // Magenta Tool.AddMethod = UTAM_ADD_OR_ADJUST; for (int LevelIndex = 0; LevelIndex < min(8, ACSIL_DRAWING_MAX_LEVELS); LevelIndex++) Tool.RetracementLevels[LevelIndex] = LevelIndex * 10.0f; Tool.ShowPrice = 1; Tool.ShowPercent = 1; Tool.RoundToTickSize = 0; Tool.TextAlignment = DT_VCENTER; // label vertical alignment sc.UseTool(Tool); r_LineNumber = Tool.LineNumber;//Remember line number which has been automatically set } } 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: