Login Page - Create Account

Support Board


Date/Time: Fri, 31 Jan 2025 22:34:53 +0000



Help with a study that's not working after updating version

View Count: 1013

[2019-06-05 18:19:46]
User66360 - Posts: 81
This no long works. It use to work on an older version. Is there something in code you can fix to make it work again. Thanks


#include "sierrachart.h"
#include "scstudyfunctions.h"
#include <math.h>
SCDLLName("High Volume At Price")

SCSFExport scsf_HighVAP(SCStudyInterfaceRef sc)
{
SCSubgraphRef MaxVAP = sc.Subgraph[0];

if (sc.SetDefaults)
{
// During development set this flag to 1, so the DLL can be modified. When development is done, set it to 0 to improve performance.
sc.FreeDLL = 0;

sc.GraphName = "High Volume At Price";
sc.StudyDescription = "Display high volume at price for each bar.";
sc.AutoLoop = 1;
sc.GraphRegion = 0;
sc.ScaleRangeType = SCALE_SAMEASREGION;
sc.MaintainVolumeAtPriceData = 1;

MaxVAP.Name = "MaxVAP";
MaxVAP.DrawStyle = DRAWSTYLE_DASH;
MaxVAP.LineWidth = 2;
MaxVAP.PrimaryColor = COLOR_YELLOW;

return;
}

if ((int)sc.VolumeAtPriceForBars->GetNumberOfBars() < sc.ArraySize)
return;

unsigned int MaxVolume = 0;
float MaxVolumePrice = 0;

int Count = sc.VolumeAtPriceForBars->GetSizeAtBarIndex(sc.Index);

for (int ElementIndex = 0; ElementIndex < Count; ElementIndex++)
{
s_VolumeAtPriceV2* p_VolumeAtPriceAtIndex = 0;
sc.VolumeAtPriceForBars->GetVAPElementAtIndex(sc.Index, ElementIndex, &p_VolumeAtPriceAtIndex);

if (p_VolumeAtPriceAtIndex &&
p_VolumeAtPriceAtIndex->Volume > MaxVolume)
{
MaxVolume = p_VolumeAtPriceAtIndex->Volume;
MaxVolumePrice = p_VolumeAtPriceAtIndex->PriceInTicks * sc.TickSize;
}
}

MaxVAP[sc.Index] = MaxVolumePrice;
}
[2019-06-05 18:45:51]
Sierra Chart Engineering - Posts: 104368
Has it been recompiled for the current version? Refer to:
How to Build an Advanced Custom Study from Source Code

The study works for us. It displays these yellow lines:
http://www.sierrachart.com/image.php?Image=1559760337563.png
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: 2019-06-05 18:46:56
[2019-06-05 18:50:30]
User66360 - Posts: 81
Can I get a download for the new version? Or instructions on how to get it to work on my charts? I don't understand how to get it to work on my charts? Thank you
[2019-06-05 23:04:13]
Sierra Chart Engineering - Posts: 104368
We can make you a DLL and attach it here.
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
[2019-06-05 23:11:00]
Sierra Chart - Max - Posts: 5780
The DLL is attached.
Sierra Chart Support
Date Time Of Last Edit: 2019-06-06 00:36:47
attachmentHighVAP_64.dll - Attached On 2019-06-05 23:10:52 UTC - Size: 825 KB - 435 views
[2019-06-05 23:19:55]
User66360 - Posts: 81
It just says private file. Where is the attachment?
[2019-06-06 00:37:09]
Sierra Chart - Max - Posts: 5780
The file has been now made public. By default DLL files are private.
Sierra Chart Support
[2019-06-06 11:16:57]
User66360 - Posts: 81
I have read support boards and cannot get this to load into my data file. Can you please assist? thank you
[2019-06-06 16:22:20]
Sierra Chart - Max - Posts: 5780
1. You need to save the DLL file to your Data Folder:
General Settings Window: Data Files Folder (Global Settings >> General Settings >> Paths >> Files and Folder Paths)

Usually this is going to be C:\SierraChart\Data

2. Are you using the 32 or 64 bit version of Sierra Chart?

Software Download: Difference Between 32 and 64-bit Versions


The DLL was build for the 64 bit version.
Sierra Chart Support
[2019-06-06 16:32:41]
User66360 - Posts: 81
i have 64 bit.
[2019-06-06 17:39:13]
Sierra Chart Engineering - Posts: 104368
We are going to set this file to automatically be downloaded when Sierra Chart is restarted. However, we need to know what your Sierra Chart account is . Log into thee support board with Help >> Support Board and post here when that is done.
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
[2019-06-06 19:09:43]
User66360 - Posts: 81
I got it working, Thank you

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account