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

[amibroker] Which Occurred First



PureBytes Links

Trading Reference Links


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 --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/