Support Board
Date/Time: Tue, 24 Dec 2024 01:45:10 +0000
Post From: market orders and BHCS_BAR_HAS_CLOSED
[2015-10-16 20:09:04] |
Sierra Chart Engineering - Posts: 104368 |
It would make sense to send the order when a new bar is added to the chart if the conditions are met. This code example will help: SCSFExport scsf_DetectingNewBarsAdded(SCStudyInterfaceRef sc)
{ if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "Detecting New Bars Added"; sc.AutoLoop = 1; sc.FreeDLL = 0; return; } // Do data processing int& PriorArraySize = sc.GetPersistentInt(1); //This is not a full recalculation of the study if (!sc.IsFullRecalculation) { // If there are new bars added if (PriorArraySize < sc.ArraySize) { // put processing here that is required for when new bars are added to the chart } } PriorArraySize = sc.ArraySize; } 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 |