Is it possible in ignition to use trend in templates or parameterized popups, where this trend is changed with the parameter is use (indirect tag history)?
Yes. You have to use the tag history binding style that accepts an expression for the tag list. (Unless you have my Integration Toolkit, the only practical expression is a property binding to a property that is structured correctly.)
You mean using property with a value of the path of tag whose history will be shown? Or something like this?
Yes, but not just a tag path. It has to be a list of objects (even if only one) where the objects have this documented structure:
I don't know If it is applicable or not but can i use a value parameter (number) and add it in tag history path without using an array parameter? Like ramp{number} and so on
Not there in the history binding, no. But you can construct the array property with an expression as you see fit.
As noted above, you cannot construct the necessary structure in a simple expression without my Integration Toolkit. (And even then, you would not use python syntax in an expression.)
Your expression must be a simple property reference pointing at where you've constructed the proper array. (Typically with a script transform.)
I did it using an array property with the three values alias,path and aggregate and bind it with expression and a variable number changed with a numeric element