professor_frink
Moderator
- Joined
- 16 February 2006
- Posts
- 3,252
- Reactions
- 5
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;
}
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.
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
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
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
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);
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
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.
function RoundTick( Price )
{
return
IIf( Price < 0.1, round( Price*1000) / 1000,
IIf( Price < 2, round( Price * 200) / 200,
round( Price * 100) / 100)) ;
}
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.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
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?