Hi Joe,
thnx.
what problem i am facing is that while the writeif signal is coming
wrong; for the same indicator if i output the variable value directly
in exploration window it comes correctly. the colour change also is
coming right for few indicators and failing for some indicators.
date ran
BarCount does not represent number of bars in the DATABASE,
but in the ARRAYs in current execution.
The arrays have DYNAMIC size depending on zoom factor. That's why BarCount may
and will vary.
For example if you have 20 years of data and you are watching just
the last year
AmiBroker does not ne
I'm senior in age but not AFL skills, but regardless - your algo seems to work
for me if I scan
a watchlist, like Barron's 400 or equivalent.
I've seen other "more" senior guys/gals use this to get the results of the last
day no matter where you set the date range; and I get buys and sells on t
You, THE MAN!!!
Thanks
--- In amibroker@yahoogroups.com, "gp_sydney" <[EMAIL PROTECTED]>
wrote:
>
> Between two bars or two dates?
>
> If it's two bars, mask the section between the two bars and then use
> Highest and Lowest:
>
> bn = Cum(1)-1;
> marray = IIf(bn >= startBar AND bn <= endBar, ar
BB)
Buy4Indicator1=
addcolumn("Buy4Indicator1=<", Buy4Indicator1)
CC) No initialization is needed.
you can do a explore and it will give ur answer
DD) go and change ur preferences in your profile.
--- In amibroker@yahoogroups.com, "Shweta Shalini" <[EMAIL PROTECTED]>
wrote:
>
> Hi Enlightened AB
Hi Enlightened AB Pros,
if u get bugged with my elementary queries, pls execuse me...whole
nite broke my head and cudnt solve,hence back to spoon feeding:(
AA)i want to add to my exploration for how many days a continuos buy
signal is coming? i use tens of indicators and want to generate their
Hello,
To get the replies to your post only, go to the AmiBroker Yahoo Board and
search for your name. It will show you the threads where your name is present
and on clicking any message, you get the complete thread of that particular
message.
Cheers
Prashanth
- Original Message -
Hi Kim --
Yes, I agree that it is necessary to be able to understand, modify, and
create programs in afl in order to fully use AmiBroker. There will be an
extensive section on afl code -- how it works, how to program in it.
The section on setting up AmiBroker includes setting up and maintaining
Hello,
Not necesarily last N bars because you can scroll back to say first year
visible from those
20 years and then it would represent first N bars.
As for lookback - it is automatically calculated by AmiBroker based on
functions you use.
Use Tools->"CHECK" function in the AFL editor to find o
Hi Murthy,
thns for ur reply.
Ref ur BB reply, pls note that u have just given another name to my
buy variable which shows 1 when buy signal is generated.but that is
not my query.What i want it is to show for how many previous days the
buy signal is coming. for eg- that buy signal might be com
you said u had multiple indicators
so,
indicator_buy1=indicator code
indicator_buy2=indicator2 code
buy=indicator_buy1 or indicator_buy2
filter=buy
add column ...
--- In amibroker@yahoogroups.com, "Shweta Shalini" <[EMAIL PROTECTED]>
wrote:
>
> Hi Murthy,
>
> thns for ur reply.
>
> Ref ur
Thanks for your quick help Tomasz. So, BarCount represents the last N
bars, where N simply varies depending on the zoom factor.
I understand what you are saying with your example of the 20 years of
data. But also, I can certainly conceive of an indicator (or script)
that may want a "lookback" to b
Ok, thanks again. What you are saying is very clear. However, in my case
I am writing my own indicators that, for statistical reasons, may need
to look back into the price history an arbitrary amount of time. The
amount of time is a percentage of the available data in the database. I
am not usi
Tomasz
Thank you very much. I appreciate your help and the cut/paste code
snippet that i can use now.
Regards
Seede
--- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]>
wrote:
>
> Hello,
>
> Yes you can generate MAE/MFE in points and with any number of
decimal digits.
> App
Hi prash,
M/thnks.
solved the problem. as i was new to ambi(i still am) didnt know much
so the query.resolved same.
can u tell how to know if somebody has replied to ur post. i dont
want to recive all posts but just replies to my posts.
Rgds
--- In amibroker@yahoogroups.com, "Prashanth" <[EMA
Hi Seniors,
I am trying to develop an exploration using a collection of indicators
but somehow the exploration is gving wrong signal. While the indicator
values shows correct positive/negative values, the signal remains buy.
Even for many indicators the colour changes to red/green but somehow the
Hello,
Yes you can generate MAE/MFE in points and with any number of decimal digits.
Appropriate code looks as follows.
/* First we need to enable custom backtest procedure and
** tell AmiBroker to use current formula
*/
SetCustomBacktestProc("");
/* Now custom-backtest procedure follows */
Hello
I could not find any options to change the periodicity using AFL for
the backtester settings. Am i right or i am not looking at the right
spot. I amlooking at the user guide pdf file.
Appreciate ur input.
seede
I have what should be a simple question about BarCount but cannot get
a definitive answer from the AB documentation. FYI, I am working on
daily data.
What exactly does BarCount represent? The AB help says:
BarCount constant gives the number of bars in array (such as Close,
High, Low, Open, Volume
Thanks Graham.
--- In amibroker@yahoogroups.com, Graham <[EMAIL PROTECTED]> wrote:
>
> In the backtester advanced code create custom metric per trade using
> this calculation base
>
> MAEpts = MAE/100 * EntryPrice
>
>
> --
> Cheers
> Graham Kav
> AFL Writing Service
> http://www.aflwriting.com
Hi,
pls read again what i have queried.i dont need to make ten variables
for my buy signal ,i can just use operators to join into one. my
problem is regd erroneous results given by explorer.
rgds
--- In amibroker@yahoogroups.com, "murthysuresh" <[EMAIL PROTECTED]> wrote:
>
> you said u had mul
Hi,
pls read again what i have queried.i dont need to make ten variables
for my buy signal ,i can just use operators to join into one. my
problem is regd erroneous results given by explorer.
rgds
--- In amibroker@yahoogroups.com, "murthysuresh" <[EMAIL PROTECTED]> wrote:
>
> you said u had mul
seede,
Are timeframeset and timeframerestore what you're looking for?
Dan
--- In amibroker@yahoogroups.com, "murthysuresh" <[EMAIL PROTECTED]> wrote:
>
> Hello
> I could not find any options to change the periodicity using AFL for
> the backtester settings. Am i right or i am not looking at the
when u are troubleshooting code, try to divide and conquer. try to
see it if works with 1 indicator example. provide ur code example and
provide what result do you expect, what result that you got and why
you think it is wrong.
also include what version of amibroker that you are using.
--- In
the analysis windows uses the timeframe used in the parameters tab to
do the scan/explore/backtest. when using afl, there is obviously ways
to change the options in the paremeters tab except for "Periodicity"
i do not belive that timeframeset and timeframerestore is used when
you are using the a
Hello,
You can not change it from AFL because then you will get chicken-and-egg problem
(code is already running with built-in arrays being setup for given interval
and you
change it - so code has to re-initialize everything and start from the
beginning).
The interval can be only set from the o
Does anyone have some sample code Amibroker and MySQL code for a
interface with MySQL. I need to store the Fundamental data on a daily
basis for back testing.
RT
Hello
I am trying to force the custom backtester to trade at a predefined
price and predefined time. the buy signal is triggered based on time.
however backtester trades at the close price defined by the Buy
signal. there is something wrong in this code snippet that i cannot
figure out.
/* No
Hello,
Did you see this:
http://www.amibroker.com/odbc.html
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: "vikesneverdie" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 07, 2007 9:33 PM
Subject: [amibroker] AmiBroker & MySQL
> Does anyone have some sample cod
check http://www.amibroker.com/odbc.html
for details on how to use the odbc plugin. infact the example uses
mysql.
--- In amibroker@yahoogroups.com, "vikesneverdie" <[EMAIL PROTECTED]> wrote:
>
> Does anyone have some sample code Amibroker and MySQL code for a
> interface with MySQL. I need to
TJ,
I must have missed them some how ... What are the commands for changing system
& chart periodicity via OLE automation.
- Original Message -
From: Tomasz Janeczko
Date: Friday, September 7, 2007 3:00 pm
Subject: Re: [amibroker] Re: setparam and periodicity
To: amibroker@yahoogroups.c
What I meant is changing periodicity by loading the settings using
Analysis.LoadSettings().
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: [EMAIL PROTECTED]
To: amibroker@yahoogroups.com
Sent: Friday, September 07, 2007 9:40 PM
Subject: Re: [amibroker]
I'm definitely interested!
d
> -Original Message-
> From: amibroker@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Brown
> Sent: Friday, September 07, 2007 12:53 PM
> To: amibroker@yahoogroups.com
> Subject: Re: [amibroker] Re: Discussion about Params,
> hierarchical,
me too
--- In amibroker@yahoogroups.com, "dingo" <[EMAIL PROTECTED]> wrote:
>
> I'm definitely interested!
>
> d
>
> > -Original Message-
> > From: amibroker@yahoogroups.com
> > [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Brown
> > Sent: Friday, September 07, 2007 12:53 PM
> > To: ami
writeif only gives text for the last result in exploration (or
selectedbar in chart), it is not an array
you can use ASC("B") to get single letter array results, see help
files for how to use
--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com
On 07/09/2007, Shweta Shalini <[EM
Me three! Thanks a lot for offering!
Steve
- Original Message -
From: "murthysuresh" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 07, 2007 6:09 PM
Subject: [amibroker] Re: Discussion about Params, hierarchical, conditional,
tricks...
> me too
> --- In amibroker@yahoogroups.com, "
I'm a bit confused by your EnterTrade call. You have the last
parameter set to one, which is the position size variable. If the
price is more than one and PosSize is only one, then that would only
allow a fraction of a share to be purchased.
Regards,
GP
--- In amibroker@yahoogroups.com, "murthys
I frequently have trouble finding files and email in my PC.
Today I noticed that the only items in my recycle bin are items I put in it
today. Also I can not find emails that are fairly recent, evemn though the list
of items in the folders contain emails since I got the computer.
Anyone know of
@gp_sydney:
PositionSize in EnterTrade call is expressed in DOLLARS, not in shares.
@murthysuresh:
your code does not work because you do not call PreProcess/PostProcess
See
http://www.amibroker.com/guide/a_custommetrics.html
for correct coding.
Best regards,
Tomasz Janeczko
amibroker.com
Hello
Is there any example template for full low level backtester for AB. I
would like to start with a working example and break it down to
understand how the custom low level backtester works.
Appreciate your help
Seede
--- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]>
Seede,
Look in the files section here for the document "AmiBroker Custom
Backtester Interface.pdf".
Tomasz:
Yes, that's why a position size of one with a price of 1.2 would give
less than one share (or whatever is being bought).
I was also going to comment on the lack of Pre/PostProcess &
Update
Yes, i read it now and i changed my code and it WORKS!!
Thanks to GP and Tomasz. I now understand the backtester. its cool,
its fun and its flexible. and what a eye opener that document is. My
vote is for it to be either in the Knowledge base or User Knowledge
Base website. I was hunting
For the recycle bin, perhaps the storage capacity is set too low - check
properties section for settings. As for the e-mail messages, maybe this is
the answer - http://support.microsoft.com/default.aspx?scid=kb;en-us;312359
Bill
- Original Message -
From: Ara Kaloustian
To: AB-
Tomasz
Is there a way in which i can identify what timeframe the analysis
window is executing from AFL?
Seede
--- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]>
wrote:
>
> Hello,
>
> You can not change it from AFL because then you will get chicken-
and-egg problem
> (code i
looks kewl!!
On 9/7/07, Dennis Brown <[EMAIL PROTECTED]> wrote:
>
> Experienced AFL Scripters,
>
> I have completed coding a complete replacement set of AFL Param...()
> functions that save the parameters in files and allow hierarchical
> menus including conditional menus (like if different Para
Thanks for your interest.
I created and uploaded an Example AFL to the AmiBroker Library under
the name:
Flexible Parameter Layouts Version 2.0
Enjoy, and please give feedback for improvements.
Best regards,
Dennis
On Sep 7, 2007, at 12:53 PM, Dennis Brown wrote:
> Experienced AFL Scripters,
Hi
I need coding help to calculate the first hou trading range.
the followingcode does not work:
period=( TimeNum() >= 095400 AND TimeNum()<= 105500) AND(DateNum()
==LastValue(DateNum()));
u=HHV(H,period);
w=LLV(L,period);
Any help will be highly appreciated
thanks
47 matches
Mail list logo