PowerLanguage equivalent for PineScript na(x)?

Questions about MultiCharts and user contributed studies.
fltngpnt
Posts: 1
Joined: 14 Jun 2022

PowerLanguage equivalent for PineScript na(x)?

Postby fltngpnt » 22 Jun 2022

Hi all,

I'm a relative newbie to PL and wondering if there's a function equivalent to the na(x) (NotANumber boolean) function found in PineScript, or if there's some quick and easy way to code one. My searches in the Keyword Reference and here haven't been very fruitful.

Thanks!

User avatar
Kate MultiCharts
Posts: 279
Joined: 21 Oct 2020
Has thanked: 5 times
Been thanked: 65 times

Re: PowerLanguage equivalent for PineScript na(x)?

Postby Kate MultiCharts » 28 Jun 2022

Hi fltngpnt,

There's no NaN or na() function in Poweranguage I'm afraid.

User avatar
ABC
Posts: 665
Joined: 16 Dec 2006
Has thanked: 121 times
Been thanked: 380 times
Contact:

Re: PowerLanguage equivalent for PineScript na(x)?

Postby ABC » 29 Jun 2022

fltngpnt,

you can usually walk around that and replace this functionality with custom code in PowerLanguage or even remove it completely. What approach to choose depends on the code you are trying to translate.

Regards,

ABC


Return to “MultiCharts”