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
진정한 TradingView 정신에 따라, 저자는 이 파인 코드를 다른 파인 프로그래머들이 재사용할 수 있도록 오픈 소스 라이브러리로 공개했습니다. 저자에게 박수를 보냅니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈 소스 출판물에서 사용할 수 있지만, 이 코드를 출판물에서 재사용하는 것은 하우스 룰에 의해 관리됩니다.