PureBytes Links
Trading Reference Links
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
See interspersed comments....
On Sun, 25 Jan 2004 14:43, dingo wrote:
> AHHHH!!
>
> that damned [bar] thingy!! But you'd have never figured it out without my
> hint of using positionsize, eh duude?
>
Wanna bet???
> PLUS you messed up my braces! Gak!
>
I'll have you know that K&R format is the "one true and only" correct
formating for 'C' derived languages! :-)
And next time I'll fix your abominable hungarian notation as well!!!
> now for your next challenge: Commissions!! No hints from me this time..
>
On a more serious note, I doubt if this can be done *CORRECTLY* with *FULL
GENERALITY* unless Tomasz adds a Commision reserved variable. (Sorry about
the shout, but someone will doubtless show a *partial* solution, to prove me
wrong).
It would be possible to adjust the PostionSize and Round lot size so that AB
will buy some fractionally larger (eg instead of 100 shares, buy 100.0423
shares) number of shares to compensate for the commision. Or tweak the
actual Buy/SellPrice (possibly to prices outside the HL range) to do the
same. Even if you did this, how do you split the commision into entry and
exit commisions?
In any case the report will not match the input file.
AB itself has reasonable commision handling, so I think you would be better
off using that. Admittedly this restricts you to only one set of commision
rules for the entire input file.
Nigel
P.s Dale, I still think your dates are inside-out :-)
>
> # 8-]
>
> You get a BIG attaboy for this one!!
>
> d
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAE0O+BbmcM2pfckkRAtX5AKCxhx6o3J1bUNFGUmNpPlmQvzd3AQCg8b31
Ka5zmtnIQmCJJG/SnBwZ//k=
=3qyF
-----END PGP SIGNATURE-----
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
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|