Hi Thanks for the code.I saw one chart with Hull Ma's with 7/12 parameters in another Forum.It was two moving averages crossover system.Was looking good.
Will try & see Thanks Bimbo --- In [email protected], "reinsley" <reins...@...> wrote: > > > 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 [email protected], "binjobingo" <binjobingo@> 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") ); > > >
