Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 13:04:28 +0000



[Programming Help] - Change to ask/bid vol difference text indicator

View Count: 1563

[2018-08-25 23:59:04]
User563418 - Posts: 6
Hi,

In the chart i attached you can see my chart on the right and what i want it to look like on the left.

This is using the ask volume bid volume difference text indicator.

So when the bid/ask vol text is positive and the bar closes negative i would like it to display as shown on left.

And vice versa when bid/ask vol text is negative and the bar closes positive i would like it to display as shown on left.

Like in the screenshot, it would be great if it only displayed the text when this happens.

Could this be changed in the indicator or would you be able to give me the lines of code and i could change it myself?
It would be extremely helpful.


Thanks,
SD
Date Time Of Last Edit: 2018-08-26 00:00:03
imagescreeeenshot.png / V - Attached On 2018-08-25 23:57:16 UTC - Size: 281.44 KB - 324 views
[2018-08-26 05:17:07]
Sierra Chart Engineering - Posts: 104368
or would you be able to give me the lines of code and i could change it myself?

Yes you can do this. The name of the study function is: scsf_AskVolumeBidVolumeDifferenceText in studies8.cpp.

Refer to this page for further help:
How to Build an Advanced Custom Study from Source Code
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
[2018-08-26 12:13:37]
User563418 - Posts: 6
Sorry i meant would you know the specific lines of code that would make it like shown?
I've tried to do it but i'm not a programmer.

Basically in the code for that indicator i pasted below i want the text to display above the bar if the difference is >=1 and below the bar if <=0.

Any idea how to code it correctly?

  Subgraph_Difference[sc.Index] = sc.AskVolume[sc.Index] - sc.BidVolume[sc.Index];

  if (Input_DisplayAboveOrBelow.GetIndex() == 0)
    TextPosition[sc.Index] = sc.High[sc.Index] + (Input_OffsetInTicks.GetInt() * sc.TickSize);
  else    
    TextPosition[sc.Index] = sc.Low[sc.Index] - (Input_OffsetInTicks.GetInt() * sc.TickSize);

Thanks
SD
Date Time Of Last Edit: 2018-08-26 13:08:33
[2018-08-27 14:36:39]
User563418 - Posts: 6
Any idea guys?

Thanks

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

Login

Login Page - Create Account