Questions tagged [amibroker]

Amibroker is a financial software for portfolio-level system design, testing and validation. It has its own scripting language AFL.

75 questions
0
votes
1 answer

Export tick data when using Amibroker 6.3, 32 bit in Windows 11

When I used Amibroker 6.3 32 bit in Windows 10, I can export Tick data easily. But now when I run Amibroker 6.3 32 bit in Windows 11, I only received end-of-day (EOD) data although I want to export tick data. I tried to change Amibroker's…
Mi To
  • 1
  • 1
0
votes
1 answer

AFL: Compare current close with previous high

I'm new to AFL. I want to check if the current candle close is greater than the previous high but I'm experiencing the following error. Can you help me in fixing this: if ((lowma > minHighPrice) AND (Close[0] > High[-1])) Error 10: Subscript out of…
0
votes
1 answer

Is there a way to use the calling bar reference inside a Ref function

When we do a Ref(var1, -5) we get the value of array var1 from 5 bars ago. For example lets say we are at bar 100 looking back using ref. Ref(HHV(H, rangeStoredinBarNumber100), -5); value of array rangeStoredinBarNumber100 of bar number 95 is used…
sud1234
  • 1
  • 1
0
votes
0 answers

find longest line between 2 bars without any in between bar intersection in amibroker

I am looking AFL code WITHOUT using LOOPS to find longest line between 2 bars without any in between bar intersection. See picture links in comment below, it explains the problem clearly. code for high to high and low to low. In high to high…
sud1234
  • 1
  • 1
0
votes
1 answer

Month function and its understanding in Amibroker code

me = Month(); me1 = Ref(me, -1); MFC = me != me1; BSMFC = BarsSince(MFC)+1; Can someone help me understand this piece of code?
MVP_Script
  • 123
  • 5
0
votes
1 answer

need help in Amibroker AFL code when i trying to compare Close candle value and MA Line value

i'm coding a simple indicator condition: when close price is higher MA50, MA144 and MA200 desire: draw a shape up arrow but when applied source code as below, it's wrong i'm a newbie, i'm appreciate with your help! _SECTION_BEGIN("test"); MA50 =…
0
votes
1 answer

How to Receive Arguments from Telegram User through Telegram Bot in Afl Amibroker?

I found how to send message in amibroker through telegram bot, but I don't found anyone discussing how to receive arguments from user. Is it possible to receive Telegram User Argument using Amibroker Afl?
RWN
  • 3
  • 1
  • 4
0
votes
1 answer

ho to print or export the dates for the values indicated by the arrows

for the code at http://read.pudn.com/downloads160/sourcecode/math/719693/Exploration/Gordon%20Rose%20(617).afl__.htm how to get the dates where the red arrow i.e higher highs and green arrow i.e low lows to be displayed /listed in interpretation…
0
votes
1 answer

how can i read data from other desktop application

I have created application in c# for auto trading purpose I want to connect my application to amibroker software to catch buy/sell signal generated by afl from amibroker to my application.. to execute order to my broker terminal. I have tried…
0
votes
1 answer

Need help in Amibroker AFL code when I hard code previous days to scan it works fine but when I get it by a function it gives wrong result

I am trying to get the High and Low for N number of days where N is the days when InnerCandle formed. from that day to till day High Low. Code works fine when I put Days hardcoded but when I get it by function, it returns all bars High Low. Below…
K K
  • 13
  • 4
0
votes
1 answer

What will be the AFL version of these line of pine script

src = source i.e close, per id predefined variable a = 0. a := per*src+(1-per)*nz(a[1],src)
neel paul
  • 1
  • 2
0
votes
1 answer

How to get this breakeven formula working?

I have this formula used in backtesting for break-even trades. activation_floor_array = 1.02*EMA(Close, 50); ApplyStop( stopTypeLoss, stopModePercent, 0, True, False, 0, 0, -1, ActivationFloor=activation_floor_array ); When I run it, I get an error…
user3848207
  • 3,737
  • 17
  • 59
  • 104
0
votes
0 answers

Need Help: Syntax Error, unexpected FUNCTION in amibroker AFL

I am trying to solve this code but I am not getting what's wrong with the code. I am getting "Syntax Error, unexpected FUNCTION" This is common error but not supposed to be there and because of that error I am getting 5 more errors in the…
0
votes
1 answer

Unable to debug c# dll project with an external app in Visual Studio 2019 Community edition 16.7.2

This project is an "amibroker plugin" developed in C# using kriasoft's amibroker .NET SDK . I have "build" my plugin and it works fine when I test it in a "Console project". But when I try to debug it with external app (Amibroker.exe) visual studio…
0
votes
1 answer

simple ORB 15min template - plotting wrong signals

I am new to amibroker , just purchased it the last month . I am trying to make a basic ORB 15min breakout . where we buy at high of 15min / short at low of 15mins (without waiting for the candle to close) and exiting the position at end of day . i.e…
Fudgster
  • 43
  • 1
  • 7