IF(S(AMT) OR S(VOL): AMT-VOL*PRICE :Input negative value either AMT or VOL to indicate buying.
(VOL*PRICE-ABS(VOL*PRICE*COM%/100*(1+VAT%/100)))-TOTAL)
Note that I use '*' and '/' for multiply and divide operators respectively (the calculator uses exact arithmatic symbols).
However, few weeks later I revised to this version:
TRADE: IF(S(AMT) OR S(VOL) OR S(PRICE): AMT-VOL*PRICE : VOL*PRICE*COM%/100*(1+TAX%/100)-FEE)
- Assign formula's label.
- Handle when price is queried.
- Only calculate fee (commission + tax) instead of total. To get total, press: [AMT] [+ or -] [FEE (twice, first time it will beep)]
I should add more from HP 200LX later.
Cheers,
[vps]
2 comments:
"OR S(VOL)" is added to support inquiry: how much volume should I buy/sell at desired amount?
Revise to support both buy & sell transaction.
Previous version:
IF(S(AMT) OR S(VOL): AMT-VOL*PRICE : VOL*PRICE*(1+(COM%/100*(1+VAT%/100)))-TOTAL)
Post a Comment