PureBytes Links
Trading Reference Links
|
Hi,
Does it help you ?
Best regards
//MACD WITH HULL
P = ParamField( "Price field", -1 );
Period1 = Param( "Period1", 9, 1, 100, 1 );
Hull1 = WMA( 2 * WMA( P, int( Period1 / 2 ) ) - WMA( P, Period1 ), int(
sqrt( Period1 ) ) );
Period2 = Param( "Period2", 18, 1, 100, 1 );
Hull2 = WMA( 2 * WMA( P, int( Period2 / 2 ) ) - WMA( P, Period2 ), int(
sqrt( Period2 ) ) );
Plot(Hull1, "H1",colorBlue);
Plot(Hull2, "H2",colorGreen);
Plot( ml = MACD(Period1 , Period2 ),
StrFormat(_SECTION_NAME()+"(%g,%g)", Period1 , Period2),
ParamColor("MACD color", colorRed ), ParamStyle("MACD
style")|styleOwnScale );
--- In amibroker@xxxxxxxxxxxxxxx, "binjobingo" <binjobingo@xxx> wrote:
>
> I am trying to wite a macd with Hull but the Macd is comong
> something different
>
> Hull MA (9) - Hull MA (18)
>
> I tried the afl this way please point out the mistake
>
> _SECTION_BEGIN("MACD WITH HULL");
> MAV1=P = ParamField( "Price field", -1 );
> Period = Param( "Period", 9, 1, 100, 1 );
> Hull = WMA( 2 * WMA( P, int( Period / 2 ) ) - WMA( P, Period ), int(
> sqrt( Period ) ) );
>
>
>
>
> MAV2=P = ParamField( "Price field", -1 );
> Period = Param( "Period", 18, 1, 100, 1 );
> Hull = WMA( 2 * WMA( P, int( Period / 2 ) ) - WMA( P, Period ), int(
> sqrt( Period ) ) );
>
>
>
> r1 = Param( "MAV1", 9, 2, 200, 1 );
> r2 = Param( "mav2", 18, 2, 200, 1 );
>
>
> Plot( ml = MACD(r1, r2), StrFormat(_SECTION_NAME()+"(%g,%g)", r1, r2),
> ParamColor("MACD color", colorRed ), ParamStyle("MACD style") );
>
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
*********************************
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|