week of month

 

Can anybody tell me how to code so my indicator can recognize the first to fourth week of the month?


Thank you.

 
Use TimeDay() and calculate.
 
Thanks a lot, phy.
Reason: