Australian (ASX) Stock Market Forum

Amibroker FAQ

nope, I still get an invalid symbol message.

FINALLY!!! Apparently in version 5.2 of amibroker, an extra part is added to the syntax.
So in the previous version it'd be
Code:
symbol-exchange-type
, in version 5.2 it's
Code:
symbol-exchange-type-currency
.
Example:

Version 5.1:
Code:
bhp-asx-stk
Version 5.2:
Code:
bhp-asx-stk-aud
 
nope, I still get an invalid symbol message.

Sorry, don't know what the problem is - and my trusty AB version came out of the dark ages so it might work differently ... :D

Hopefully someone else can help...

EDIT: see you've found it :)
 
G'day fellahs,

I'm trying to use the ApplyStop function. What I want to do is set a stop on yesterday's close and keep it there. This is what I'm using at the moment:

Code:
ApplyStop(0,2,Ref(C,-1),1)

I have a feeling that it has something to do with
Code:
Ref(C,-1)
. I think that this value is re-evaluated for each new bar that appears, hence the stop always moves. How do I keep it fixed?

Thanks.
 
G'day fellahs,

I'm trying to use the ApplyStop function. What I want to do is set a stop on yesterday's close and keep it there. This is what I'm using at the moment:

Code:
ApplyStop(0,2,Ref(C,-1),1)

I have a feeling that it has something to do with
Code:
Ref(C,-1)
. I think that this value is re-evaluated for each new bar that appears, hence the stop always moves. How do I keep it fixed?

Thanks.

Saiter, I'm not too familiar with Amibroker (own it, but rarely touch it) but I notice it has the "valuewhen" function. I think that will achieve what you want. Perhaps an Amibroker user can help you with the coding.

Maybe...

valuewhen(LongEntryTrigger,c,1)
{where LongEntryTrigger = valid entry condition as defined by you}

...add that into your ApplyStop function somehow.
 
You don't need ApplyStop for that. Just add it as an exit criteria.

If you're using EOD data, it would just be C < Ref(C,-1). If you're using intra-day data, then you'd want something like:

dn = DateNum();
sell = C < ValueWhen(dn != Ref(dn,1), C);

Note that this looks ahead one bar to determine if the current bar is the last bar of the day, but that shouldn't matter as the sell signal has to come after that anyway.

GP
 
can anyone tell me if it is possible to:

1. display IB booktrader through Amibroker

2. use Amibroker to record what is displayed on your screen for the trading day so you can look at the charts again after trading has closed for the day
 
Nizar,

See here:

http://www.amibroker.com/guide/h_ib.html

Once you have it setup, you can backfill about 2 weeks of 1 min data.

Julius,
I have read the relevant sections of the user manual and set it up like the above.
But like how do I even select which symbols I want the data for?
I tried Symbol--->New and chose csl but I got some sort of error "Not enough data available"

Note that Im a very basic level with this program I just bought it this morning.

Thanks.
 
Actually my set up is a bit different than in the user manual (your link).

Under File ---> Database Settings ---> Configure

I only get 2 checkboxes under "Backfill settings",
1. Regular Trading hours only
2. Automatic backfill on first data access (causes additional traffic)

IDEALPRO price field: Midpoint/Bid/Ask

I'm not getting Base Interval and all the other settings shown in the link above.

Any ideas?
 
Actually my set up is a bit different than in the user manual (your link).

Under File ---> Database Settings ---> Configure

I only get 2 checkboxes under "Backfill settings",
1. Regular Trading hours only
2. Automatic backfill on first data access (causes additional traffic)

IDEALPRO price field: Midpoint/Bid/Ask

I'm not getting Base Interval and all the other settings shown in the link above.

Any ideas?

Assume you fixed this Nizar, but its just under database settings, then you can adjust your base time intervals.

CanOz
 
Can anyone explain what the "IDEALPRO price field: Midpoint/Bid/Ask" is used for?

