Page 1 of 1
How to do this?
Posted: Fri Nov 23, 2007 7:22 pm
by freedom007
Hi,
Is that possible to do something like this in Tradingbloxbuilder
For the same symbol, the quantity of Enter and Exit a trade was different
let say Enter a trade with quantity of 1000 and exit with 800.If it is
possible would you pls give some hint for me how to deal with it?
Regards
Posted: Sat Nov 24, 2007 7:12 pm
by Tim Arnold
The last optional parameter in the broker function call is the quantity to exit. So you can use the following to exit 800 contracts of unit 1.
There are a number of Adjust Position functions as well to increase or decrease the position size by a percent.
Posted: Sun Nov 25, 2007 7:16 am
by freedom007
Thanks,Tim,However,May be I need to elaborate my point more clearly.
What I have seen in trade log file, a complete one roundtrip trade record which contain entry and exit infor,just have one colume of ' quantity 'before ' entry fill ' ,so is that mean we have to keep the same quantity on Entry and Exit in one roundtrip Trade.What if I want to buy 1000 share and just exit 800 in one roundtrip.Is there any chance to do it
in TBB? (may be can use of different unit number I think). If it possible,would u pls drop me a sample, very appreciate.
Regards
Posted: Sun Nov 25, 2007 7:24 am
by Tim Arnold
Yes, if you use the code above, Trading Blox will create a trade entry showing an entry and exit of 800. Then if you exit the last 200 you will have another trade with an entry and exit of 200.
So a single unit entry with multiple exits becomes multiple round trip trades. Another way to approach the problem could be to use multiple units. You could have an entry of 800, and an entry of 200, and then exit them separately.