ho trovato questa formula che segnala abbastanza bene il laterale (zone in grigio)se ti va, solospread, puoi implementarla nel tuo ts magari ne viene fuori qualcosa di interessante:
Var:newday1(false), mioopen(0), miomin(0), miomax(0), mioclose(0),BP(0);
Var:newday(false),giorno,azzera(0),sOpen ,sLow,sHigh,sClose,BPW(0),colore;
newday1=GetValues(days,1,mioopen,miomin, miomax,mioclose);
if newday=true then
BP=(miomax+miomin+mioclose)/3;endif;
newday=GetValues(weeks,1,sOpen,sLow,sHigh,sClose);
giorno=dayofweek;
azzera=iif(giorno<giorno[1],1,0);
if azzera=1 then BPW=(SHigh+SLow+SClose)/3;endif;
if c > bp and c>bpw then
colore= green;endif;
if c < bp and c<bpw then
colore= red;endif;
if c>bp and c<bpw then
colore=gray;endif;
if c<bp and c>bpw then
colore=gray;
endif;
if c>BP then colorbar(colore); else colorbar(colore); endif;
plotchart(BPW,0,black,solid,2);
PlotChart(BP, 0,red, solid, 3);
dovrebbe basarsi sulla formula del pivot in rapporto coi pivot settimanali