Accessing the max data counts in Custom Indicator
3 replies
Fred
1 month ago #287938
Hi,
I need to have the price’s data max length in OnBarUpdate() function of Custom Indicator. I cannot use Input.size() or Chart.Size() (Chart is an intance of ChartData) because they are the data up to the current candle. For example if we are in the 10th candle (CurrentBar = 10), these values are equal to 10. But, I need the length of the whole candle numbers.
Best,
tomas262
3 weeks ago #288093
You can contract our developers directly for help. Send a request to this email [email protected]
clonex / Ivan Hudec
2 weeks ago #288094
int calculatedBars = Chart.getCurrentBar();
clonex / Ivan Hudec
2 weeks ago #288096
Also check also:
https://strategyquant.com/sqxapi/com/strategyquant/datalib/DataSeries.html
methods: size, specialSize
https://strategyquant.com/sqxapi/com/strategyquant/tradinglib/ChartData.html
or possibly look here https://strategyquant.com/sqxapi/com/strategyquant/datalib/InstrumentInfo.html
Viewing 3 replies - 1 through 3 (of 3 total)