Support Board
Date/Time: Wed, 27 Nov 2024 12:22:04 +0000
Post From: 2 unrelated questions
[2014-08-30 20:27:40] |
Sierra Chart Engineering - Posts: 104368 |
1. We have identified no problem with this. Here is a code example to work from: SCSFExport scsf_ChangeBarPeriodTypeExample(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { sc.GraphName = "Change Bar Period Type Example"; sc.StudyDescription = "This study is an example to change between Range and Volume Bars. It continuously changes between these two Bar Period Types, so the chart will continuously reload."; //During development set this flag to 1, so the DLL can be modified. When development is completed, set it to 0 to improve performance. sc.FreeDLL = 0; return; } if (sc.LastCallToFunction == 1) { sc.SecondsPerBar = 1*SECONDS_PER_MINUTE; // Set back to 1 minute sc.RangeBarType= IBPT_RANGE_IN_TICKS_STANDARD; sc.RangeBarValue = 0; sc.VolumePerBar = 0; sc.NumberOfTradesPerBar = 0; sc.DeltaVolumePerBar = 0; sc.ReversalTicksPerBar = 0; sc.RenkoTicksPerBar = 0; return; } if (!sc.AreRangeBars()) { sc.RangeBarType= IBPT_RANGE_IN_TICKS_STANDARD; sc.RangeBarValue = 2; sc.VolumePerBar = 0; sc.NumberOfTradesPerBar = 0; sc.DeltaVolumePerBar = 0; sc.ReversalTicksPerBar = 0; sc.RenkoTicksPerBar = 0; } else if (!sc.AreVolumeBars()) { sc.RangeBarType= IBPT_RANGE_IN_TICKS_STANDARD; sc.RangeBarValue = 0; sc.VolumePerBar = 5000; sc.NumberOfTradesPerBar = 0; sc.DeltaVolumePerBar = 0; sc.ReversalTicksPerBar = 0; sc.RenkoTicksPerBar = 0; } } 2. The proper solution to this will be to change to package 3 to use the Sierra Chart Historical Data service which is now integrated with the Interactive Brokers trading service. This will be used for both Historical Daily and Historical Intraday data downloads. Let us know if you would like us to do that. What exchanges are the symbols you are charting from? 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 Date Time Of Last Edit: 2014-08-30 20:29:24
|