Support Board
Date/Time: Thu, 30 Jan 2025 08:39:42 +0000
Post From: Behavior of sc.AlertOnlyOncePerBar
[2019-03-07 23:02:10] |
User257019 - Posts: 25 |
Hello team, I hope you are doing well. I´m generating a really simple ASCIL code while learning but sc.AlertOnlyOncePerBar is not working as sound is being generated with every tick within the same bar :( Could you please help me understanding why that basic is not working? I would highly appreciate it. Thanks a lot! #include "sierrachart.h" SCDLLName("High volume alert") SCSFExport scsf_HighVolAlert(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { sc.GraphName = "Relevant volume alert"; sc.AutoLoop = 1; sc.FreeDLL = 1; sc.AlertOnlyOncePerBar = true; sc.ResetAlertOnNewBar = true; return; } if (sc.BaseDataIn[SC_VOLUME][sc.Index] > 1500) { sc.SetAlert(5); } |