September 4, 2018 at 12:56 am #48055
The indicator takes the highest closing price of the previous 22 trading days and subtracts the current low. This is then divided by the highest 22 day close, and then multiplied by 100. In Optuma, we can use the HIGHESTHIGH() function to recreate the indicator in our scripting language:123456//Get the 22 day highHiClose = HIGHESTHIGH(CLOSE(), BARS=22, INCBAR=True);//Calculate the VIXFix((HiClose-LOW()) / HiClose)*100
This can then be added to your toolbox (New > Script Tool), making sure that it is applied to a New Tool View – meaning it will be added in a window below the price chart with it’s own scale, much like an RSI or MACD. Once saved, this can then be applied from the right-click menu or custom toolbar button just like any other tool.September 4, 2018 at 1:02 am #48059
The Williams Accumulation / Distribution formula is:
As a script, we can do this in a Show View:123456bp1 = HIGH() - OPEN();sp1 = CLOSE() - LOW();hl1 = HIGH() - LOW();(bp1 + sp1) / (2 * hl1)
August 13, 2019 at 1:53 am #54267Michael
- This reply was modified 4 years ago by Darren.
- Topics: 4
- Replies: 7
- Posts: 11
A paper at http://docs.mta.org/dow-award/2015-amber-hestla-barnhart.pdf shows that adding a moving average to the VIXFix can be useful as a timing tool. Of course, adding an MA to an indicator in Optuma is simple to do.August 13, 2019 at 1:55 am #54269
Thanks Mike. The VIXFix formula above can also be combined with the Pivot() function to highlight significant peaks, which tend to correspond to price lows:12345678//Get the 22 day highHiClose = HIGHESTHIGH(CLOSE(), BARS=22, INCBAR=True);//Calculate the VIXFixVF1=((HiClose-LOW()) / HiClose)*100;//Get Pivot highsPIVOT(VF1, TYPE=High, MIN=20)
Workbook attached for both US and ASX sector data:
- This reply was modified 1 year ago by Darren.
You must be logged in to access attached files.November 25, 2022 at 9:22 pm #69831
- You must be logged in to reply to this topic.