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

[amibroker] Partial liquidation of position



PureBytes Links

Trading Reference Links




I 
started coding up a new system and bumped my head on something that I had 
assumed I could do.  Now, I can't figure out how to do 
it.
<FONT face=Arial color=#0000ff 
size=2> 
Let's 
say that today my system buys 1,000 shares.   After some number of 
days (or some other criteria), I would like the system to sell half the 
position.
<FONT face=Arial color=#0000ff 
size=2> 
I 
think that I have figured out how to add to a position (by changing 
PositionSize), but I haven't been able to program a way to reduce my 
position by selling some shares.
<FONT face=Arial color=#0000ff 
size=2> 
Any 
assistance would be appreciated.
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Thanks!






Yahoo! Groups Sponsor


  ADVERTISEMENT









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 the Yahoo! Terms of Service.