Support Board
Date/Time: Thu, 28 Nov 2024 00:47:13 +0000
Post From: Bug Report - Or Unexpected Feature -Study -- Text Display for Study
[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. |