AFL writing guide for new user

Re: Help about Message Box

Hi DM,
Thanks and congrats on starting a thread like this. I have gone through almost all the posts in thread.
I have one query about my trading system. I want a message box to be flashed and a beep when buy or sell condition is satisfied. Say for example if Reliance becomes buy then it should flash message like this Reliance is buy. It should also flash the time at which this signal was generated.

Thanks in advance.

Cheers :!!!!!
Hi,

You can use PopupWindow() method - as explained here : http://tradinganalysis.co.in/AmiBroker_Help/index.html?popupwindow.html

Hope this helps.

Regards,
CA
 

krab

Active Member
Hi DM,

I need your help, i want an afl which can scan RSI and stochastic in overbought and oversold and i can change the parameters, for example i want to find out stocks which has below 20 in RSI and stochastic as well as above 80 or 90. please provide the afl, thanks in advance.
 
Hi DM, I'm new to the group and to ALF, and am so glad to have found this thread. I've just finished reading through the thread than have learned much more than I culled from several hours wrestling with AMIBroker's documentation. Thank you very much for your efforts. --Kirk
 
great topic. thanks for the effort.

one topic if i could suggest:
when you move the mouse around, there is a pop up window to show price info, how do you add information there for display?


another issue i am having is to find pivot bar that's is the low/high in +/- n days (n is param). not if there is easy clean way with array solution.

thanks again
 
Hi All,
Can somebody convert this into an amibroker afl..
Scan for stocks closing above 21 Week EMA with volume 4 times the weekly volume.
Also plot the 21 week EMA on Daily chart.
 
Hello Friends,
I started this thread because I did lot of googling but I have not yet found any good site that helps "How to write AFL". I know there is a site contains AFL Library but it is not sufficient. I have a computer background, so I understand how the process goes, I can write very basic AFL also. But I want active participation of seniors, those have very good knowledge of writing AFL. I know many members are here with good knowledge of AFL. Please help new users as well as intermediate user.

Happy Trading
Debarghya Mukherjee
sir,
pl make afl for following conditions.

chart 1 min.
1. high and low of selected 30 minstandard time interval (9.30 to 10.00) then (10.01-10.30)
should be display.
2. buy aerrow only when current price cross on PRIVIOUS STANDARD HALF AN HOUR HIGH.
2. sell aerrow when current cross on PREVIOUS STANDARD HALF AN HOUR LOW.
3. signal should be on 1 min chart. with bip sound.
thanks
 

ethan hunt

Well-Known Member
Dear Mr.Debarghya Mukherjee,

Kindly help me in making an AFL as below:

Condition A (Eg: Ema crossover)
PREVIOUS DAY: Stocks meet Condition A in EOD charts.

Condition B (Eg: Break of Hi / Lo of previous day)
TODAY: Such short listed stocks to be scanned in Intraday Charts for break of previous day Hi / Lo (Condition B)

Is it possible to combine condition A & B in one AFL, so that the scanning is done TODAY in Intraday charts ?

Separate AFLs for Condition A & B can be made, but how to combine into one AFL as first condition is EOD & second is Intraday real time !

Thanks,
 

johnnypareek

Well-Known Member
Dear Mr.Debarghya Mukherjee,

Kindly help me in making an AFL as below:

Condition A (Eg: Ema crossover)
PREVIOUS DAY: Stocks meet Condition A in EOD charts.

Condition B (Eg: Break of Hi / Lo of previous day)
TODAY: Such short listed stocks to be scanned in Intraday Charts for break of previous day Hi / Lo (Condition B)

Is it possible to combine condition A & B in one AFL, so that the scanning is done TODAY in Intraday charts ?

Separate AFLs for Condition A & B can be made, but how to combine into one AFL as first condition is EOD & second is Intraday real time !

Thanks,
Hi,

On intrday data,


TimeFrameSet(inDaily);

u r ema crossover condition.

TimeFrameRestore();

plot(c,"",1,128);// This is bar chart on time frame u have selected

johnny
 

Similar threads