Below is my code generates a buy signal if Previous Day High is crossed.
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...
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...
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...
I have Created Excel File for Download Nse Equity,Index,Future and Option Bhav Copy Files and import to Amibroker Database.
Kindly Download this file from here : https://drive.google.com/open?id=1p-rsn8X2kqSFFSzPkHaGTphiiNNG_Wy2 .
Video Help File ...
Hi AFL folks,
I am looking for an AFL code in this strategy :
In a 75 minute candle, If 5 - minutes supertrend Indicator is below the 75 minute candle, and 5-minute RSI indicator value is between 32 and 50 - then it is sureshot BUY signal.
In a 75 minute candle, If 5 - minutes supertrend...
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:
I am using writing to file function:
if ( LastValue(Buy1) == True AND alreadyopenbuy1 == "" )
I want to add time limit to it:
startTime = 091500; // start in HHMMSS format
endTime1 = 152900; // end in HHMMSS format
timeOK1 = tn >= startTime AND tn <= endTime1;
I tried using...
I have a supertrend AFL formula in loop can any expert help in converting it into array:
function SuperTrend(lenATR, width)
nATR = ATR(lenATR);
pAvg = (H+L) / 2;
upperBand = pAvg + width * nATR;
lowerBand = pAvg - width * nATR;
isUpTrend = True;
dn = DateNum()...
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...
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.
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?
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...
I have purchased licensed version of amiquote and still i have unregistered amibroker, now I have some problem, so it is because of unregistered amibroker or there is some mistakes in my settings.
first I can not start download I got an error, I have version of 3.23 amiquote licensed version...
I need help to fix the attached afl file. The buy arrow keeps on coming even during the sell signal.
Can someone help me to fix this? when I backtested it on nifty spot data (5mins) it showed results as below
am I doing something wrong? Please help to fix it ? feedback...
I am looking for help with my system developed using Amibroker. The system is a positional system with 15 min timeframe and will trade futures. The initial tests are giving good results which is warranting to further fine tune it and if the results are encouraging then would go...