Chart setting in daily and weekly chart

my qiery is simple...i can make a daily candle study for particular script....but when i use same script in weekly chart in new chart,,,, same daily candle study appear.. i want daily chart study and weekly chart study differently....can any one suggest the solution for it?

@ahmedmemon1 you will get better results if you post your code. That way we can see what you have done, and perhaps help out.

Also, a better description of what you are doing and what is “wrong” in your results would help us understand what your code issue is.