[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Help with adding histogram to my code.



PureBytes Links

Trading Reference Links

r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );

m1 = MACD( r1, r2 );
s1 = Signal( r1, r2, r3 );
MACDhist = m1 - s1;

Plot( ml - sl, "MACD Histogram", ParamColor( "Histogram color", 
colorBlack ), styleNoTitle | ParamStyle( "Histogram style", 
styleHistogram | styleNoLabel, maskHistogram ) );


You get the whole code when you display the AB Macd and edit the formula...

best regards

professor77747 a écrit :
>
> I want to compare the histogram of one bar with the histogram of tne
> next bar.
>
> Something like this.
> Condition=histogram()> Ref(histgram(),-1);
>
> However, I don't know what to use for to get the histogram value for
> each bar.
>
> I have tried several different codes, but they do not give me the
> correct results.
>
> This is one sample which doesn't get the results that I want.
> Hist1 = MACD2 - Sig;
> Hist2 = Signal() - MACD();
> Hist3 = abs(Hist1);
> Hist4 = abs(Hist2);
>
> Buy2 = Ref(Hist4, -1) > Hist4;
>
> As you can see, I am not a programer and don't know what I am doing. I
> have the rest of the program, but I need to add this one change.
>
> Thanks,
> Tom
>
> _
>
>  



------------------------------------

**** 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/