How to record the buy/short signals using static variables in amibroker AFl and use it as reference to sell/cover? I have an AFL which generates fainting signal & I want to trade with that only. The signals will be keep on be changing. I am able to execute the autobuy/autoshort in intraday...
Using this on the Daily chart in ThinkorSwim. Would like to convert below Thinkscript to Amibroker (AFL) to match exactly as shown on the attached chart of Apple (AAPL) from closing date of 01/14/22.
input Lookback = 10;
def LowMove = Lowest(Low, Lookback);
def HighMove = Highest(High...
is there any way to export the dates of Higher Highs and lower lows displayed on the screen by the below code to excel or csv if not then to atleast display them in the interpration window.?
if(hh[i+fvb] AND H[i+fvb]<HighMargin) PlotText("HH",i+fvb+dxhh,H[i+fvb]+dyhh,colorWhite,colorDefault)...
Dear forum,
I need help in exporting nifty 1 minute data to hourly OHLC data. I am not a programmer, so please excuse me if it looks stupid. Currently I am using the code below.
Thank you again.
M
fmkdir( "C:\\AmiBackupD" );
Buy = Status( "barinrange" );
//if we want to export data for a...
Hello,
I am trying to write formula for Hurst Exponent in afl. I am looking out for solution where i need store return data for particular range of period. Lets say we have 100 bars but i want to store return data for bar no. 50 to bar no.75 and then in second array from bar no. 76 to bar no...
Respected members,
1. I wana make AFL exploration for extraction of weekly HL range ( of last 10 weeks ). Then i will use excel to get average of these 10 HL value that i can later use for targeting price levels.
2. I would like to request for a buy / sell on Weekly MACD. But in MACD i...
Below is a basic Pivot Code which I use for day trading in Ami. Now the issue is, the pivot lines are drawn only till the current candle which becomes bit difficult to comprehend during live market. Was looking for help if anyone can advise on below.
Since Pivot lines remain static for the...
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...
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...
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...
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")...
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...
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...
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
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
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...