Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 02:26:18 +0000



[Programming Help] - horizontal bars diagramm

View Count: 1078

[2018-12-31 14:16:53]
MD236 - Posts: 28
Hi,
since a few days I'm struggling to create a horizontal diagramm. I've no idea how to do this and can't find examples showing this.
I read here Chart Studies: Horizontal Profile (ACSIL: DRAWSTYLE_HORIZONTAL_PROFILE) but do not understand how to plot at price X a value Y.
I want to show the volume of the actual bar for each pricelevel as horizontal bar at the right side of the bar, but with DRAWSTYLE_HORIZONTAL_PROFILE I'm not able to draw from the right side, how is this done within the numbersbar study or volume profile?
Can you provide me a with a working example please, I would be very happy to step forward with my programming experience in Sierra
[2018-12-31 21:03:04]
Sierra Chart Engineering - Posts: 104368
You need to use the Volume by Price study. Refer to the settings here for this:
Volume By Price Study: One Volume Profile per Chart Bar
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-01-01 10:36:40]
MD236 - Posts: 28
Thanks for the really fast answer and a happy new year.
I know this study but I want to realize this kind of diagramm from ASCIL because I want to display pulling and stacking and delta volume.
I tried this code to display how often the same close appears:
SCSFExport scsf_test(SCStudyInterfaceRef sc)
{
  SCSubgraphRef sg1 = sc.Subgraph[0];

  if (sc.SetDefaults)
  {
    // Set the configuration and defaults

    sc.GraphName = "test";
    sc.GraphRegion = 0;
    sc.AutoLoop = 0; // manual loop

    sg1.Name = "BidVolume";
    sg1.DrawStyle = DRAWSTYLE_HORIZONTAL_PROFILE;
    sg1.PrimaryColor = RGB(247, 77, 68);

    return;
  }

  for(int i=sc.ArraySize -10;i< sc.ArraySize;i++)
    sg1[i] = sc.Close[i];
}
I attached the result. My questions here are:
1. how can I place the diagramm on the right edge of the chart
2. how can I setup it so it use only say 20% of the chart area?
After this simple use I want to display the delta per price (I know how to get this values) like a volume profile but I need to know how to plot the delta per price because this is now working:
sg1[price]=deltaValue;

imagepic-1.png / V - Attached On 2019-01-01 10:36:21 UTC - Size: 17.15 KB - 381 views
[2021-03-01 10:45:29]
MD236 - Posts: 28
2 years ago I'd posted my answer to my original problem, since this time I found no solution and also no example in your documentation.
Do you have really no hint how to solve my problem?

Thanks

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

Login

Login Page - Create Account