Support Board
Date/Time: Sat, 28 Dec 2024 04:50:27 +0000
User drawn chart tool properties in a file
View Count: 788
[2016-01-11 16:49:55] |
buylosellhi - Posts: 60 |
Hi, I would like to write a script that looks at all the user drawn tools on a chart and outputs their properties to a file. Is it possible ? Does anyone have an existing template that does this, or could make it easier ? Many thanks in advance... |
[2016-01-11 18:16:41] |
Sierra Chart Engineering - Posts: 104368 |
Refer to the documentation here: https://www.sierrachart.com/index.php?page=doc/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 |
[2016-01-11 18:35:36] |
buylosellhi - Posts: 60 |
Thanks for your reply. Where can I find the example code for scsf_UseToolExampleRewardRisk() function ? Its mentioned in the documentation page that the code is /ACS_Source/Studies.cpp file but I cant find it. Thanks |
[2016-01-11 19:13:18] |
Sierra Chart Engineering - Posts: 104368 |
This means your copy of Sierra Chart is not up-to-date. We see you are running a very old version of Sierra Chart. 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 Date Time Of Last Edit: 2016-01-11 19:13:32
|
[2016-01-12 04:12:00] |
buylosellhi - Posts: 60 |
Thanks. I was able to use the example code in studies.cpp but getting some weird output. I'm able to get the correct values for the dates but the values from DrawingObject.BeginValue etc are all off and dont correspond to prices on the chart. Could you please point me in the right direction. Thanks much ! DrawingObject.UseRelativeVerticalValues = 0; while( sc.GetUserDrawnChartDrawing(sc.ChartNumber, DRAWING_REWARD_RISK, DrawingObject, DrawingIndex) ) { SCDateTime entryDate, exitDate; float entryPx, stopPx, exitPx; entryDate = DrawingObject.EndDateTime; exitDate = DrawingObject.ThirdDateTime; entryPx = DrawingObject.EndValue; stopPx = DrawingObject.BeginValue; exitPx = DrawingObject.ThirdValue; |
To post a message in this thread, you need to log in with your Sierra Chart account: