AmiBroker formula Language

#61
Afl for 52 week High low

Dear Murthy / Karthik/ Saji
& all members;

Hi & Happy new year/ pongal/ sankrant.
I like to plot
1). 52 week high & low price in Amibroker with different colors. &
2). To analyse & print for the condition
Today's close > 105% yesterday's close > 105% previous day's close
&
Today's volume > 110% yesterday's volume.

I tried to print the Quick analysis but not possible.

So please help me to write the afl's.
Thanks.
 
R

ratan jain

Guest
#62
Hello Friends,

I have started using amibroker 4.8 since last 2 months now.

I need to know, how to write an afl that will give me alerts on ema crossover of 50 and 200 period on 1 minute charts.

I tried to go through the help section in amibroker, but its quite complicated.

Any help will be appreciated.

best regards,
Ratan jain
 
#63
Thanks for your input,

I however think that Amiroker should have had a proper manual for AFL rather than leaving us nonprogrammers to figureout what te hell does this code mean.

Regards,

HM
Hi HM,

Although its true that knowing a programming language will be an added advantage to work with AFLs, I don't think its mandatory to learn one. If you still want to get a brief intro about programming lang., try learning C Programming language for some time. Just grasp the basics. That will be sufficient to learn AFLs.

Praveen.
 

beginner_av

Well-Known Member
#64
hi hmandeel,
press F1 from amibroker and the manual comes up...if u want to download pdf for printing, go to amibroker.com, click on download link on top, scroll down to get the 4mb file
 
#65
Hi all,

I need help in writting an AFL if possible, where these signals are generated:

Buy signal is generated when
MA 4 < MA17 < EMA34
and MACD is positive and RSI above 50
Sell signal is generated when
MA 4 > MA17 > EMA34
and MACD is negative and RSI below 40

MA is moving average
EMA Exponential Moving average

thx in advance,

with regards,

Sunil
:)
 
#66
Hi members,
I would be gratful if the an afl is given for the following :

Scan data for :

MAV20 >=500000 AND CLOSE >20 AND CLOSE > SMAC10 AND CLOSE > SMAC20
AND
HIGH <HIGH1 AND HIGH1 <HIGH2
AND
FORCE3 <=0 AND FORCE13>=0
AND
ADX20 >30

Regards
 
#67
Hi members,
I would be gratful if the an afl is given for the following :

Scan data for :

MAV20 >=500000 AND CLOSE >20 AND CLOSE > SMAC10 AND CLOSE > SMAC20
AND
HIGH <HIGH1 AND HIGH1 <HIGH2
AND
FORCE3 <=0 AND FORCE13>=0
AND
ADX20 >30

Regards
Hi,

I can understood only your first and last line in the given conditions. Can you explain the middle two lines clearly?

Praveen.
 
#68
Hi all,

I need help in writting an AFL if possible, where these signals are generated:

Buy signal is generated when
MA 4 < MA17 < EMA34
and MACD is positive and RSI above 50
Sell signal is generated when
MA 4 > MA17 > EMA34
and MACD is negative and RSI below 40

MA is moving average
EMA Exponential Moving average

thx in advance,

with regards,

Sunil
:)
Hi Sunil,

Sorry for the late reply.

I hope you might have got the AFL. If not, let us know, we will provide it.

Praveen.
 
#69
Hi,

I can understood only your first and last line in the given conditions. Can you explain the middle two lines clearly?

Praveen.
Hi Praveen,
Thanks for the prompt response.

high<high1 and high1<high2-to indicate that the stock must experience 3 days decline /pull back within the context of uptrend. High is today high, high1 is yesterday high and high2 is day before yesterday high.

Secondly , Force3= FI-3MA
Force13= FI- 13MA, where
FI=volume(today)*close(today)-(Close(yesterday))

Eagerly waiting for the code.


Regards:)
 
#70
Hi Praveen,
Thanks for the prompt response.

high<high1 and high1<high2-to indicate that the stock must experience 3 days decline /pull back within the context of uptrend. High is today high, high1 is yesterday high and high2 is day before yesterday high.

Secondly , Force3= FI-3MA
Force13= FI- 13MA, where
FI=volume(today)*close(today)-(Close(yesterday))

Eagerly waiting for the code.


Regards:)
Hi,

If you want its corresponding AFL, please see it below. But I strongly doubt about the logic behind your BUY conditions. Eg. comparing Close against MA 10 and 20. I didn't understand what that "Force" formula is calculating. Also I doubt over the precedence of operator '*' in force1 = Volume * Close - Ref(C, -1)

Code:
High1 = Ref(High, -1);
High2 = Ref(High, -2);

force1 = Volume * Close - Ref(C, -1);
force13 = force1 - MA(C, 13);
force3 = force1 - MA(C, 3);

Buy = MA(V, 20) >= 500000 AND Close > 20 AND Close > MA(C, 10) AND Close > MA(C, 20)
AND
High < High1 AND High1 < High2
AND
Force3 <= 0 AND Force13 >= 0
AND
ADX(20) > 30;
Regards,
Praveen.
 

Similar threads