I have been getting queries on converting strategies in to AFL via my network and need someone who has expertise in this area.
I am looking to get connected with AFL programmer or Meta Programmer to partner.
Please PM me or connect me on interactshah at gmail dot com.
I have written the below AFL for my strategy "2nd candle breakout" on 15TF. However, I'm getting incorrect Scan results and no Back Test results on Automatic Analysis. Please help.
_SECTION_BEGIN("Intraday Second Candle Range Breakout system");
SetOption( "InitialEquity", 200000)...
I've coded a simple MACD crossover AFL to send an email ALERT RT when the crossover happens to the upside/downside. And I have also changed the amibroker settings to send email alerts. I'm using True data downloader for RT data. But still, when the crossover happens the alerts are not...
Here is my AFL back test report . Could you please suggest if anything is wrong here.
I am getting K value of 0.24 and Profit Factor Over 2. What should be the minimum K value for consistent results. Used last 6 months of data.
I used fixed 50 Shares per trade as buying quantity.
I have a problem with exit trade at EOD end of trading session 11:00 PM. I am trying the following code.
tim=Param("Square off time ",230000,09000,240000);
StopLevel = Param( "Stop Loss (%)", 0.06, 0.01, 10, 0.01 );
TgtLevel = Param( "Profit target (%)", 0.25, 0.01, 10, 0.01 )...
I have AFL which is working fine for crude oil. out of 10 trades, 8 trades are targets hitting. I have code for place orders auto trades. the auto trade code is working fine with other AFL codes but the problem is in below algorithm the BUY and SELL Boolean value is not giving to IF condition...
I have coded an AFL for sum volume of all advancing stocks.
I am strugglig with getting the right output.
below is the code
a = Close < Open ;
b = Sum (Volume,a);
Buy = 0;
Filter = 0;
AddToComposite( b, "advol", "X" , 7);
advvol = Foreign("advol", "C", True);
Can you help me why below code not working & why?
_SECTION_BEGIN("MAX Moving Avg broke");
function fun_name(C,LB )
LB=IIf(IsNull(LB),1,LB) OR IIf(LB<=0,1,LB);
for( i = 0; i < BarCount; i++ )
I want to find how many max days EMA stock break today?
if C>EMA(5) is true & C<EMA(6) is false then afl should return 5 since close broke max of 5 days ema. this things should run in loop for 1 yr say 365 loops total
Can help me with this afl.
I am trying to code a simple breakout strategy in afl and this is my code
my logic is
if current close > highest close before 2 days buy and sell if current close < highest close before 2 days.
when backtesting (10 years data) this code nothing happens, no results. i dont know where i made...
Guys, I am trying to write a scanner to find stocks that have reached lower bollingar band with setting of bbandbot(C,200,2) on a 5 min chart.
below is the code That I have written which I think should work but for some reason when I scan nothing comes up in scanner, I'll appreciate if any...
i have been searching for afl i needed.
I got to know lots of concepts through this community.
I need help, if any one can help me in creating afl.
TEMA crossovers for 3 and 9 periods along with CCI value.
signal buy= 3 period TEMA is greater than 9...
Can any of you suggest me which one is the best afl for algotrading with MASTERTRUST. (its completeley automated. not like manual)
suggestions needed on afl for 1 min & 5 mins time frame algo trading
i found MASTERTRUST OFFER great..
kindly required inputs from u all...