Checking for High and low Breakout for a particular date

#1
Hi All,

I am new to amibroker. I was trying to code for an explorer where i cud get high and low of a paticular date. which i want to hard code and check that high and low breakout whenever it happens and in the explorer the results come.
below is the code: But it is not working..not givin any results even though teh high and low of 18th had been broken. i was running it for 19th october on 5 mins preiodicity. Pls advise.
_SECTION_BEGIN("HighLow");

// AFL to read Close price on 14/June/2017/
// Datenum calculated as being
//(10000 * (2017 - 1900)) + (100 * 6) + 14 = 1170614

H1 = ValueWhen(DateNum() ==1181018, High);

L1 = ValueWhen(DateNum() ==1181018, Low);

HBO=(C>H1 AND L<H1);
HRV=(C<H1 AND L>H1);
LBO=(C<L1 AND L>L1);
LRV=(C>L1 AND L<L1);

Filter=HBO OR HRV OR LBO OR LRV;


_SECTION_END();
 

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?