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

[amibroker] Re: Please help on finding MIN/MAX between range.



PureBytes Links

Trading Reference Links

Anthony,

Thanks for the codes.  It did not exactly answer my question but it 
certainly lead me to the right direction.

--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> Does this Help:
> 
> Rangestart=3716;//bar number
> 
> RangeEnd=3750;//bar number
> 
> HHInRangeStart_RangeEnd = ValueWhen( Cum(1)== rangeEnd, HHV( High,
> rangeend-ValueWhen(Cum(1)== rangeStart ,rangestart)) );
> 
> LLInrangeStart_RangeEnd = ValueWhen( Cum(1)== rangeEnd, LLV( Low,
> rangeend-ValueWhen(Cum(1)== rangeStart ,rangestart)) );
> 
> Plot(C,"",colorBlack,styleBar|styleOwnScale);
> 
> Plot(rangestart==Cum
(1),"Start",colorYellow,styleHistogram|styleOwnScale|sty
> leThick);//Plots Vertical line at Range Start
> 
> Plot(rangeEnd==
> Cum
(1),"end",colorYellow,styleHistogram|styleOwnScale|styleThick);//Plot
s
> Vertical line at range End
> 
> Plot(HHInrangeStart_RangeEnd ,"Highest
> High",colorRed,styleHistogram|styleOwnScale);
> 
> Plot(LLInrangeStart_RangeEnd ,"Lowest Low
> ",colorRed,styleHistogram|styleOwnScale);
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sO0ANB/LIdGAA/ySSFAA/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/