True Strength Index

True Strength Index Java API Documentation

The True Strength Index (TSI) is a momentum oscillator used to identify building trends and trend reversals, typically by signalling overbought and oversold conditions. TSI fluctuates between positive and negative values, and traders typically combine its signal with other momentum oscillators to increase its strength. When TSI crosses the signal line into positive territory it is presumed to be an entrance opportunity and vice versa when the TSI crosses into negative territory.

API Class:
SecurityApi
Instance Method:
getSecurityPriceTechnicalsTsi()

Stock Price Code Example

Use my API Key
import com.intrinio.api.*;
import com.intrinio.models.*;
import com.intrinio.invoker.*;
import com.intrinio.invoker.auth.*;
import org.threeten.bp.*;
import java.math.BigDecimal;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
ApiClient defaultClient = Configuration.getDefaultApiClient();
ApiKeyAuth auth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
auth.setApiKey("YOUR_API_KEY");
defaultClient.setAllowRetries(true);
SecurityApi securityApi = new SecurityApi();
String identifier = "AAPL";
Integer lowPeriod = 13;
Integer highPeriod = 25;
String priceKey = "close";
String startDate = "2018-01-01";
String endDate = "2019-01-01";
Integer pageSize = 100;
String nextPage = null;
ApiResponseSecurityTrueStrengthIndex result = securityApi.getSecurityPriceTechnicalsTsi(identifier, lowPeriod, highPeriod, priceKey, startDate,
      endDate, pageSize, nextPage);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
lowPeriodIntegerThe number of observations, per period, to calculate low period Exponential Moving Average for smoothing in True Strength Index[optional] [default to 13]  
highPeriodIntegerThe number of observations, per period, to calculate high period Exponential Moving Average for smoothing in True Strength Index[optional] [default to 25]  
priceKeyStringThe Stock Price field to use when calculating True Strength Index[optional] [default to close] [enum: open, high, low, close, volume]  
startDateStringReturn technical indicator values on or after the date[optional]  
endDateStringReturn technical indicator values on or before the date[optional]  
pageSizeIntegerThe number of results to return[optional] [default to 100]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSecurityTrueStrengthIndex

Properties

NameTypeDescription
technicalsList 
indicatorTechnicalIndicatorThe name and symbol of the technical indicator  
securitySecuritySummaryThe Security of the Stock Price  
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
TrueStrengthIndexTechnicalValue

Properties

NameTypeDescription
dateTimeOffsetDateTimeThe date_time of the observation  
tsiFloatThe True Strength Index calculation value  
object
TechnicalIndicator

Properties

NameTypeDescription
nameStringThe name of the Technical Indicator  
symbolStringThe symbol of the Technical Indicator  
object
SecuritySummary

Properties

NameTypeDescription
idStringThe Intrinio ID for Security  
companyIdStringThe Intrinio ID for the Company for which the Security is issued  
exchangeStringThe exchange's MIC  
exchangeMicStringThe security's exchange MIC  
stockExchangeIdStringThe exchange's Intrinio ID  
nameStringThe name of the Security  
codeStringA 2-3 digit code classifying the Security (reference)  
currencyStringThe currency in which the Security is traded on the exchange  
tickerStringThe common/local ticker of the Security  
compositeTickerStringThe country-composite ticker of the Security  
figiStringThe OpenFIGI identifier  
compositeFigiStringThe country-composite OpenFIGI identifier  
shareClassFigiStringThe global-composite OpenFIGI identifier  
primaryListingBooleanIf true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange