Help!

Linus

Active Member
#1
Amibroker AFL experts- please help out my friend Ravi - here I quote his request -

Quote

I read your blog about scrips that were hitting 20-day high and may be good buy candidate. However, I think how many times they hit 20-days high is also of great importance. For that matter, the frequency of any condition is important.

I'm facing a problem with amibroker afl. I dont know whether you are familiar with amibroker or not, but guess you might be able to find out the logical formula. I was trying to create 2 exploration in amibroker, first one to look for scrips that are hitting x-day high/low more frequently in the past few days and the second one to search scrips that open with a gap and close at circuit and again this must have occurred frequently in the past. In both cases, I was unable to implement the "frequency" thing. In the second exploration, I have put condition which looks for stocks which open with gap for consecutive 2 days. It can be of better use if the condition of frequency is applied rather than consecutive days.I found a link where similar thing discussed, but could not make it how to get that working.

Here is the link: http://www.purebytes.com/archives/amibroker/2001/msg05492.html

Could you please help me in this regard.

Regards

Ravi S Ghosh

Unquote

Thanks,

s :) s
 
#2
Dear Ravi,

First loop the HHV or LLV for x days algorithm for n days,
get result stored in a variable.
Increment the variable for each HHV or LLV(which ever u need)

Finally print it out(or include it in list)

Hope it is same u need

[Get the number of times a scrip hit 20 day high in history of 365 days]

:)

I will try to code it if I am free today!!!
 
#5
Dear Ravi,

First loop the HHV or LLV for x days algorithm for n days,
get result stored in a variable.
Increment the variable for each HHV or LLV(which ever u need)

Finally print it out(or include it in list)

Hope it is same u need

[Get the number of times a scrip hit 20 day high in history of 365 days]

:)

I will try to code it if I am free today!!!
I have posted the issue here

http://www.traderji.com/amibroker/2...cks-opening-gap-consequently-eg-jai-corp.html

http://www.traderji.com/amibroker/20088-finding-stocks-hiting-x-week-high-low-consistently.html

I tried to create the basic afl without the frequency thing included. Please have a look. It might be easy to write the code with the context clearly defined.
 

Similar threads