Instead of just blindly copying code, read the description of each function, in
the user guide, so that you can try to understand what the code is doing.
The documentation for these is not very clear. But, PeakBars/TroughBars are
based on Zig. Zig uses the second argument as the minimum percenta
Thanks Joris, this is what I was looking for - short and simple piece of code.
Regards
Richard
--- In amibroker@yahoogroups.com, "Joris Schuller" wrote:
>
> For ZIGHL afl go to (amongst others): Joris Schuller; Sat 11/07/2009 10:25
> AM
>
> pkbars=PeakBars(H,ZigPerc); //if you use the ZIGHL fo
Hi Zoris
fl showing error after adding your lines
it says perc is not acceptable
Please, can you correct this code lines?
If there are two options, kindly post both codings in full, and oblige
Thanks in advance,
regards
rvlv
code
AMI current day only is running, but with all failed. i am wondering is any one
else having this problem.
thanks in advance.
I have all my charts maximized within the AmiBroker window. The tabs show up at
the top, and they have the symbol as the text in the tab. This is really bad,
since I can have ten different charts with the same symbol, with totally
different content in each chart, and no way to know which is whic
For ZIGHL afl go to (amongst others): Joris Schuller; Sat 11/07/2009 10:25
AM
pkbars=PeakBars(H,ZigPerc); //if you use the ZIGHL formula, otherwise
replace H by C when using AB-Zig
trbars=TroughBars(L,ZigPerc); //if you use the ZIGHL formula, otherwise
replace L by C when using AB-Zig
if pkbars
Hello, Could someone help me with the AFL code for ZIG function peak and trough
detection?
I want to check if the last ZIG value is a Peak or a Trough.
Do I need to use loop code or is there a way to use LastValue to detect this
condition?
Regards
Richard
This is better:
|inwl = 0;
*for* (i = 1; i<5;i ++)
{
wlname = CategoryGetName(*categoryWatchlist*, i);
inwl = Max (inwl, InWatchList(i));
*Filter* = inwl;
AddColumn( IIf (Inwl,ROC(*C*,1),*Null*), wlname, 1.2);
}|
On 11/18/2009 1:42 AM, Aron wrote:
| *for* (i = 1; i<5; i++)
{
wlname =
| *for* (i = 1; i<5; i++)
{
wlname = CategoryGetName(*categoryWatchlist*, i);
*Filter* = 1;
AddColumn( IIf (InWatchList(i),ROC(*C*,1),*Null*), wlname, 1.2);
}|
On 11/17/2009 3:10 PM, Mike wrote:
I am running a simple exploration showing the ROC of a watchlist.
I want to run the exploration
Hi everyone:
I'm using the metastock amibroker plug-in to read daily data directly from
metastock data files. However, one of the key pieces of information I need to
retreive from metastock is the EXCHANGE since I'm dealing with many many
exchanges (international/non-us data). I need to be ab
Hello,
I changed each LVB line ( 2 ) locations to the following.
lvb =BarCount-1;//Status( "lastvisiblebar" );
It now plots no matter with blank bars to the right...
- Original Message -
From: Bisto
To: amibroker@yahoogroups.com
Sent: Tuesday, November 17, 2009 4:36 PM
Sub
Your code works. However, there are a few minor errors:
1. You compute the HHVMax (C) and LLVMin(C) rather than HHVMax (H) and
LLVMin(L), which can cause some overlap
2. In the presence of RHS blank bars an error message appears.
3. Since AB 5.25 (I believe) there are two undocumented function
Quick update - I've added a Free Code module and Free Code article to
AmibrokerU called ListAvg. For those who need for an equal weighted
average of a list of tickers, the Code module provides a function that
implements the result in a single call. If you are interested in the
background on the n
Great link. Thanks for the post.
Mike
--- In amibroker@yahoogroups.com, "tuzo_wilson" wrote:
>
> If anyone is interested in a technical article around windows memory, Mark
> Russinovich has a great blog post called Pushing the Limits of Windows:
> Virtual Memory at
> http://blogs.technet.com/
You are right!
I don't use blank bars at the right indeed, so I never noticed it before
if you set them at 0 it works
I will appreciate if you'll keep me informed if you change the code to solve
this bug
Bisto
--- In amibroker@yahoogroups.com, "Anthony Faragasso" wrote:
>
> Hello,
>
> I bel
Hello,
I believe it is because if you have blank bars to the right of the last visible
price...it produces error
- Original Message -
From: Bisto
To: amibroker@yahoogroups.com
Sent: Tuesday, November 17, 2009 4:05 PM
Subject: [amibroker] Re: Is it possible to divide an
I post it again with copy & paste from AB where it's running ok... who knows?
function MinZone( array, PercZoneLow, PercZoneHigh )
{
fvb = Status( "firstvisiblebar" );
lvb = Status( "lastvisiblebar" );
HHVMax = -1;
LLVMin = 1;
for ( i = fvb; i <= Lvb; i++ )
Hello,
Formula returns Subscript out of range error..
- Original Message -
From: Bisto
To: amibroker@yahoogroups.com
Sent: Tuesday, November 17, 2009 1:53 PM
Subject: [amibroker] Re: Is it possible to divide an indicator pane into
several zones?
Hi Paul,
in your
Hi Herman,
Thanks for your suggestion to search the UKB - User's Knowledge Base. I found
your "Restore Last Used Range" and have sent it to my friend who's the
programmer to incorporate it in our "Include" file.
Regards,
Wave~Trader
I want to create 10 csv output files from AmiBroker based on Rotational
Backtest results, but am having problems. Here is what is going on.
1. I have 10 csv files named In1.csv to In10.csv. Each has stock symbols in
Column A. Nothing else in the files.
2. Trying to create one afl that will do
--- In amibroker@yahoogroups.com, "Anthony Faragasso" wrote:
>
> would it be this,
>
> AddColumn(lastvalue(Rapport),"Rapport",1.3);
>
Thanks Anthony Faragasso !!
In fact I think that there is any limitations in the AFL langage
particulary between the "For" instruction and the ohter instruct
Hi Paul,
in your case is definitely better to do as already suggest by the other guys
but, according to me, sometimes it could be useful to divide one pane in two or
more zones. the reason could be:
1) to share variables without using Static variables (to keep AFL more simple)
2) to have zones
easiest way might be to copy the individual watchlists to one watchlist
and explore that one. You can also check all stocks in you DB and set
the filter to only pass the tickers in particular watchlist, using
Inwatchlist(_) or InWatchlisName().
hermn
Mike wrote:
> I have an exploration that p
Rick,
Unfortunately, that's a GLOBAL setting and affects ALL charts, so that's not
the solution!
Regards,
Wave~Trader
--- In amibroker@yahoogroups.com, Rick Osborn wrote:
>
> change the preferences > charting > "default number of quotations" number
>
>
>
>
>
>
>
>
Mike,
Something like:
Filter= inwatchlist(1) and inwatchlist(2) and etc.and "your other criteria";
- Original Message -
From: Mike
To: amibroker@yahoogroups.com
Sent: Tuesday, November 17, 2009 9:10 AM
Subject: [amibroker] Switching watchlists during an exploration.
change the preferences > charting > "default number of quotations" number
From: wavetrader2005
To: amibroker@yahoogroups.com
Sent: Tue, November 17, 2009 9:03:41 AM
Subject: [amibroker] Maintaining "Zoomed" Chart
Hello Group,
When I zoom in on a ch
Thanks Tomasz,
I see that if you are using 32bit, having more than 3gb doesn't do you any
good. How about for 64bit? If you are backtesting 3000 bars of data, what is
the most RAM amibroker would need to use, i.e., if I wanted the fastest
optimizations, how much RAM would I need?
Thanks,
Jo
I have an exploration that pulls the ROC from all the symbols in a watchlist.
And currently have to manually switch the watchlist and run it again and again
over each watchlist.
I want to run the exploration once over several watchlists but I am having no
success using the CategoryGetSymbols fu
I am running a simple exploration showing the ROC of a watchlist.
I want to run the exploration over several different watchlists during one run
of the exploration instead of having to Define each watchlist in the analyser
and running the exploration several times.
I have been trying the Cate
Hello Group,
When I zoom in on a chart to see its finer details and then close AB, when I
restart AB the "zoom" setting is not maintained - the chart opens based on the
"normal" setting (which I believe is based on the "Preferences > Charting >
Default number of quotations in a chart" setting).
If anyone is interested in a technical article around windows memory, Mark
Russinovich has a great blog post called Pushing the Limits of Windows: Virtual
Memory at
http://blogs.technet.com/markrussinovich/archive/2008/11/17/3155406.aspx where
he covers topics such as virtual memory, private by
Hello,
Windows Task Manager you say.
Do you know that WTM can display dozen of different "memory usage" figures
and most of them are misleading?
Windows works with Virtual memory. RAM is NOT allocated to process. Virtual
memory is.
Then, on the fly, virtual memory pages are mapped to RAM and used
32 matches
Mail list logo