I am new to Amibroker. I want to code the following: Current Bar's Close should be greater than the HHV of prev 10 Bars. I tried:
_SECTION_BEGIN("C10B");
Buy = High > Ref(HHV(Close,10),-1);
Sell = Low < Ref(LLV(Close,10),-1);
Buy OR Sell;
_SECTION_END();
However, it doesn't work. Any suggestions? Thanx for ur help.
_SECTION_BEGIN("C10B");
Buy = High > Ref(HHV(Close,10),-1);
Sell = Low < Ref(LLV(Close,10),-1);
Buy OR Sell;
_SECTION_END();
However, it doesn't work. Any suggestions? Thanx for ur help.