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

Re: [amibroker] Problem putting value from BarsSince into Exploration Column



PureBytes Links

Trading Reference Links

Hello,

Peak returns VALUE of the peak, it does not return "1" on peak and zero otherwise
as would be required by BarsSince function.
For what you are after you would need to use PeakBars function instead;
BarsSinceB = PeakBars(H,ZigSens,1);

http://www.amibroker.com/guide/afl/afl_view.php?name=PEAKBARS


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "mdwlucas" <mdwlucas@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, December 30, 2003 11:31 AM
Subject: [amibroker] Problem putting value from BarsSince into Exploration Column


> Hi,
> 
> I have written an exploration and I would like to put values 
> returned by BarsSince into a Column in the Exploration Results. I 
> have:
> 
> BarsSinceB=BarsSince(Peak(H,ZigSens,1));
> .
> .
> .
> .
> AddColumn(BarsSinceA,"BarsSinceA");
> 
> It runs OK but all I ever get for BarsSinceA is 0.00. Any 
> suggestions?
> 
> Thanks,
> 
> Martin.
> 
> 
> 
> 
> 
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> 
> Yahoo! Groups Links
> 
> To visit your group on the web, go to:
>  http://groups.yahoo.com/group/amibroker/
> 
> 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/ 
> 
> 
> 

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/amibroker/

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/