Skip to content

Commit

Permalink
Added README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TechRancher committed Mar 11, 2021
1 parent d19f3a7 commit 5666074
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 1 deletion.
Binary file added Images/Beaker_Icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Customizing.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Gear.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Open_Shared.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Steps_To_Apply.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Steps_To_Apply2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Trend_Detected.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
# TOS_Trend_Indicator
# Trend Indicator

I wrote this for Thinkorswim platform. This script can be used using this script code: https://tos.mx/q6sj9Bn

## Here is how To Use

To import the script code:
Go to top right of Thinkorswim platform window and click on the Gear Setup Icon tab.
A drop-down menu will appear. From this menu select Open share item...
This will open the Open Share Item window
![Image of Open Share Item](Images/Open_Shared.jpg)
From here you will enter the script code to install the Trend Indicator script.

Once imported into your Thinkorswim platform go to Edit Studies (Beaker Icon) from any chart window.
![Image of Beaker Icon](Images/Beaker_Icon.jpg)
Once you click on the Edit Studies (Beaker Icon) this will open up the Edit Studies and Strategies window

From Here you can add Trend_Indicator to your chart.
![Image of Edit Studies](Images/Steps_To_Apply.jpg)

1. This is where you can type in Trend_Indicator to look for it through hundreds of different Studies.
2. Trend_Indicator will be displayed in this area if you had imported it correctly. Highlight by clicking on Trend_Indicator in this area.
3. Now to add to chart you can click on Add selected.
4. Once added to your chart it will appear in Price area.
5. Clicking on the gear icon will access the customization of Trend_Indicator to make your trend detection more accurate.

![Image of Customizing](Images/Customizing.jpg)
This shows where to adjust the Trend Time Frame.
Set this for the length of time you want to check for a trend.

Be aware this will be based off your time of the Chart being used. Example: 1D 1M chart with trend length time frame at 20 would give you the trend for the past 20 minutes.

1. Displays the window where you can enter your time frame to detect your trend in your chart.
2. After entering your detection time, click on the ok tab to exit the Customizing window.

![Image of Edit Studies](Images/Steps_To_Apply2.jpg)
Once you set your trend length time frame for your chart. You will need to:

1. Press Apply to add changes to your chart.
2. Press Ok to exit the Edit Studies and Strategies window.

![Image of Trend detected](Images/Trend_Detected.jpg)
Now in the top left of your chart window the trend that the script had detected will be displayed. **Remember this is based off the trend length time frame and your chart time.**
16 changes: 16 additions & 0 deletions trend_Indicator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Author: TechRancher
# Date: 03 / 2021
# Follow: HTTPS://www.github.com/TechRancher
#

# User Input
# Set this for the length of time you want to check for a trend.Be # aware this will be based of your time of Charts.Example: 1D 1M # chart with trend length time frame at 20 would give me the trend # for the past 20 minutes.

input trendLengthTimeFrame = 20;


# Trend Indicator
# This will display on your chart the trend as a label.

AddLabel(yes, if IsAscending(close, trendLengthTimeFrame) then "Uptrend" else "Downtrend");

0 comments on commit 5666074

Please sign in to comment.