Basic indicator questions
Author: FuriousThug
Creation Date: 9/17/2008 1:44 AM
profile picture

FuriousThug

#1
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
profile picture

Eugene

#2
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.
profile picture

FuriousThug

#3
Thanks a bunch!!

FT
profile picture

FuriousThug

#4
Another one:

How do I invert Williams %R?
profile picture

Eugene

#5
Williams %R is close to an inverted version of Stochastic indicator.