Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 20:11:50 +0000



sc.TicksToPriceValue

View Count: 833

[2015-10-21 14:57:15]
CMG - Posts: 179
Hello,

What is exactly this function for, it does not have a description on the documentation.

Thanks as always

#girlswhocode

PV
[2015-10-21 15:27:52]
DarthSidious - Posts: 63
Yes, but from sierrachart.h:
  float TicksToPriceValue(unsigned int Ticks)
  {

    return Ticks*TickSize;
  }
And TickSize is defined here
http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scTickSize

So TicksToPriceValue() will tell you the total value of that many ticks for the current chart
[2015-10-21 15:32:10]
CMG - Posts: 179
I am debugging someone else's program and they use this function as a means to get the arrow closer to the candlestick/bar chart, is it a correct use of the function. It seems to work however the arrow it is not on top of the bar but a little away.

Patricia
[2015-10-21 15:53:57]
DarthSidious - Posts: 63
SC has a built in study: "Swing High And Low". Try it and see how you like it in terms of arrow placement. Then, find the code in sierrachart/acs_source/studies6.cpp. It uses a % based arrow offset. You can instead use TickSize.
[2015-10-21 15:57:24]
Sierra Chart Engineering - Posts: 104368
This is all it does:

float TicksToPriceValue(unsigned int Ticks)
{
return Ticks*TickSize;
}

So it takes a number of ticks, multiplies it by the Tick Size and returns the actual price value.
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: 2015-10-21 15:58:20

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

Login

Login Page - Create Account