I'm brand new to WL5.1 and I have a few questions I haven't been able to find answers to in the provided documentation:
1) How do I (if possible) save a custom indicator to use/apply to charts (or do I have to add the indicator script to any screen/filter/backtest syntax on any strategy I choose to run?)?
2) Is there a way to overlay indicators? For example, I'd like to know how to plot bullpower and bearpower on the same pane with a zero line.
Thanks.
FT
Size:
Color:
QUOTE:
1) How do I (if possible) save a custom indicator to use/apply to charts (or do I have to add the indicator script to any screen/filter/backtest syntax on any strategy I choose to run?)?
If the indicator is created "on the fly" (WealthScript Guide > Custom Indicators > How to: Create a "semi-formal" Custom Indicator), then yes - you have to add the code to any strategy that depends on it.
On the other hand, it's possible to create an indicator library (e.g.
Community.Indicators and
TASCIndicators) using Visual Studio or SharpDevelop. This way, the indicator becomes available to Rule-based strategies and any Strategy w/o having to include the indicator "body".
QUOTE:
2) Is there a way to overlay indicators? For example, I'd like to know how to plot bullpower and bearpower on the same pane with a zero line.
Yes, BullPower and BearPower can be combined in your code:
CODE:
Please log in to see this code.
Whether a drag-and-dropped indicator is displayed in its own pane is defined by a specific property in the indicator's code. This is how, for instance, all the 3 MACD indicators in the
Community.Indicators library land in the same pane when dropped onto the chart.
Size:
Color:
Thanks a bunch!!
FT
Size:
Color:
Another one:
How do I invert Williams %R?
Size:
Color:
Williams %R is close to an inverted version of Stochastic indicator.
Size:
Color: