Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 15:21:44 +0000



[User Discussion] - Futures tick/point values on the charts

View Count: 312

[2024-02-02 00:31:36]
User744218 - Posts: 15
Hello,
Is there a way to display Futures tick/point values on the charts? Similar to the Symbol Display study. Thanks!
[2024-02-02 02:53:59]
Sierra_Chart Engineering - Posts: 17148
Have a look at this study:
Full Contract 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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-02-02 03:26:17]
User744218 - Posts: 15
Thank you for the response. I am not sure if that study helps. I am trying to see if there is a way to display something like this on the chart:


Contract   Symbol      Tick / $ Value

Micro E-Mini S&P 500  MES      0.25 / $1.25
[2024-02-02 15:44:06]
John - SC Support - Posts: 36238
There is not a way to access the "Currency Value per Tick" for a chart using the built-in tools. Therefore, if you are not changing the symbol, then we recommend using the "Stationary Text" drawing tool to put this information on the chart where you want it, and just type in the values.

If you are wanting this to be picked up automatically because you are changing symbols, then you would need to create a custom study to do this. Refer to the following:
Using Drawing Tools From an Advanced Custom Study

List of Third Party Sierra Chart Study and System Programmers
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-02-08 14:55:47]
User744218 - Posts: 15
Thank you. I am able to get the tick value using this script. Is there a function to get a number of ticks in a point so that I can display the Point value?

------------------------------------------------------------------------------

  SCString SymbolDescription;
  sc.GetSymbolDescription(SymbolDescription);
    //SCString SymbolDescription;
  // -added tickvalue
  
  //sc.CurrencyValuePerTick
  
  // Added - Converting numeric to text; 4f denotes 4 decimals; change as per contract
SCString TestString;
float Value = sc.CurrencyValuePerTick;
TestString.Format("%s %.4f", " Tick:", Value);
[2024-02-08 15:09:26]
Sawtooth - Posts: 4118
You could use the Spreadsheet Study study with a this formula in K3 (SG1):
=1/$J$21*$J$56

Then use the Text Display for Study study.

(J21 is the ticksize, J56 is the currency value per tick.)
[2024-02-08 18:02:53]
User744218 - Posts: 15
@Sawtooth - Excellent idea. Thank you!
[2024-08-13 02:27:03]
Dustin D - Posts: 2
This is what I use which shows subgraphs for Tick Size, Tick Value, and Point Value. All thanks to my amazing coding assistant Mr. ChatGPT:


#include "sierrachart.h"

// Define the name of the DLL
SCDLLName("My Creations")

SCSFExport scsf_TickSizeTickValuePointValue(SCStudyInterfaceRef sc)
{
if (sc.SetDefaults)
{
sc.GraphName = "Tick Size, Tick Value, Point Value";
sc.StudyDescription = "Displays Tick Size, Tick Value, and Point Value.";

// Define subgraphs
sc.Subgraph[0].Name = "Tick Size";
sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE;
sc.Subgraph[0].PrimaryColor = RGB(0, 0, 255); // Blue
sc.Subgraph[0].LineWidth = 2;

sc.Subgraph[1].Name = "Tick Value";
sc.Subgraph[1].DrawStyle = DRAWSTYLE_LINE;
sc.Subgraph[1].PrimaryColor = RGB(0, 255, 0); // Green
sc.Subgraph[1].LineWidth = 2;

sc.Subgraph[2].Name = "Point Value";
sc.Subgraph[2].DrawStyle = DRAWSTYLE_LINE;
sc.Subgraph[2].PrimaryColor = RGB(255, 0, 0); // Red
sc.Subgraph[2].LineWidth = 2;

sc.AutoLoop = 1; // Enable AutoLoop to process historical data correctly
return;
}

// Retrieve the Tick Size, Tick Value, and Point Value
float tickSize = sc.TickSize;
float tickValue = sc.CurrencyValuePerTick;
float pointValue = tickValue * (1.0f / tickSize);

// Plotting the values on the chart
sc.Subgraph[0][sc.Index] = tickSize;
sc.Subgraph[1][sc.Index] = tickValue;
sc.Subgraph[2][sc.Index] = pointValue;
}
Date Time Of Last Edit: 2024-08-13 02:28:09

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

Login

Login Page - Create Account