I've started over with NinjaScript programming and have a few questions about an indicator I'm currently on.
I want to store the close price of every bar of the whole chart and compare them. To compare them, I want to view a timespan of 60 minutes and compare these 60 close prices. If there are 5 close prices who are the same, I want to put out an alert.
My ideas on that:
I know how to compare and how to put an alert. But I don't know how I can store data and compare them in different timespans. Can you help me there? Would be glad.
Thank you very much in advance.
Max
Comment