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

[amibroker] Re: Plotting an interval´s condition



PureBytes Links

Trading Reference Links

This finds the hhv in a range, but is not plotted tilll after the 
second range cond is true. 


firstcum=BarsSince(Cum(1)==500==0);
lastcum=BarsSince(Cum(1)==700==0);
HHVbetweenn=IIf(lastcum,HighestSince(firstcum,H,0),0);
HHVbetweennval=ValueWhen(HHVbetweenn,HHVbetweenn);
Filter=1;
AddColumn(firstcum,"firstcum");
AddColumn(lastcum,"lastcum");
AddColumn(HHVbetweenn,"HHVbetweenn");
AddColumn(HHVbetweennval,"HHVbetweennval");
Plot(HHVbetweennval,"",4,4);
Plot(HHVbetweenn,"",4,4);
Plot(H,"",1,64);
Plot(ValueWhen(firstcum,H,1),"",7,4);
Plot(ValueWhen(lastCum,H,1),"",2,4);

peter.


--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> Now how do we get the Highest High value in the Range:
>  
> Rangestart=Cum(1)==500;
> RangeEnd=Cum(1)==606;
> Plot(C,"",colorBlack,styleBar|styleOwnScale); 
> Plot
(rangestart,"Start",colorYellow,styleHistogram|styleOwnScale|styleThic
k)
> 
> Plot
(rangeend,"end",colorYellow,styleHistogram|styleOwnScale|styleThick);
> barsINrange=IIf(Cum(1)>=500 AND Cum(1)<=606,1,0);
> Plot(barsINrange,"Bar # "+WriteVal(IIf(barsinrange > 0,Cum(1),0)),4
> 2|styleOwnScale); 
>  
>  
> -------Original Message-------
>  
> From: amibroker@xxxxxxxxxxxxxxx
> Date: Monday, April 07, 2003 17:39:03
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Plotting an intervalīs condition
>  
> Hello,
>  
> I thought that 
>  
> Plot(ValueWhen(Cum(1)>=607 AND Cum(1)<730,High,1),"cum value 1. 
swing top",7
> 2)
> would plot the high for the interval >=607 and <730, but 
apparently, it
> plots even beyond that (i.e. bar number > 730). Why is that?
> How would I have to formulate the AFL command if it were to plot 
JUST WITHIN
> this range, please?
> Markus
>  
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>  
>  
>  
>  
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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 
>  
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/i5gGAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/