Forum: C2 Software Development
| |
| Subject: | Can't close postions "Not currently long..." |
| Posted by: | aaa bbb ( C2 Score: 221 ) |
 |
| |
|
| When: | 6/13/11 (5:18) | |
| Systems: | |
|
|
| |
|
| |
|
|
|
| | In response to post by aaa bbb of 6/13/11 (5:18) Hi, admin
I have created a new sytem and I tested position open and close action.
position opening is working well....
See entire
Joy:
You are not currently long.
You have a Buy To open (BTO) order working at the time I write this (and the time you tried to submit a STC), but you do not at this moment have a long position. Thus an order to Sell To Close at market can't be submitted.
If you want to enter an order to Sell To Close (that is, an order to close your long position) before the markets are open, and before your first order to open the long is executed, then you must make your Sell To Close order conditional upon the first Buy To Open. In other words, you need to say, "When the first Buy order is executed, then please make this order start working." |
|
| | |
|
| |
|
| |
| Subject: | Can't close postions "Not currently long..." |
| Posted by: | aaa bbb ( C2 Score: 221 ) |
 |
| |
|
| When: | 6/13/11 (9:29) | |
| Systems: | |
|
|
|
|
| | In response to post by Matthew Klein of 6/13/11 (7:53) Joy:
You are not currently long.
You have a Buy To open (BTO) order working at the time I write this (and the time you tried to submit a STC), but you do not at this moment have a long position. Thus an order to Sell To Close at market can't be submitted....
See entire
Thank you for your reply.
I have a question now.
Can you please explain more clearly about this?
"you must make your Sell To Close order conditional upon the first Buy To Open"
I have no idea what does it means. sorry
Best regards |
|
| | |
|
| |
|
| |
| Subject: | Can't close postions "Not currently long..." |
| Posted by: | Matthew Klein (Admin) |
 |
| When: | 6/13/11 (10:19) | |
|
|
|
|
| | In response to post by aaa bbb of 6/13/11 (9:29) Thank you for your reply.
I have a question now.
Can you please explain more clearly about this?
"you must make your Sell To Close order conditional upon the first Buy To Open"
...
See entire
If you are using the API, you can learn the technical specs for specifying conditional orders in the API docs.
For a more general education about what we mean by "conditional orders" (essentially, orders that do not start "working" until after another, specific order is filled), you can see a fabulous video, featuring my melodious voice, by going to the Order Entry screen, and clicking Order Entry Help at the bottom of the order entry ticket. Then select the video about "conditional orders."
Main summary: You need to tell C2 that your closing order is "conditional on" the opening order being filled. It's usually as simple as specifying a
&conditionalupon=xxx
parameter.
These are not needed in cases where you use the "all in one" order entry command specifying both the entry and the exits in one API command.
Matthew |
|
| | |
|
| |
|
| |
| Subject: | Can't close postions "Not currently long..." |
| Posted by: | aaa bbb ( C2 Score: 221 ) |
 |
| |
|
| When: | 6/13/11 (10:29) | |
| Systems: | |
|
|
|
|
| | In response to post by Matthew Klein of 6/13/11 (10:19) If you are using the API, you can learn the technical specs for specifying conditional orders in the API docs.
...
See entire
Thanks
Actually I have skipped description for conditional order.
Now I understood what is conditional order.
Regards |
|
| | |
|
| |
|
|
|
|
What is the C2 Score?
Collective2 rates every trading advisor in its database and assigns a score between 100 and 1000.
In general, a rating above 500 is good. A rating above 700 is excellent.
Collective2 Ratings are recalculated daily based on the entire performance history in our database. The exact formula we use is proprietary, but there are several key variables that go into the Collective2 Rating. One of the most important factors is the length of time we have been able to observe the performance of the trader. Another key factor is the amount by which the trader over-performs or under-performs the S&P 500 index. Finally, the choppiness of the trader's results is taken into account. Certainly a more consistent trader will be rated more highly than a trader with erratic results.