Support Board
Date/Time: Tue, 24 Dec 2024 17:13:55 +0000
Post From: User Defined scale
[2015-10-20 04:58:20] |
QnReally - Posts: 181 |
There is something I am not getting. Here is what I tried: SCSFExport scsf_Test(SCStudyInterfaceRef sc)
{ if (sc.SetDefaults) { sc.AutoLoop = 1; sc.UpdateAlways = 1; sc.FreeDLL = 0; sc.GraphName = "Test"; sc.DrawZeros = 0; sc.GraphRegion = 0; return; } if (sc.HideStudy) return; if (sc.BaseGraphScaleRangeType != SCALE_USERDEFINED) return; if (sc.BaseGraphScaleRangeTop != sc.ScaleRangeTop || sc.BaseGraphScaleRangeBottom != sc.ScaleRangeBottom) { SCString Buffer; Buffer.Format("User Defined: %.4f - %.4f; Scale Range: %.4f - %.4f", sc.BaseGraphScaleRangeTop, sc.BaseGraphScaleRangeBottom, sc.ScaleRangeTop, sc.ScaleRangeBottom); sc.AddMessageToLog(Buffer, 0); } } Here is what I get in the Message Log and it keeps repeating: Chart: 6EZ5 Renko 2t #2 | Study: Test | User Defined: 1.1366 - 1.1304; Scale Range: 0.0000 - 0.0000 | 2015-10-20 00:54:38
I don't understand why the sc.ScaleRangeTop and sc.ScaleRangeBottom are 0. Thanks. |