Support Board
Date/Time: Wed, 27 Nov 2024 22:37:50 +0000
Bug Report - Or Unexpected Feature -Study -- Text Display for Study
View Count: 1331
[2014-10-08 15:12:54] |
djcurcio - Posts: 236 |
Text Display for Study When checking "Save these setting as the default" box the study does NOT save the "Study and Subgraph to Display", the "Prefix Text" elements. Also, the study mysteriously places checks into the "Display Study Name, Subgraph Names..., Display Study Name, and Display Input Values" check boxes. This wastes time when replicating a study into multiple charts. It would be more useful to have the "Save as Default" truly replicate the desired setting. Thanks |
[2014-10-08 19:43:53] |
Sierra Chart Engineering - Posts: 104368 |
What this indicates is that the settings you are mentioning are not being saved as you have changed them, but using the original defaults. We will look into this. 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 |
[2014-10-15 19:58:03] |
Al SC Developer - Posts: 434 |
These additional default settings will be saved/restored in ver 1202.
|
[2014-10-15 21:56:14] |
ganz - Posts: 1048 |
SC Support Looks like ACSIL abs() rounds a value. #include "sierrachart.h" SCDLLName("abs1"); SCSFExport scsf_bm_abs1(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { sc.GraphName = "abs1"; sc.StudyDescription = "abs1 @ganz"; sc.Subgraph[0].Name = "abs1"; sc.Subgraph[0].DrawStyle = DRAWSTYLE_BAR; sc.GraphRegion = 1; sc.AutoLoop = 1; sc.FreeDLL = 1; return; } float val; val = abs(-5.5); sc.Subgraph[0][sc.Index] = (float) val; return; } djcurcio sorry for this. thnx. |
[2014-10-15 22:09:26] |
Al SC Developer - Posts: 434 |
Looks like ACSIL abs() rounds a value
No it does not. Also, this is a standard C function, and not a SC built-in function. abs(-5.5) is 5.5 which is the absolute value. |
[2014-10-15 22:17:11] |
ganz - Posts: 1048 |
Al SC Developer it does for me using linux native mingw cross compiler. i686-w64-mingw32-g++ (GCC) 4.9.1 Copyright (C) 2014 Free Software Foundation, Inc. http://s13.postimg.org/7i9dnjjhz/abs1.png Date Time Of Last Edit: 2014-10-15 22:17:32
|
[2014-10-16 00:17:57] |
Al SC Developer - Posts: 434 |
You will have to check which abs() function you are including/calling. I suspect you are pulling in the version that takes an int type and returns an int type - hence your rounding issue. Be sure you are properly including either math.h or cmath. In the future, please create a new thread, as this conversation has nothing to do with the original post. |
[2014-10-17 05:18:56] |
ganz - Posts: 1048 |
Al SC Developer Be sure you are properly including either math.h or cmath.
FYI: #include <cmath> doesn't solve itso fabs() is still the only solution. In the future, please create a new thread, as this conversation has nothing to do with the original post.
Yes. Sure. It's my fault. I didn't expect it will take a lot of words.
|
[2014-10-17 12:14:58] |
Al SC Developer - Posts: 434 |
I didn't expect it will take a lot of words.
Its not the words, it helps for others who might be searching for similar issues.
|
To post a message in this thread, you need to log in with your Sierra Chart account: