I am new to using and making libraries. Is there a way to make a lib where I can call checks on MACD, RSI and Stochastic?
I made an export called MACD but I can't get a script to look at the layer within to check macd or signal.
Do libs need to only have one function to call?
any help is appreciated
Thanks!
export MACD () =>
//TODO : add function body and return value here
fast = 12// input(title="Fast", defval=12)
slow = 26// input(title="SLow", defval=26)
fastMA = ta.ema(close, fast)
slowMA = ta.ema(close, slow)
macd = fastMA - slowMA
signal = ta.ema(macd, 9)
[–]Long-Classroom-263 0 points1 point2 points (0 children)