Support Board
Date/Time: Mon, 13 Jan 2025 06:25:12 +0000
Create a extending rectangle or rectangle in ascil code
View Count: 2472
[2017-03-24 15:30:28] |
User210074 - Posts: 63 |
Do you have a function to draw a rectangle or extending rectangle with 4 or 8 values ? /*....*/ //string Retangle(Double BDA, double BPA, double BDB, double BPB, double EDA, double EPA, double EDB, double EPB){ /*string Resultat {"...."}; return Resultat;*/ } int main(){ double BeginDateA, BeginPriceA, BeginDateB, BeginPriceB;/*<-Value for start Rectangle or Extending Rectangle*/ double EndDateA, EndPriceA, EndDateB, EndPriceB;/*<- Value for end rectangle*/ //string CreateRectangle{}; //CreateRectangle = Rectangle(BeginDateA, BeginPriceA, BeginDateB, BeginPriceB, EndDateA, EndPriceA, EndDateB, EndPriceB); } |
extendingRectangle.PNG / V - Attached On 2017-03-24 15:28:58 UTC - Size: 62.84 KB - 489 views extendingRectangle1.PNG / V - Attached On 2017-03-24 15:29:12 UTC - Size: 78.72 KB - 455 views |
[2017-03-24 17:32:11] |
Sierra Chart Engineering - Posts: 104368 |
Refer to this page to use Drawing Tools from ACSIL: http://www.sierrachart.com/index.php?page=doc/ACSILDrawingTools.html 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-03-27 12:22:03] |
User210074 - Posts: 63 |
I would like to draw a extending rectangle. int Transparency_Level = 60; int Rectangle_Line_Width = 1; int UniqueLineNumber = 0; s_UseTool Tool; Tool.Clear(); Tool.ChartNumber = sc.ChartNumber; Tool.DrawingType = DRAWING_RECTANGLEHIGHLIGHT; Tool.LineNumber = UniqueLineNumber + sc.Index; Tool.BeginDateTime = sc.BaseDateTimeIn[sc.Index]; Tool.BeginIndex = sc.Index; Tool.BeginValue = sc.Low[sc.Index]; Tool.EndIndex = sc.Index; Tool.EndValue = sc.High[sc.Index]; Tool.Color = RGB(0,200,200); Tool.TransparencyLevel = Transparency_Level; Tool.LineWidth = Rectangle_Line_Width; sc.UseTool(Tool); -- Starting build of Custom Studies Source files: sc_Test_Tools_Extending_Rectangle.cpp. -- 14:00:12 C:\WINDOWS\system32\cmd.exe /C "C:\SierraChart\ACS_Source\VisualCCompile.Bat" C:\SierraChart\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" sc_Test_Tools_Extending_Rectangle.cpp LINK : fatal error LNK1104: cannot open file 'C:\SierraChart\Data\sc_Test_Tools_Extending_Rectangle.cpp.dll' -- End of Build -- 14:00:15 Can you give me an example of drawing an extending rectangle in code. Sorry, I'm lost. |
[2017-03-27 17:17:56] |
Sierra Chart Engineering - Posts: 104368 |
There is no error in the code. sc_Test_Tools_Extending_Rectangle.cpp.
Do not use a . at the end of this filename.LINK : fatal error LNK1104: cannot open file 'C:\SierraChart\Data\sc_Test_Tools_Extending_Rectangle.cpp.dll' Refer to: Advanced Custom Study Interface and Language (ACSIL): Modifying Advanced Custom Study Code 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-03-31 03:45:29] |
User210074 - Posts: 63 |
I do not find the function that allows to put the label of the price : "Center Price Labels On Level" I test Tool.TextAlignment = DT_TOP|DT_RIGHT|DT_VCENTER; /*I tested all possible combinations( DT_TOP, DT_VCENTER, DT_BOTTOM, DT_CENTER, DT_LEFT, DT_RIGHT ) , the function is not there ?*/ Tool.FontSize = 8;/*For 8px, or x px*/ Date Time Of Last Edit: 2017-03-31 03:56:09
|
Text_Rectangle.PNG / V - Attached On 2017-03-31 03:40:12 UTC - Size: 17.05 KB - 394 views |
[2017-04-03 06:09:54] |
Sierra Chart Engineering - Posts: 104368 |
There is not a way to control "Center Price Labels On Level" from ACSIL. The font size is controlled through the Global Chart Drawing font: https://www.sierrachart.com/index.php?page=doc/Tools.html#ChartDrawingText 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: