Page 1 of 1

How to count candles with a range at a specific time?

Posted: Mon Apr 26, 2021 12:25 pm
by DMax
I don't have enough knowledge to make a script. How to tie a calculation to a specific clock? I need to find a range at specific hours. At 00:00, 06:00, 19:00.

Calculation code:

Code: Select all

ngap = cum(n > end ? 0 : n >= start and (high - low) > 900 ? 1 : 0)
Display code:

Code: Select all

+ iff(Ng,"\n" + "00:00 : " + tostring(ngap) + "\n",na) 
+ iff(Ng,"\n" + "06:00 : " + tostring(ngap) + "\n",na) 
+ iff(Ng,"\n" + "19:00 : " + tostring(ngap) + "\n",na)
Sorry, I tried to find a solution to my question, but I could not, I do not have enough knowledge. Thank you for your help!