PowerLanguage equivalent for PineScript na(x)?

Questions about MultiCharts and user contributed studies.
fltngpnt
Posts: 9
Joined: 14 Jun 2022
Has thanked: 2 times

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: 575
Joined: 21 Oct 2020
Has thanked: 7 times
Been thanked: 144 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: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 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

fltngpnt
Posts: 9
Joined: 14 Jun 2022
Has thanked: 2 times

Re: PowerLanguage equivalent for PineScript na(x)?

Postby fltngpnt » 14 Jul 2022

Thank you for the replies!


Return to “MultiCharts”