A_Traders_Edge

A_Taders_Edge_LIBRARY

A_Traders_Edge Aktualisiert   
Library "A_Taders_Edge_LIBRARY"

RCI(_rciLength, _close, _interval, _outerMostRangeOfOscillator)
  - You will see me using this a lot. DEFINITELY my favorite oscillator to utilize for SO many different things from timing entries/exits to determining trends.
  Parameters:
    _rciLength (int)
    _close (float)
    _interval (int)
    _outerMostRangeOfOscillator (int)
  Returns: - Outputs a single RCI value that will between (-)_outerMostRangeOfOscillator to (+)_outerMostRangeOfOscillator

InvalidTID(_close, _showInvalidAssets, _securityTickerid, _invalidArray)
  - This is to add a table on the right of your chart that prints all the TickerID's that were either not formulated correctly in the scripts input or that is not a valid symbol and should be changed.
  Parameters:
    _close (float)
    _showInvalidAssets (simple bool)
    _securityTickerid (string)
    _invalidArray (string)
  Returns: - Does NOT return a value but rather the table with the invalid TickerID's from the scripts input that need to be changed.

LabelLocation(_firstLocation)
  - This is ONLY for when you are wanting to print ALERT LABELS with the assets name for when an alert trigger occurs for that asset. There are a total of 40 assets that can be used in each copy of the script. You don't want labels from different assets printing on top of each other because you will not be able to read the asset name that the label is for. Ex. If you put your _firstLocation in the input settings as 1 and have 40 assets on this copy of the scanner then the first asset in the list is assigned to the location value 1 on the scale, and the 2nd in the list is assigned to location value 2...and so on. If your first location is set to 81 then the 1st asset is 81 and 2nd is 82 and so on.
  Parameters:
    _firstLocation (simple int)
  Returns: - regardless of if you have the maximum amount of assets being screened (40 max), this export function will output 40 locations… So there needs to be 40 variables assigned to the tuple in this export function. What I mean by that is there needs to be 40 variables between the ''. If you only have 20 assets in your scripts input settings, then only the first 20 variables within the '' Will be assigned to a value location and the other 20 will be assigned 'NA'.

SeparateTickerids(_string)
  - You must form this single tickerID input string exactly as laid out in the water (a little gray circle at the end of the setting, that you hover your cursor over to read the details of). IF the string is formed correctly then it will break up. All of the tip rate is within the string into a total of 40 separate strings which will be all of the tickerIDs that the script is using in your MO scanner.
  Parameters:
    _string (simple string)
  Returns: - this will output, 40 different security assets within the tuple output (ie. 40 variable within the '') regardless of if you were including 40 assets, to be screened in the MO Screener or not. if you have less than 40 assets, then once the variables are assigned to all of the tickerIDs, the rest of the variables will be assigned "NA".

TickeridForLabelsAndSecurity(_includeExchange, _ticker)
  - this export function is used to output 2 tickerID strings. One is formulated to properly work in the request.security() function while the other is how it will appear on the asset name labels depending on how you form your assets string in the MO scanners input settings. Review the tooltip next to the setting, to learn how to form the string so that the asset name labels will appear how you want in the labels at the end of the line plots & the alert labels that would be triggered if the MO Scanner is set up to include Alert Trigger Labels.
  Parameters:
    _includeExchange (simple bool)
    _ticker (simple string)
  Returns: - this export function is used to output 2 tickerID strings. One is formulated to properly work in the request.security() function while the other is how it will appear on the asset name labels depending on how you form your assets string in the MO scanners input settings. Review the tooltip next to the setting, to learn how to form the string so that the asset name labels will appear how you want in the labels at the end of the line plots & the alert labels that would be triggered if the MO Scanner is set up to include Alert Trigger Labels.

PercentChange(_startingValue, _endingValue)
  - this is a quick export function to calculate how much % change has occurred between the _startingValue and the _endingValue that you input into the export function.
  Parameters:
    _startingValue (float)
    _endingValue (float)
  Returns: - it will output a single percentage value between 0-100 with trailing numbers behind a decimal. If you want, only a certain amount of numbers behind the decimal, this export function needs to be put within a formatting function to do so. Explained in the MO Scanner INTRO VIDEO.

PrintedBarCount(_time, _barCntLength, _bcPmin)
  - This export function will outfit the percentage of printed bars (that occurred within _barCntLength amount of time) out of the MAX amount of bars that potentially COULD HAVE been printed. Iexplanation in the MO Scanner INTRO VIDEO.
  Parameters:
    _time (int)
    _barCntLength (int)
    _bcPmin (int)
  Returns: - Gives 2 outputs. The first is the total % of Printed Bars within the user set time period and second is true/false according to if the Printed BarCount % is above the _bcPmin threshold that you input into this export function.
Versionshinweise:
v2

