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

[amibroker] Re: Which Occurred First



PureBytes Links

Trading Reference Links


try this:

A=LastValue(HighestSinceBars(OR60High,H,60));
B=LastValue(LowestSinceBars(OR60Low,L,60));

if(A>=B)
 Plot(OR60High ,"H",3,1);
else
 Plot(OR60Low ,"L",2,1);


walt

--- In amibroker@xxxxxxxxxxxxxxx, "John" <jea55129@xxxx> wrote:
> 
> Hello,
> 
> I am trying to find out which occurred first, the 60 min. HHV or 60 
> min. LLV. 
> I tried using a iif here 
> A=HighestSinceBars(OR60High,H,60);
> B=LowestSinceBars(OR60Low,L,60);
> D=IIf(A>=B,Plot(OR60High ,"H",3,1),Plot(OR60Low ,"L",2,1));
> 
> but both pivots get plotted. Any thoughts?
> I am using the deDateTime Plugin.
> 
> tia,
> 
> John
> 
> MarketOpen = 093000;
> MarketClose = 161500;
> MarketHours = deFlagTimeRange(MarketOpen, MarketClose);
> FirstBarOfDay = deFlagFirstBarOfDay(MarketOpen);
> LastBarOfDay = deFlagLastBarOfDay(MarketClose);
> enumMarketHours = BarsSince(FirstBarOfDay);
> 
> // First 60 minutes of Opening Range
> 
> 
> OR60Low = deTimeRangeLLV(L,MarketOpen,103000);
> OR60High = deTimeRangeHHV(H,MarketOpen,103000);
> OR60Median = (OR60High+OR60Low)/2;
> A=HighestSinceBars(OR60High,H,60);
> B=LowestSinceBars(OR60Low,L,60);
> D=IIf(A>=B,Plot(OR60High ,"H",3,1),Plot(OR60Low ,"L",2,1));
>  
> 
> Plot(C,"C",1,64);
> 
> //Plot(OR60Low ,"L",2,1);
> //Plot(OR60High ,"H",3,1);
> //Plot(OR60Median,"",4,1);





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/