im trying to work out how to specify a local variable from a specific timeframe so i can use it later to trigger and alert
If possible without using request security
The normal macd and signal variables are working fine
here is what i have tried but they are not working ( im new to pinescript and have no idea what to do )
//@version=5
indicator(title="", shorttitle="", overlay=false ,format=format.price, precision=4)
macd = slowMA - fastMA
signal = ta.ema(macd, signalMACDlen)
macd15 = slowMA - fastMA, timeframe.period ('15')
signal15 = (timeframe.period ='15'), ta.ema(macd, signalMACDlen)
macd5(timeframe.period ='5') = slowMA - fastMA
Thanks for any help