ASKER
String s = data.getSymbol();
double bpx = data.getOpenBid();
String bb = data.getBotBuy();
if (s.equals("EUR/USD")) {
openBid[0] = bpx;
botBuy[0] = bb;
and I will have as much arrays as I need.
ASKER
public void statistic_EURUSD_S(boolean bl0) throws SQLException,
ClassNotFoundException,
InstantiationException,
IllegalAccessException {
if (bl0 == false) {
ts = new java.util.Date();
sell_px[0] = DCC.getInstance().getSellPriceEURUSD();
System.out.println(" EUR/USD Sell signal at " + ts +
" : with price = " + sell_px[0]);
lionconn.insertBotResult(sell_px, buy_px, ts);
} else {
}
}
CREATE TABLE "LIONFX"."EURUSD_BOT_BUY"
(
"BUY_PX" VARCHAR2(20 BYTE),
"TS" TIMESTAMP (6) NOT NULL ENABLE,............
At the moment I need to use this tables for charts creating together with with another table, but this table full and has all columns
CREATE TABLE "LIONFX"."EURUSD"
(
"ID" NUMBER NOT NULL ENABLE,
"SYMBOL" VARCHAR2(20 BYTE),
"BIDPX" FLOAT(126),
"ASKPX" FLOAT(126),
"TIMEST" TIMESTAMP (0),.......
So, I want to use the same query
String s = data.getSymbol();
double bpx = data.getOpenBid();
String bb = data.getBotBuy();
if (s.equals("EUR/USD")) {
openBid[0] = bpx;
botBuy[0] = bb;
where String bb will be value from BUY_PX column
ASKER
ASKER
Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.
TRUSTED BY
// "SELECT 'whatever you want to show here' SYMBOL, x.* FROM EURUSD_BOT_SELL x where timest = ( select max( timest ) from EURUSD_BOT_SELL ) and rownum = 1 union all " +...
hope that helps