how to change windowpricemin & windowpricemax ?

 

Hello!

Please advice on how to change these values or somehow else squeeze chart. Here is what I am trying to achieve.

I apply template to a chart and my resistance\support levels look just fine on Daily Chart, but when I change timeframe to let say 1H, windowspricemin and windowspricemax are changed, so the scale of the chart. I would like to run a script that fits my chart as I need. I know which price must be set for min and max. Without a special function I must squeeze a chart with a mouse but that is a bother.

Thank you!

 
ns_k:
must squeeze a chart with a mouse but that is a bother.
You're going to spend weeks trying code something to change scale (if it's even possible in MT) and then give up. All for something that takes 2 seconds. That is a bother.