I'm trying to work through creating the following study:
Find the standard deviation of the last ten CLOSES; then, find the value for two variables and plot:
SDHigh=High of last bar + (SD*2);
SDLow=Low of last bar - (SD*2);
ie, just plotting a band that's two SDs (calculated on the last ten closes) from the highs and lows of each bar respectively.
I've found the standard deviation formula and have tried to write the output to an array, but I'm screwing up somewhere. Values don't appear on the study (or in a separate pane, either).
Ideas? I suspect this is really simple, but I'm just not conversant enough in the EFS language to write it properly.
Any help or insights appreciated!
Find the standard deviation of the last ten CLOSES; then, find the value for two variables and plot:
SDHigh=High of last bar + (SD*2);
SDLow=Low of last bar - (SD*2);
ie, just plotting a band that's two SDs (calculated on the last ten closes) from the highs and lows of each bar respectively.
I've found the standard deviation formula and have tried to write the output to an array, but I'm screwing up somewhere. Values don't appear on the study (or in a separate pane, either).
Ideas? I suspect this is really simple, but I'm just not conversant enough in the EFS language to write it properly.
Any help or insights appreciated!
Comment