Login Page - Create Account

Support Board


Date/Time: Tue, 21 Jan 2025 07:32:22 +0000



[Programming Help] - Use of the VAPContainer function GetVAPElementForPriceIfExists

View Count: 1017

[2018-07-29 06:46:35]
BlakJak - Posts: 108
Hi,

I am building an indicator using volume at price and I came across this undocumented function in the VAPContainer.h which seems to do exactly what I need which is to find the volume of Bid and Ask trades at a specific price (specified by me in my program) for a given BarIndex.

Rather than having to re-invent the wheel, I thought I might use this function however due to its undocumented state (and I Googled and found ZERO references to it) I wanted to check that this was something that was safe/OK to use in my code.

Rgds,
David
[2018-07-29 20:11:57]
Sierra Chart Engineering - Posts: 104368
Yes it is perfectly safe to use that function and any function in the VAP container.

Although we recently performed various optimizations on the VAP container and these functions are no longer recommended to be used:

    bool GetNextHigherVAPElement
      ( const unsigned int BarIndex
      , int& r_PriceInTicks
      , const t_VolumeAtPrice** p_VAP
      ) const;

    bool GetNextLowerVAPElement
      ( const unsigned int BarIndex
      , int& r_PriceInTicks
      , const t_VolumeAtPrice** p_VAP
      ) const;



They are not as efficient as GetVAPElementAtIndex.
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: 2018-07-29 20:16:28

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

Login

Login Page - Create Account