Based on your question, I assume that your formula is:

buy = condition13 + other conditions;

What are the other conditions?  Is there an interaction between condition13 and 
other conditions?  You haven't provided enough information.

Bill

----- Original Message ----- 
From: "professor77747" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, October 26, 2007 12:24 PM
Subject: [amibroker] MACD Histogram


>I have tried to use the difference in the MACD Histogram from one day 
> to another, but it is not working correctly.
> 
> Hist1 = MACD() - Signal();
> Condition13 = Hist1 < Ref(Hist1, -1);
> 
> What I would like to do is use Condition13 as one of the conditions to 
> buy or sell. If the Histogram is less than the day before, the conditon 
> would be met.
> 
> However, I find that several times the conditions are met, but I do not 
> get the signal. The formula works when I eliminate this conditon.
> 
> What am I doing wrong. I don't have much programming experience as you 
> can tell.
> 
> Thanks,
> Tom
> 
> 
> 
> 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 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
> 
> 
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.15.10/1091 - Release Date: 10/24/2007 
> 2:31 PM
> 
>

Reply via email to