[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] tick size -- Tomasz



PureBytes Links

Trading Reference Links

Yuki,

TickSize has to be a NUMBER.

Therfore you have to add LastValue to your statement.

TickSize = LastValue( IIf( C < 2000, 1, IIf( C >= 2000 AND C < 3000, 5, IIf( C
>=3000 AND C < 49999,  50, IIf( C >= 50000 AND C < 99999, 100, IIf( C
>= 100000, 1000, 10000 /*otherwise*/ ) ) ) ) ) );

You can also define tick size for given symbol in 
Symbol->Information (this is easier than coding)

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Yuki Taga" <yukitaga@xxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, March 03, 2003 1:24 PM
Subject: [amibroker] tick size -- Tomasz


> Tomasz, why doesn't this code control buyprice?  I still have
> buyprices at impossible levels, and even at fractional yen prices.
> 
> TickSize = IIf( C < 2000, 1, IIf( C >= 2000 AND C < 3000, 5, IIf( C
> >=3000 AND C < 49999,  50, IIf( C >= 50000 AND C < 99999, 100, IIf( C
> >= 100000, 1000, 10000 /*otherwise*/ ) ) ) ) );
> 
> Yuki ^_^
> 
> mailto:yukitaga@xxxxxxxxxxxxx
> 
> 
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
>

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/