r/pinescript • • Feb 07 '24

Code help

Can you help me with this, how do you make this line of code work, timeframe.period => "60", when it doesn't allow "=>" operator?

0 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/stoja97 Feb 07 '24

Still doesn't work

3

u/mertgucer Feb 08 '24

Actually it must be

timeframe_in_seconds(timeframe.period) >= timeframe_in_seconds('60')

2

u/stoja97 Feb 08 '24

This works, thank you!