Forum: C2 Software Development
| |
| Subject: | getopenpositions command |
| Posted by: | Bob Svan ( C2 Score: 968 ) |
 |
| |
|
| When: | 9/27/08 (7:16) | |
| Systems: | |
|
|
|
|
| | A response of "getopenpositions" command does not include "openaction" or "action" element. (For example "BTO" or "STO".)
If one trades long and short positions and wants to close open positions, this command alone does not help too much.
Can you add this element?
<openPositions>
<trade>
<tradeid>12345678</tradeid>
<symbol>CRL</symbol>
<instrument>stock</instrument>
<positionOpened>2008-09-26 15:55:00</positionOpened>
<quantOpened>290</quantOpened>
<quantClosed>0</quantClosed>
<entryPrice>57.9</entryPrice>
<pointValue>1</pointValue>
<quote>
<bid>58.04c</bid>
<ask>58.04c</ask>
<last>58.04</last>
<tick>17:19:07t</tick>
</quote>
</trade>
What drive me crazy, Matt, that in practically every xml structure you name the same thing by different name. Maybe you love vari-coloured life, but I really do not like to have a special procedure for every piece of information from C2.
Example #1: trade opening date
openPositions/trade: positionOpened
signals/signal: traded
tradeHistory trades/trade: earliestopen
Example #2: trading amount
openPositions/trade: quantOpened
signals/signal: quant
tradeHistory trades/trade: openquant
Example #3: tradeprice
openPositions/trade: entryPrice
signals/signal: tradeprice
tradeHistory trades/trade: openprice
Bob |
|
| | |
|
| |
|
|
|
|
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.