PureBytes Links
Trading Reference Links
|
Hi Terry,
my first attempt at varying the standard indicators so pls excuse my
lack of knowledge.
As I said, what I'm after is just the MACD histogram to display without
the signal line and macd lines visible. So my first question is how do I
turn them 'off', just leaving the histogram.
Then, overlay the stochastic D, if that's possible.
I tried just cut and pasting the 2 individual formulae (unchanged), but
only the Stochastic D displays
cheers and thanks
Dennis
periods = Param( "Periods", 15, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Dsmooth = Param( "%D avg", 3, 1, 200, 1 );
Plot( StochD( periods , Ksmooth, DSmooth ), _DEFAULT_NAME(), ParamColor(
"Color", colorCycle ), ParamStyle("Style") );
r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );
Plot( ml = MACD(r1, r2), StrFormat(_SECTION_NAME()+"(%g,%g)", r1, r2),
ParamColor("MACD color", colorRed ), ParamStyle("MACD style") );
Plot( sl = Signal(r1,r2,r3), "Signal" + _PARAM_VALUES(),
ParamColor("Signal color", colorBlue ), ParamStyle("Signal style") );
Plot( ml-sl, "MACD Histogram", ParamColor("Histogram color", colorBlack
), styleNoTitle | ParamStyle("Histogram style", styleHistogram |
styleNoLabel, maskHistogram ) );
Terry wrote:
>
> Post some code. Can't tell what you're doing wrong without it.
>
> --
> Terry
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx <mailto:amibroker%40yahoogroups.com>
> [mailto:amibroker@xxxxxxxxxxxxxxx <mailto:amibroker%40yahoogroups.com>] On
> Behalf Of Dennis
> Sent: Wednesday, June 21, 2006 06:15
> To: Amibroker
> Subject: [amibroker] MACD histogram with Slow Stochastic
>
> Can't achieve just the MACD histogram on it's own.
>
> Ideally I'd like to combine the histogram and slow stochastic in the one
>
> pane.
>
> Any clues?
>
> cheers
>
> Dennis
>
>
|