From e2d404b481b4c03894b998dfef7296890300b59b Mon Sep 17 00:00:00 2001 From: TechRancher Date: Thu, 11 Mar 2021 13:05:33 -0600 Subject: [PATCH] Added notes to script --- trend_Indicator.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/trend_Indicator.ts b/trend_Indicator.ts index f232099..a67db1a 100644 --- a/trend_Indicator.ts +++ b/trend_Indicator.ts @@ -3,14 +3,19 @@ # Date: 03 / 2021 # Follow: HTTPS://www.github.com/TechRancher # +# This will detect the trend of your chart based off the time of +# your chart and the time you set the Trend_Indicator to detect. +# Example: 1D 1M chart with trend length time frame at 20 would +# give you the trend for the past 20 minutes. This will be +# displayed in the top left of your chart as either Uptrend or +# Downtrend. You can adjust the trend length time frame in the +# Trend_Indicator Customizing window. The README file explains +# how to do this. +# # 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"); \ No newline at end of file