In today's video, we will explore how to easily create your own set of labels inside ThinkOrSwim. Labels can be used to plot indicator values or display calculations and variables in a customizable format. We will cover two types of labels: static labels, which display pre-defined values, and dynamic labels, which show the results of calculations or user inputs.
Exponential Moving Average (EMA) Label: To plot the EMA as a static value in a label, use the add label
function. Set the boolean variable to yes
to always show the label, and input the EMA value as the text parameter. You can specify the color of the label, such as color.yellow
, for better visibility.
Volume Label: Similar to the EMA label, you can display the volume as a static value by using the volume
built-in indicator instead of the EMA. Just input volume
as the text parameter in the add label
function.
Chaikin Money Flow (CMF) Label: To display the CMF value as a static label, use the add label
function and specify the CMF plot inside the cmf
indicator. For example, cmf.cmf
will show the CMF value. Customize the label color to improve visibility.
Stacked Moving Averages Label: Define the required moving averages, such as the 8, 21, and 34 periods, and create boolean variables to determine if they are stacked bullishly or bearishly. Use the add label
function and an if-then statement to display the label as "Bullish" or "Bearish" based on the boolean variables. Customize the label color based on the bullish or bearish condition.
Counter Variable Label: If you have a specific indicator or signal, such as the Simple Breakout Tool, you can count the number of occurrences and display the count in a label. Copy and paste the code for the indicator, and then use the total sum
function to calculate the number of bullish and bearish signals. Use the add label
function to display the counts with the appropriate text and color.
User Input Label: Allow users to input a value, such as the length of a moving average, that will be used in the indicator or calculation. Utilize the input variable to capture user input, and then display that input value in a label using the add label
function. The label will update automatically when the user changes the input value.
ThinkOrSwim, labels, static labels, dynamic labels, add label function, indicator values, calculations, variables, EMA, volume, CMF, moving averages, boolean variables, user input.
color
parameter in the add label
function. Choose from available colors like color.yellow
, color.green
, or color.red
for better visibility.add label
function and input the desired values as the text parameter. You can include indicators, calculations, or variables in the text parameter.In addition to the incredible tools mentioned above, for those looking to elevate their video creation process even further, Topview.ai stands out as a revolutionary online AI video editor.
TopView.ai provides two powerful tools to help you make ads video in one click.
Materials to Video: you can upload your raw footage or pictures, TopView.ai will edit video based on media you uploaded for you.
Link to Video: you can paste an E-Commerce product link, TopView.ai will generate a video for you.