PureBytes Links
Trading Reference Links
|
Move the calculation of m1 and s1 outside (and before) the plot
statements. Then comment out (or delete) the plot statements for the
lines.
_SECTION_BEGIN("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 );
ml = MACD(r1, r2);
sl = Signal(r1,r2,r3);
//Plot( m1, StrFormat(_SECTION_NAME()+"(%g,%g)", r1, r2),
ParamColor("MACD color", colorRed ), ParamStyle("MACD style") );
//Plot( s1, "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 ) );
_SECTION_END();
--
Terry
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of Dennis
Sent: Thursday, June 22, 2006 00:18
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] MACD histogram with Slow Stochastic
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
>
>
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
http://groups.yahoo.com/group/amibroker/
amibroker-unsubscribe@xxxxxxxxxxxxxxx
http://docs.yahoo.com/info/terms/
|