PureBytes Links
Trading Reference Links
|
My hypothesis is the Omega has a 16-bit representation (with 1 bit for sign)
for OpenPositionProfit. That would explain why
if Date=991216 then buy 100 shares at close;
if Date=991217 then buy 100 shares at close;
if Date=991220 then exitlong 200 shares at close;
if Date>=991216 and Date <=991222 then print(" date ",
date,"OpenPositionProfit ",OpenPositionProfit);
works for "normally priced" stocks like WMT or INTC (for which 100*Price <
2^15) but doesn't work for QCOM (for which 100*Price > 2^15).
It would also explain why 10-share orders DO work for QCOM.
if Date=991216 then buy 10 shares at close;
if Date=991217 then buy 10 shares at close;
if Date=991220 then exitlong 20 shares at close;
if Date>=991216 and Date <=991222 then print(" date ",
date,"OpenPositionProfit ",OpenPositionProfit);
Can anyone confirm whether I'm right or wrong?
-Alex
|