afl ami broker

  1. K

    Adding stoploss and target to trading system

    Hi I'm new to afl coding. I have a trading system. And i want to add stoploss and target. Code is taken from algomojo. And i also want to use algomojo smart option module over that code later. Requirement is - stoploss - when buy trade is ongoing and we are in loss and candle close below ema...
  2. B

    Need help to plot lastvalue of supertrend on candle...

    I am trying to plot lastvalue line on supertrend but it is not showing the lastvalue line on candle , so plz correct my code and help me to get lastvalue of supertrend on candle. CODE _SECTION_BEGIN("My first trading Strategy"); _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g...
  3. A

    Pinescript to AFL

    Hi Friends, I am learning amibroker, and trying to convert the below pine script code into afl but not getting the correct result Can anybody help me to convert this to amibroker // INPUTS // st_mult = input.float(3, title='SuperTrend Multiplier', minval=0, maxval=100, step=0.01) st_period...
  4. P

    anyone have AFL which can find best moving avg crossover combination for each symbol ?

    anyone have AFL which can find best moving avg crossover combination for each symbol and display returns at along with it?
  5. K

    Looking to connect with AFL programmer (Mumbai/Ahmadabad)

    Hello, 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. Kanak
  6. G

    Back Test results are blank for my AFL

    Hi guys, 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)...
  7. P

    MACD crossover AFL to send an email ALERT RT not working

    Hi All, 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...
  8. I

    How is this Back Test Report of AFL?

    Hi All, 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. -Dnyanesh
  9. P

    weekly/monthly pivot points on daily charts

    Hi, Want to plot weekly & monthly pivot points on daily charts data. Can anyone have afl for this? Regards, P
  10. M

    sell cover end of trading session. need help

    Hello All, 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 )...
  11. M

    AFL Codding Help

    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...
  12. T

    AFL for volume of all the advancing stocks

    Hello everone, I have coded an AFL for sum volume of all advancing stocks. I am strugglig with getting the right output. Please help. 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); Plot (...
  13. P

    renko chart afl with atr14 required

    Hi, Anyone have renko chart afl based on ATR14 .. not the one with manual brick size ? Regards, Paresh
  14. P

    why this code not working

    Hi, Can you help me why below code not working & why? _SECTION_BEGIN("MAX Moving Avg broke"); n=0; function fun_name(C,LB ) { LB=IIf(IsNull(LB),1,LB) OR IIf(LB<=0,1,LB); R=ValueWhen(Cross(MA(C,LB),C),HHV(H,LB),1); result=IIf(C>=R,LB,0); return result; } for( i = 0; i < BarCount; i++ ) {...
  15. P

    highest days of EMA broke today

    Hi, 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. Regards, Paresh
  16. S

    AFL for marking days first 15 mniute hikenashi cendal

    Hello forums mate i need a afl code which can marking days first 15 minute (9.15 to 9.30) high and low by line. i have that in my mt4.
  17. U

    Amibroker chart afl help!!!

    HI, Could some one help me how to get these consolidated up bars (Green) and Down bars (red) thanks
  18. M

    What is wrong with this code

    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...
  19. Logitech

    Help for Bollingar Band Scanner.

    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...
  20. S

    Need afl for effective strategy...

    hello friends, 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. Strategy is:- TEMA crossovers for 3 and 9 periods along with CCI value. signal buy= 3 period TEMA is greater than 9...