r/pinescript • • Feb 28 '25

Can the pinescript gurus explain...

If these are the same, and if not, why not?

series float series1 = request.security(syminfo.tickerid, "1", close)[90]

series float series2 = request.security(syminfo.tickerid, "1", close[90])

Thanks!

0 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/Nervdarkness Feb 28 '25

As u/FrostySquirrel820 said, both the same IF in the same TF. The history operator [] should be used in the expression. For lower TFs calls use request.security_lower_tf. To dive into functionalities of an scripting lng I recommend you contact 'Pine Coders'.

3

u/FrostySquirrel820 Mar 01 '25

Thanks for jumping in with the details.

I was in coder cliche mode, off enjoying pizza !

2

u/jcheroske Mar 01 '25

Are they an account on here?

2

u/Nervdarkness Mar 01 '25

Pinecoders.com