PositionManager.AllocationType = PositionAllocationType.Percentage;
PositionManager.Allocation = 50;.
If a open signal is triggered, open a postion; if another open signal, then open again. If close signal, then close all.
In one case, for example, open 1st position at 10, using 5000 usd, than open 2nd position at 10 again, using 5000 usd; then the price went down to 9, and trigger a close signal, so close. Now I have 9000 usd. Later 1 open signal triggered at 9 usd, open 1st positon at 9. Then the price raise to 10 usd and another open signal, so open again. But the opening of 2nd position was failed by short of cash. Is AllocationType.Percentage based on starting capital? or based on Current Account Value ?
Is there any way I can realize my trade?
BTW, is there any way to get current cash/balance I hold?
Monday May 23 2011 by