title: Pinecript : how can I get the max value of all the sma with length between 1 and i?
body: <p>I'm trying to write a script which would return the highest value of any moving average whose length is between 1 and a specified number i.e something that would work like this :
  maxMA = max(sma(close,1), ... , sma(close,i))
  Is there a way to do this ??</p>
  
  <p>Thanx</p>