Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do you produce an XMIM chart with the MEAN and 2 STDs above/below as constant lines?

chart constant mean std xmim
0
Posted

How do you produce an XMIM chart with the MEAN and 2 STDs above/below as constant lines?

0

%graph.back.color: “black” %graph.linetype: “MEAN” double_dash %graph.linewidth: “MEAN” 3 %graph.plot.color: “MEAN” “red” %graph.axis.color: “MEAN” “red” %graph.scalemin: “MEAN” -20 %graph.scalemax: “MEAN” 25 %graph.viewport: “MEAN” “0 0 100 100” %graph.linewidth: “2STDabove” 3 %graph.plot.color: “2STDabove” “blue” %graph.axis.color: “2STDabove” “blue” %graph.scalemin: “2STDabove” -20 %graph.scalemax: “2STDabove” 25 %graph.linewidth: “2STDbelow” 3 %graph.plot.color: “2STDbelow” “green” %graph.axis.color: “2STDbelow” “green” %graph.scalemin: “2STDbelow” -20 %graph.scalemax: “2STDbelow” 25 LET ATTR myMean = average from 59 days before SPX last_data_day to SPX last_data_day of 1 value % move of Close of SPX # this says grab the mean of the daily % moves for the last 60 days LET ATTR my2STD = standard_deviation from 59 days before SPX last_data_day to SPX last_data_day of 1 value % move of Close of SPX # this says calculate 1 STD using the last 60 days of daily % moves SHOW price_spx: Clos

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.