afl

  1. M

    Need help for Quantity managment.

    Hello All, I have placed the query for placing order from AFL amibroker. with the below conditions. 1) first order should be 1; 2) If any order exited by Stop loss or target (sell or cover) the quantity should be 1; 3) if the stoploss or target not hit then the queantity should be 2; way...
  2. T

    Fixing the first bar of the day as the first bar on Amibroker chart

    Hello, I trying to do this for a long time but have not been able to do it. I am posting this after unsuccessfully searching the internet. I want to fix the "first bar of the day" on the left hand side like the picture below and to have the new bars get added to it on the right side. So that...
  3. G

    Hi, can some one pls help me with a scale in algo in amibroker ?

    Hi fellow traders, i am trying to work a basic bollinger breakout system using an ATR multiple as SL. What i want to do is scale in 3 times if i get multiple buy signals before my ATR SL is hit. below is a copy of my code, will appreciate if someone could help me get the last part, i.e. scaling...
  4. 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 (...
  5. B

    Help needed in coding amibroker afl and back testing for payment

    Hi i have a strategy which i have back tested manually and visually, but now i want to test it with exact numbers for past 10 years of data of nifty intraday.. so looking for some1 who is really good at it.
  6. 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
  7. P

    stochastic RSI afl same as investing.com

    Hi, seen stochastic rsi (14,14,3,3) in investing.com...tried many codes from google for stochastic rsi afl but unable to find 1 which replicate same values as on investing.com stochRsi indicator. Can someone help with it. Regards, Paresh
  8. S

    Awesome Hull Trick AFL Needdd

    I need AFL for this HULL Trick (Sean bro trick) Requirements 4 indicators 1. Awesome indicator ( Default setting) 2. Bollinger Band (Default setting) 3. Hull Moving indicator ( change setting from 9 to 22) 4. EMA ( Change setting from 9 to 55) Time frame  15 min / 30 min for intraday ...
  9. R

    Need help with AFL for Exploration - Urgent

    Hello Everyone, I am new to coding and I have been struggling with a very basic requirement of mine. I need the AFL code for an exploration that will read "Bull" when the +DI crosses the -DI and ADX (range 14) is going above 25. Similarly to read "Bear" when the -DI crosses the +DI and ADX...
  10. 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++ ) {...
  11. 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
  12. frisky

    REQUEST - Just need an exploration for Supertrend (already AFL ready created by KelvinHand)

    Hi, I am sure there would be lot of experts out here who are well versed on coding. What I am proposing is to have an exploration to be implemented for already existing AFL which is created by "Kelvinhand". So, the main thing is , I am trying to establish/re-create a paid version AFL of...
  13. P

    not traded stock & missing quote afl required

    Hi, need below afl exploration 1. to search not traded stocks , last date of available data, no of days its not traded compared to today's date. 2. missing quote for stock, date ,symbol, when compared to index stock i.e. Nifty Pls share if you have afl. Regards, P.
  14. U

    Amibroker chart afl help!!!

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

    RKSV - Unlimited Online Trading - Part-2

    Oh! got it. It is the patch for windows 7. I have once installed that that patch, but after installing that NOW used to hang every now and then so reinstalled NOW without that patch. Since then, NOW working great!! :cool:
  16. D

    Position size afl help needed

    The system I am testing opens random number of positions every day (Long only), and closes at the end of the day (yesterday bought 4 stocks, today bought 10 stocks, etc.). I am trying to allocate the same % of equity to each position, but since the number of positions is different every day I am...
  17. A

    Help required - convert to Array Code

    hi, I am new to amibroker but know a little bit about C++. I tried coding the following. Amibroker always encourages coding using Arrays and its efficient as well in performance as well as its elegant. I would like to know how to code the following using Arrays and kindly request experienced...
  18. S

    looking for a good exit strategy

    Hello fellow traders, i have been a trader for a long time and i am creating a custom formula for myself in amibroker. i have been successful in creating a good entry strategy but i am looking for some suggestions from you guys for a good exit strategy as well. Reason is, the current exit...
  19. P

    AFL Renko Code

    I would like an adaptable code with renko bars, that slows down before trend change and also shows time-line below it. PS: I know Renko is normally not time based.
  20. LOVEENAJYOTHI

    Circular Reference thru StaticVarGet/Set.

    Is Circular Reference possible in AFL ? Tried StaticVarGet & Set , got desired results along with a lot of garbage AND utterly UnReliable in Live Trade bcoz everytime Explore/Scan/Backtest Button Clicked --> the AFL gives Different results each time. Sample codes: 1.Basic Code...