Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 07:58:05 +0000



[Programming Help] - Time and sales custom study

View Count: 70227

[2020-12-04 15:36:20]
User568229 - Posts: 2
I am trying to build a custom study through time and sales data and have a few questions. Which values are stored in a TimaAndSales struct and how to access them properly?

Tried to modify existing study and revieve message log:

teststudie.cpp: In function 'void TimeAndSales(SCStudyInterfaceRef, TimeAndSalesStudyFlagsEnum)':
teststudie.cpp:82:37: error: passing 'const s_TimeAndSales' as 'this' argument discards qualifiers [-fpermissive]
82 | TimeSalesTmp[TimeSalesTmpSize] = TimeAndSalesRecord;
| ^~~~~~~~~~~~~~~~~~
In file included from sierrachart.h:22,
from teststudie.cpp:1:
scstructures.h:133:8: note: in call to 's_TimeAndSales& s_TimeAndSales::operator=(const s_TimeAndSales&)'
133 | struct s_TimeAndSales

What is the problem there and how to fix it?

thanks for your support

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

Login

Login Page - Create Account