Current volume for 1 min candlestick period and sorting


Category:
0
0

Good Evening,

Currently using this watchlist script I found somewhere to show current volume for 1 min candlestick periods:

https://pastebin.com/5KghzzQA

However, when sorting the column on the watchlist, it gives odd results. Is there a better way to write this script or a way to correct the sorting issue? Thank you.

RESOLVED
Marked as spam
Posted by (Questions: 3, Answers: 3)
Asked on May 4, 2018 1:28 pm
136 views
0
Private answer

The code you linked to is not intended to work in a custom watchlist column. If it works at all, that explains why your results are “odd”.

The proper way to code this is:

plot data = volume;

And you must set the aggregation period of that column to 1 min.

Marked as spam
Posted by (Questions: 37, Answers: 4117)
Answered on May 4, 2018 3:02 pm
0

Thank you, works perfectly.

( at May 4, 2018 6:04 pm)