afl

  1. A

    Help needed regarding plotting static horizontal lines w.r.t option chain strikes

    Hello, Can anyone help me out regarding plotting of static horizontal lines on amibroker. Example, if i want to plot horizontal line on NIFTY charts w.r.t it's fixed option strikes, e.g. 10000,10050,10100,10150,10200 and so on (given range of 10000 to 10200, with increment of 50 points) Thanks...
  2. B

    High Breakout Strategy

    Hi , Below is my code generates a buy signal if Previous Day High is crossed. _SECTION_BEGIN("LongHighBreakout"); lastDayHigh = TimeFrameGetPrice( "H", inDaily, -1 ); todaysOpen = TimeFrameGetPrice("O",inDaily,0); cond1 = C < MA(C,13); cond2 = C < MA(C,50); cond3 = Ref( L, -1 ) > lastDayHigh...
  3. V

    Need Simple Candle Pattern Exploration AFL

    Hello AFL Experts, Need Amibroker Afl for the Below Candle Pattern Exploration, Please Help Me. I am not an IT Or Coding Professional. 1. Bullish Engulfing (ONLY BODY SHOULD CONSIDER) Previous Candle - Should be Bearish(Red) Candle Next Candle - Should be Green Candle, This Candle Body...
  4. R

    How to execute the order immediately after 'Cross' instead of after the close of the candle in AFL

    How to execute the order immediately after 'Cross' instead of after the close of the candle in AFL. My Current AFL has a function which performs execution of order after the moving average crossover, but the order gets executed only after the closure of the current candle. Instead of that, I...
  5. 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?
  6. V

    AFL how to ignore signals generating in previous candles.

    Below is my code: st = SuperTrend(10,3); _x = TimeFrameGetPrice("H", inDaily, -1); _y = (_x * 1.009); _z = TimeFrameGetPrice("H", inDaily ); cond1 = Cross(C, st); cond2 = _z > _y; Buy = cond1 AND cond2; Sell = Cross(st, C) ; Plot(_y, "PDaysH", colorGold,styleDashed,0,0,0,0,0)...
  7. V

    Amibroker AFL Isnull

    I am trying to code supertrend formula in array: BASIC UPPERBAND = (HIGH + LOW) / 2 + Multiplier * ATR BASIC LOWERBAND = (HIGH + LOW) / 2 - Multiplier * ATR FINAL UPPERBAND = IF( (Current BASICUPPERBAND < Previous FINAL UPPERBAND) OR (Previous Close > Previous FINAL UPPERBAND)) THEN...
  8. V

    Static variable

    Dear Friends, I am trying to remove excess signals in amibroker. I am aware of exrem function but cannot use that as I have to set allowsamebarexit to true. Thus, trying to achieve the same using static function. However, not getting desired results. Below is my code: _SECTION_BEGIN("Price")...
  9. A

    Avoiding Short trade if a Buy is active

    In the strategy for Intraday trades below, I need only one trade active in a day. For eg. If the buy trade is active, then short trade for that day shouldn't be triggered. Similarly, if the short trade has been triggered first in the day, then the buy condition shouldn't be triggered until the...
  10. K

    Find High of first 15min candle

    Hello Everyone, I want to find high of the first 15 min candle. I am using the below code. bi = BarIndex(); arrayitem = SelectedValue(bi) -bi[0]; firstbarHigh = High[arrayitem ]; This code is giving me the close price for the 1st candle. I want High price of the first 15min candle. Plz...
  11. A

    Amibroker - Get Study (Drawings on chart) Array on Exploration

    Hello, I have drawn few study lines on the chart and want to get its data in Exploration. I am not getting this data when i use the 'Study' function and try to add it in Exploration using 'AddColumn' function. Request help to resolve this. Thanks! Anuma
  12. A

    Place orders from Amibroker charts with a click

    Hello, Is there a way in Amibroker to draw Entry, Stop Loss and Target lines and then with a click of a button place the same order as Cover or Basket order in the trading account? Can someone give an AFL or an idea to make such AFL? Thanks Anuma
  13. trendtrade

    AFL Modification Work - Payment Basis

    Hello I have an AFL which is generating automated buy and sell trade signals, at the completion of the price bar. The problem is that if it finds 5 different stocks which meets the criteria, then it generates 5 signals for each of them simultaneously at the very same second. All I need to do...
  14. P

    derive IV for options

    Hi, Is there any AFL which can reverse engineer option price with help of black scholes model and provide Implied Volatility. Regards, Paresh
  15. M

    AFL to NEST Integration

    I am looking for mechanism by which 1. AFL will publish the information which can be subscribed by third party program 2. Subscriber written in.net/python will use the published information and will place the orders in NEST (ad not the Nest Plus). Can somebody please guide on both above points?
  16. H

    AFL required for Variable Moving Average

    Hi, I am new to AFL writing and to forum as well, i am here in hope to get support, I am working on variable Moving Average(VMA), i need help to develop AFL for the same. on crossover generating signals accordingly. can someone help.
  17. B

    Amiboker Rotational Momentum Code Help

    I got the Rotational Momentum code from below URL. http://dtr-trading.blogspot.com/2016/09/momentum-rotation-system-amibroker-code.html I modified the above code a bit & 'Backtested' a bit as per below logic: 1) Calculate the PositionScore on End of Month 2) The Next trading day (Start of...
  18. 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
  19. 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...
  20. 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...