I'm looking for someone to help with programming/customizing two of the default indicators.
More specifically I am looking to customize the following:
*** Williams %R - To help reduce the noise I need it to plot at specific levels ( 0, 25, 50, 75, 100 ) based on its value (<20, >=20 and <40, >=40 and <=60, >60 and <=80, >80 ) respectively. If possible I'd like it to have four configurable horizontal lines ( OB, SL, BL, OS ) included.
*** Moving Linear Regression - I need to add two configurable inputs (Avg and Avg Type ) to further average this MA. If possible Id like it have four lines in one study (MA Type, Input Data, Length, Avg, Avg Type).
I've been using Tradestation for 3+ years now and can program on my own with ease but I havent the slightest idea on how SC programming works.
You can draw horizontal lines easily on top of the Williams indicator. In the list of studies, find the one called "Horizontal Lines", and add this beneath the Williams study. To make it work, there a few things you need to change in the settings.
Firstly, change the Chart Region to the same number as the Williams study. Also, in the Based On box, change it to use Williams %R.
Then click on each of the Line Value parameters and enter the level that you want the line to appear at. Remember that the Williams indicator uses negative numbers, so enter -20 for example.
Finally, go the the Subgraphs tab. By default it is set to ignore everything but the first line, so if you have, say, 4 lines to be drawn, change the draw style to Line for the next 3 lines. Finally, you may want to change the default colours of the lines.
Hopefully this will provide a solution to your requirements for the Williams study.
The following user says Thank You to swandro for this post: