martfhill

MHCustomSpotTradingLibrary

Library "MHCustomSpotTradingLibrary"

HMA(float, float)
  Parameters:
    float: _src price data
    float: _length Period
  Returns: Hull Moving Average

EHMA(float, float)
  Parameters:
    float: _src price data
    float: _length Period
  Returns: EHMA Moving Average

THMA(float, float)
  Parameters:
    float: _src price data
    float: _length Period
  Returns: THMA Moving Average

HullMode(string, float, float)
  Parameters:
    string: modeSwitch Hull type
    float: _src price data
    float: _length Period
  Returns: A Moving Average

start_Dates(int, int, int)
  Parameters:
    int: year
    int: month
    int: day
  Returns: Start Date

stop_Dates(int, int, int)
  Parameters:
    int: year
    int: month
    int: day
  Returns: Stop Date

f_print(string, int, int)
  Parameters:
    string: _text
    int: col
    int: row
  Returns: Nothing

showStats()

greenCandle()

redCandle()

getDecimals()

truncate()

toWhole()

toPips()

getMA()

getEAP()

barsAboveMA()

barsBelowMA()

barsCrossedMA()

getPullbackBarCount()

getBodySize()

getTopWickSize()

getBottomWickSize()

getBodyPercent()

isHammer()

isStar()

isDoji()

isBullishEC()

isBearishEC()

timeFilter()

dateFilter()

dayFilter()

atrFilter()

fillCell()
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.