Welcome to the BEST forum for traders

Did you know we're sharing tons of exclusive content here?
Our community is growing quickly. Take a look around and say "Hello".

Days not returning from function

Jul 11, 2020 - 10:32 PM

Viewed 505 times

https://best-trading-indicator.com/community/bti/forums/4180/topics/17817 COPY
  • I have this for TSLA to get the number of days:

    days = security(NASDAQ:TSLA, D, barssince(start))

    But it does not return anything.

    When I try for other tickers like KRAKEN:ETHUSD it works fine. Why does it not work for TSLA?

    0
  • Hi

    What does it mean to return the number of days?
    Probably because KRAKEN:ETHUSD quotes 24/7 and TSLA 8/5

    Probably using the lookahead parameter would be smart

    Documentation: https://www.tradingview.com/pine-script-reference/v4/#fun_security

    0

    Dave - Helping traders becoming the best version of themselves
CONTENTS