Australian (ASX) Stock Market Forum

Amibroker FAQ

kaveman said:
It already does scale out at +10% profit

if( exit == 0 AND High[ i ] >= ( 1 + FirstProfitTarget * 0.01 ) * priceatbuy )
{
// first profit target hit - scale-out
exit = 1;
Buy[ i ] = sigScaleOut;
}

Ok, thanks Kaveman
 
dear sir,

i am new to this AMI. so i want your suggestion to use AFL. i am full time trader actively. what is your suggestion to use which indicator for day trading. expecting your reply. if you are having any indicator send it to me aishvaryaus@vsnl.net
aishvaryaus@airtelbroadband.in

regds
SIVA :)

.
kaveman said:
I am always happy to help anyone with writing AFL for AB. I am a regular in the AB yahoo group, AB website forum, RC and other places.
 
Is it possible to change the colour of the Fib level lines when using the Fib tool?

The yellow & light purple lines in particular I don't like, as they're too hard to see.

Cheers,
GP
 

Attachments

  • AmiFib_GP1.gif
    AmiFib_GP1.gif
    8.6 KB · Views: 672
GreatPig said:
Is it possible to change the colour of the Fib level lines when using the Fib tool?

The yellow & light purple lines in particular I don't like, as they're too hard to see.

Cheers,
GP

Yep, double click on the Fib study and under the tab 'Fibonacci'.
 
afternoon folks,

I seem to be having some problems with Amibroker at the moment. Drawing trendlines has become nearly impossible- I click to start the trendline, and when I move the mouse to place the line somewhere, it won't move to the position that I'm trying to drag it to. It just has a mind of it's own.

It's also giving me grief with horizontal lines as well. I can place the line to start with, but if I want to move it, the line won't stay horizontal anymore, and will be at roughly 45 degrees.

It's currently only doing this with my Intraday database. When I have the EOD database up and running, the trendlines/horizontal lines will draw fine.

Anyone have any ideas on what the problem might be?
 
Hi PF

See if Format -> Snap to price is selected.

Not sure if that's what it could be, since as you say it's only one database... Might want to try their email support--very responsive.

Cheers
 
swingstar said:
Hi PF

See if Format -> Snap to price is selected.

Not sure if that's what it could be, since as you say it's only one database... Might want to try their email support--very responsive.

Cheers

For some reason it was. All is working fine now

Thanks Swingstar :)
 
Does anyone have Amibroker code to round prices to the ASX tick levels please?

I would like to test conditional orders with correct prices.

Thanks. SB
 
Sir Burr said:
Does anyone have Amibroker code to round prices to the ASX tick levels please?

I would like to test conditional orders with correct prices.

Thanks. SB

You could try the round( ARRAY ) function with some peripheral mathematics to get the correct tick level.
 
here is a function I have to round (up or down) to nearest tick price
it does not include for prices >$1000

Code:
function RoundTick( Price )
{
 return
  IIf( Price < 0.1, round(Price*1000)/1000,
   IIf( Price >=0.1 AND Price <2, round(Price*200)/200,
    round(Price*100)/100)) ;
}

Cr = roundtick(C);
 
Graham,

One small optimisation note: the first part of the second condition (ie. Price >=0.1) is not required, as prices less than 0.1 are already filtered by the first condition.

Cheers,
GP
 
GreatPig said:
Graham,

One small optimisation note: the first part of the second condition (ie. Price >=0.1) is not required, as prices less than 0.1 are already filtered by the first condition.

Cheers,
GP

Hi GP,

Might be wrong but I see it setting up the rounding in the first line for prices > 0.1, the second line between 0.1 and 2.0 and finally 2 and over.

SB
 
GP is right, if it gets to the second line it's not below 0.1 and hence greater than or equal to 0.1, so don't need to recheck.
 
swingstar said:
GP is right, if it gets to the second line it's not below 0.1 and hence greater than or equal to 0.1, so don't need to recheck.

Ahhhhhh OK! :)

Code:
function RoundTick( Price )
{
 return
  IIf( Price < 0.1, round( Price*1000) / 1000,
   IIf( Price < 2, round( Price * 200) / 200,
    round( Price * 100) / 100)) ;
}
 
Amibroker Amazing

I would like to say that Amibroker support and features are truly amazing I found a few bugs today and within hours they were fixed and a new version was released. :eek:
Hows that for support?
 
hi, i am a newbie of amiborker. I got problems with yahoo data updating and hope you guys can share some insight. My amiborker is 4.802 version and amiquote is 1.93. i follow the asx set up which was listed on the amibroker website but use yahoo historical data feeding. i found chart shape is right but there was something wrong with price axis. bhp was quoted around $42 and nab was quoted 157. is anything wrong with yahoo data, what shall i do?
thanks for your help
 
flyhigher said:
hi, i am a newbie of amiborker. I got problems with yahoo data updating and hope you guys can share some insight. My amiborker is 4.802 version and amiquote is 1.93. i follow the asx set up which was listed on the amibroker website but use yahoo historical data feeding. i found chart shape is right but there was something wrong with price axis. bhp was quoted around $42 and nab was quoted 157. is anything wrong with yahoo data, what shall i do?
thanks for your help
Flyhigher, try adding .AX to the symbols (eg. bhp.ax) for Aussie prices. Also indicies are preceeded with an ^ eg. ^AXJO (no .ax added here) = ASX 200 index.

Just be aware that Yahoo data does have it's problems from time to time, eg. stocks often fail to update for a few days after our public holidays. I have emailed them on numerous occasions, but they never seem to fix the underlying problem! Since Australia Day, updating of Aussie share prices has been slow in some cases, eg. WOW.ax is still lagging some of the others and the latest update was Friday the 2nd Feb.

I have other paid data which doesn't easily download into our EOD software so I just correct the Yahoo data as necessary. I certainly would not solely rely on Yahoo to make trading decisions!
 
Hi, sails. thanks for your reply. could you let me how to add the symbol to yahoo list cause i am really a newbie with amibroker. appreciate your help.
 
Top