viewer405

Expansion Contraction Library

Library "ExpansionContraction"
Library for Expansion Contraction Indicator, a zero-lag dual perspective indicator created by Brian Latta based on Jake Bernstein’s principles of Moving Average Channel system.

calc(shortLookback, longLookback)
  Calculates Expansion Contraction values.
  Parameters:
    shortLookback: Integer for the short lookback calculation, defaults to 8
    longLookback: Integer for the long lookback calculation, defaults to 32
@return Returns array of Expansion Contraction values

stdevCalc(positiveShort, negativeShort, positiveLong, negativeLong, stdevLookback)
  Calculates standard deviation lines based on Expansion Contraction Long and Short values.
  Parameters:
    positiveShort: Float for the positive short XC value from calculation
    negativeShort: Float for the negative short XC value from calculation
    positiveLong: Float for the positive long XC value from calculation
    negativeLong: Float for the negative long XC value from calculation
    stdevLookback: Integer for the standard deviation lookback, defaults to 500
@return Returns array of standard deviation values

trend(positiveShort, negativeShort, positiveLong, negativeLong)
  Determines if trend is strong or weak based on Expansion Contraction values.
  Parameters:
    positiveShort: Float for the positive short XC value from calculation
    negativeShort: Float for the negative short XC value from calculation
    positiveLong: Float for the positive long XC value from calculation
    negativeLong: Float for the negative long XC value from calculation
@return Returns array of boolean values indicating strength or weakness of trend
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.