I'd thought it was the option to whether AB charts IDEALPRO using mid/bid/ask, but didn't seem to change anything on my bid charted charts :)eek:)

Thanks
 
Hi Guys,

I am hoping one of the Amibroker AFL experts here might be able to offer some assistance.

I am trying to get my head around AFL by coding up some candlestick indicators. I am having some real trouble with the gravestone Doji. When the open and close are exactly the same as the low for the day is easy but I noticed it was missing some that where really close. I want to add a 1% leeway buffer so that if the open and close both finish within the bottom 1% of the total range for the day it still triggers.

I have tried this many ways but none are working. These are a couple that I have tried:

Code:
GraveStone = iif ((O < (L + (L*0.01))) AND (C < (L + (L*0.01))), 1, 0);
GraveStone = iif (O == C AND ((H + L) > (O + C)) AND (C == H), 1, 0);

What am I doing wrong???

On a side note: I have only just purchased AmiBroker and had an issue straight away. I sent an email to support@amibroker.com and received a confirmation saying that they usually respond within 24 hrs.

Its been almost a week and I haven't heard anything. Is this normal for them?
 
You know in the two years that i've been using Amibroker i have not tried the email for support, i've always used the forum on yahoo and found my answers.

If its an issue with software i suppose its different though.

Try the forum anyway, sometimes Thomaz answers quite quickly.

Cheers,



CanOz
 
Hi Guys,

I am hoping one of the Amibroker AFL experts here might be able to offer some assistance.

I am trying to get my head around AFL by coding up some candlestick indicators. I am having some real trouble with the gravestone Doji. When the open and close are exactly the same as the low for the day is easy but I noticed it was missing some that where really close. I want to add a 1% leeway buffer so that if the open and close both finish within the bottom 1% of the total range for the day it still triggers.

I have tried this many ways but none are working. These are a couple that I have tried:

Code:
GraveStone = iif ((O < (L + (L*0.01))) AND (C < (L + (L*0.01))), 1, 0);
GraveStone = iif (O == C AND ((H + L) > (O + C)) AND (C == H), 1, 0);

What am I doing wrong???

On a side note: I have only just purchased AmiBroker and had an issue straight away. I sent an email to support@amibroker.com and received a confirmation saying that they usually respond within 24 hrs.

Its been almost a week and I haven't heard anything. Is this normal for them?

If you are looking to give it 1% (of the day range) leeway then you can code as follows

dayrange = H-L;
GraveStone = iif ((O < (L + (dayrange*0.01))) AND (C < (L + (dayrange*0.01))), 1, 0);

As for amibroker support, this is a coding issue and not a software issue, so it really isn't their problem.
 
Thanks for your help bingk6 & CanOz.

That code works perfectly.

As for the support, I wasn't asking them for help with my coding, LOL, it was a licensing issue I had contacted them about.
 
Hi

Apologies for my lack of clues. I've tried to figure out barindex from the manual but I'm getting nowhere.

How do I select two points on a chart (eg by clicking on them) and calculate the number of bars between them?

Ta
Steve (absolute novice)



Depends whether you want number of bars (ie. days the stock traded) or number of calendar days.

Number of bars is easy. If your bar indices are called "first" and "last":

bi = BarIndex();
count = bi[last] - bi[first];

Calendar days is trickier. See this AmiBroker knowledge base article.

GP
 
Hi guys,

Just wondering if I wish to add a value in the title of the chart, the actual range between the open and closing values of the bar (whatever timeframe), ie. not the change in value since the last bar, but the bar itself, how would I go about it?

Here's what I have currently,

Code:
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.4f, %.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, C-Ref(C,-1), SelectedValue( ROC( C, 1 )) ));Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

As you can see it has already been modified somewhat, but yeah it would be great if someone can tell me how to add the said value into the the same group of change, change%..

Much thanks in advance for any assistance :)
 
Top