AirshipPirate

Tosch Stacked EMAs (Fibonacci)

AirshipPirate Updated   
Library "Tosch_Stacked_EMAs (Fibonacci)"

stacked()
  Returns true if all EMAs are stacked, either way.

bullish()
  Returns true if the EMAs are stacked bullish, false otherwise

emas()
  Returns the EMA values for lengths 5, 8, 13, 21, 34, 55, 89
Release Notes:
v2 - added inputs for display of lines and coloring the bars
Release Notes:
v3
Added ema34 in array of returned EMA values
Release Notes:
v4
changed the colors of the lines and emphasized the 21 EMA as white dots
Release Notes:
v5

emas()
Returns the EMA values for lengths 5, 8, 13, 21, 34, 55, 89

stacked()
Returns true if all EMAs are stacked, either way.

bullish()
bearish()
Returns true if the EMAs are stacked bullish/bearish, false otherwise

bear_count()
bull_count()
Returns the number of stacked EMAs

bull_bool_array()
Returns the arrays of the true/false values if one EMA is below/above the next one
- bear:
- bull:
Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this library?

Copy the following line and paste it in your script.