When importing BID/ASK tick data from a .CSV a popup comes saying to specify "a value of 2(bid) or 1(ask) in the 'OpenInt' field"
Does this mean each row of the .CSV itself needs have a column with a 2 or a 1 in it?
Or does it just mean I need to type a 2 or a 1 into Quantshares's ASCII GUI (if so, where do I type in the 2 or 1 exactly)?
This means that either the CSV needs to have a column with 2 or 1 in it or you can create a pre-script to update the "OpenInt" column with 2 or 1 values programmatically.
Here is an example: (Symbol name: AA)
int f = 0;
for(int i=0;i<Content.Rows.Length;i++)
{
// Ignore original line
Content.Rows[i].IsIgnoreLine = true;
// Add a line for the last, bid and ask, each one with a sligthly different time
Content.AddRow("AA", Content.Rows[i].Data[0] + " " + Content.Rows[i].Data[1] + ":" + f, Content.Rows[i].Data[2], "0", Content.Rows[i].Data[5]);
f++;
Content.AddRow("AA", Content.Rows[i].Data[0] + " " + Content.Rows[i].Data[1] + ":" + f, Content.Rows[i].Data[3], "1", Content.Rows[i].Data[5]);
f++;
Content.AddRow("AA", Content.Rows[i].Data[0] + " " + Content.Rows[i].Data[1] + ":" + f, Content.Rows[i].Data[4], "2", Content.Rows[i].Data[5]);
f++;
if(f > 20)
{
f = 0;
}
}
//// Sample data to be parsed:
Date,Time,Last,Ask,Bid,LastSize
12/18/2009,10:36:30,52.84,52.82,52.84,100
12/18/2009,10:36:30,52.84,52.82,52.84,100
12/18/2009,10:36:30,52.84,52.82,52.84,100
12/18/2009,10:36:47,52.83,52.83,52.85,100
In the example I sent you the data is transformed using the "pre-script".
If you want to have ready to use data to be imported, it should look like this:
//// Sample data to be parsed:
Date,Time,Last,Type,LastSize
12/18/2009,10:36:30,52.84,0,100
12/18/2009,10:36:30,52.84,1,100
12/18/2009,10:36:30,52.84,1,100
12/18/2009,10:36:30,52.84,2,100
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.