#samewindow#line 0 nodraw#line 1 solid greenfunction init(){ setInitCandles(10);}function calc(){line[0]=close;line[1]=line[0][-findMin(line[0], 10)];}
можно вычислить 0-findmax(-line[0] ) получим тоже самое findmin(line[0] )
line[0]=-close;line[1]=line[0][-findMin(line[0], 10)];
#samewindow#line 0 nodraw#line 1 nodraw#line 2 solid green#line 3 solid greenfunction init(){ setInitCandles(10);}function calc(){line[0]=high;line[1]=low;line[2]=line[0][-findMax(line[0], 10)];line[3]=line[1][-findMin(line[1], 10)];}
#samewindow#line 0 solid greenfunction init(){ setInitCandles(10);}function calc(){line[0]=low[-10, 0];}