Added:
Normalize(_source, _minimumLvl, _maximumLvl)
  - Normalizes series with unknown min/max(unbounded) using historical min/max. ]
  Parameters:
    _source (float)
    _minimumLvl (int)
    _maximumLvl (int)
  Returns: - Outputs your same _source, but now the value will MOSTLY stay between the minimum and maximum values you set in the variables (ie. if the source you input is an RSI...the output is the same RSI value but instead of moving between 0-100 it will move between the max and min you set)

Rescale(_source, _oldMin, _oldMax, _newMin, _newMax)
  - Rescales series with a known minimum & maximum. Use this when the scale of the _source to rescale is known (bounded).
  Parameters:
    _source (float)
    _oldMin (int)
    _oldMax (int)
    _newMin (int)
    _newMax (int)
  Returns: - Outputs your _source, but now the value will only move between the minimum and maximum values you set in the variables

Updated:
PrintedBarCount(_time, _barCntLength, _barCntPercentMin)
  - This export function will outfit the percentage of printed bars (that occurred within _barCntLength amount of time) out of the MAX amount of bars that potentially COULD HAVE been printed. Explanation in the MO Scanner INTRO VIDEO.
  Parameters:
    _time (int)
    _barCntLength (int)
    _barCntPercentMin (int)
  Returns: - Gives 2 outputs. The first is the total % of Printed Bars within the user set time period and second is true/false according to if the Printed BarCount % is above the _barCntPercentMin threshold that you input into this export function.
Versionshinweise:
v3

Added:
LabelSizes(barCnt, lblSzRfrnceInput)
  - This export function sizes your Alert Trigger Labels according to the %Printed BarCount value keeping in mind the smallest relative reference size you input into your script settings.
  Parameters:
    barCnt (float)
    lblSzRfrnceInput (string)
  Returns: - outputs 2 variables. The 1st is assigned to the AssetNameLabel and the 2nd is assigned to the AlertTriggerLabel
Versionshinweise:
v4

Added:
RCIAVG(_rciAmt, _rciSMAlen, _close, _interval, _outerMostRangeOfOscillator)
  - To get this RCI Avg (Rank Correlation Index Average), 20 different RCI calculations occur...all of which contain different Lookback Lengths which are not adjustable. Length values used are from 180-2000. All of these RCI's are AVERAGED together to make up the final RCI Avg. Though the RCI Lengths are not adjustable, the amount of RCI's that make up the Avg are. If select 1 the Length will be 180. If select the MAX of 20, the Lengths will start at 180 and increase in systematic intervals until the 20th RCI used in the Avg is at a Length of 2000.
  Parameters:
    _rciAmt (int)
    _rciSMAlen (int)
    _close (float)
    _interval (int)
    _outerMostRangeOfOscillator (int)
  Returns: - Outputs a single RCIavg value (that is an Avg of multiple RCI values) that will oscillate between (-)_outerMostRangeOfOscillator to (+)_outerMostRangeOfOscillator

Updated:
RCI(_rciLength, _close, _interval, _outerMostRangeOfOscillator)
  - You will see me using this a lot. DEFINITELY my favorite oscillator to utilize for SO many different things from timing entries/exits to determining trends.
  Parameters:
    _rciLength (int)
    _close (float)
    _interval (int)
    _outerMostRangeOfOscillator (int)
  Returns: - Outputs a single RCI value that will oscillate between (-)_outerMostRangeOfOscillator to (+)_outerMostRangeOfOscillator
Versionshinweise:
v5

Updated:
PercentChange(_startingValue, _endingValue)
  - this is a quick export function to calculate how much % change has occurred between the _startingValue and the _endingValue that you input into the export function.
  Parameters:
    _startingValue (float)
    _endingValue (float)
  Returns: - it will output a single percentage value between 0-100 with trailing numbers behind a decimal. If you want, only a certain amount of numbers behind the decimal, this export function needs to be put within a formatting function to do so. Explained in the MO Scanner INTRO TO LIBRARY FUNCTIONS video.

PrintedBarCount(_time, _barCntLength, _barCntPercentMin)
  - This export function adds up the amount of printed bars within the last (user defined) amount of minutes out of the TOTAL possible amount of bars that COULD HAVE printed within the same span of time. Explanation in the MO Scanner INTRO TO LIBRARY FUNCTIONS video.
  Parameters:
    _time (int)
    _barCntLength (int)
    _barCntPercentMin (int)
  Returns: - Gives 2 outputs. The first is the % of Printed Bars within the user set time period and second is true/false according to if the Printed BarCount % is above the _barCntPercentMin threshold that you input into this export function.

A Trader's Edge
Pine Bibliothek

In echter TradingView-Manier hat der Autor diesen Pine-Code als Open-Source-Bibliothek veröffentlicht, so dass andere Pine-Programmierer aus unserer Community ihn weiterverwenden können. Ein Hoch auf den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Publikationen verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie diese Bibliothek nutzen?

Kopieren Sie die folgende Zeile und fügen Sie sie in Ihr Skript ein.