Goodmorning, working with tick candles, I would like to ask if is possible to have an indicator that counts the number of the candles created every defined period of time (1 minute for example) and if is possible also how many are green and how many are red. Thanks and best regards, Ivan
Adapting the code to count on (x) ticks timeframes red and green candles for intervals of 10 minutes instead of 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
same10=floor(openminute/10)
ifsame10<>same10[1]orOpenHour<>OpenHour[1]then// the openhour part is not unnecessary between same10=5 and same10=0 , it is there in case of ovn with 2 consecutive candles of same same10 minute category but for 2 different hours
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue