Optuma Forums › Optuma Scripting › Larry Williams indicators
Tagged: VIXFix
- This topic has 4 replies, 2 voices, and was last updated 2 months ago by
Darren.
-
AuthorPosts
-
September 4, 2018 at 12:56 am #48055
Darren
- Topics: 73
- Replies: 923
- Posts: 996
Whilst we have the Williams %R and Ultimate Oscillator built in to Optuma it’s possible to add others using the scripting language. For example, the VIXFix indicator.
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)*100This 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.
1 user thanked author for this post.
September 4, 2018 at 1:02 am #48059Darren
- Topics: 73
- Replies: 923
- Posts: 996
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)-
This reply was modified 4 years ago by
Darren.
August 13, 2019 at 1:53 am #54267Michael
- 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 #54269Darren
- Topics: 73
- Replies: 923
- Posts: 996
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.
Attachments:
You must be logged in to access attached files.
November 25, 2022 at 9:22 pm #69831Darren
- Topics: 73
- Replies: 923
- Posts: 996
The VIXFix tool is now available by default in the software, without the need to add it using a formula:
https://help.optuma.com/kb/faq.php?id=1251
1 user thanked author for this post.
-
AuthorPosts
- You must be logged in to reply to this topic.