Buggy code:
System ) . setTime ( nt . getTime ( ) ) ; lf2 . set ( ( i2 + 1 ) , tmp20 ) ; SimpleArbitrage tmp22 = new SimpleArbitrage ( lf2 . get ( i2 ) . getPrice ( ) , lf2 . get ( i2 ) . getDate ( ) ) ; Date tt2 = new Date ( ) ; tt2 . setTime ( tmpt ) ; tmp22 . setDate ( tt2 ) ; lf2 . set ( i2 , tmp22 ) ; } else if ( i2 > 0 ) { i2 -- ; } nt . setTime ( ( ( nt . getTime ( ) ) - ( 60 * 1000 ) ) ) ; } if ( maxdt == 2 ) { SimpleArbitrage ftmp22 = new SimpleArbitrage ( lf2 . get ( ( ( lf2 . size ( ) ) - 1 ) ) . getPrice ( ) , dt2 ) ; Date ftt2 = new Date ( ) ; ftt2 . setTime ( ( st + ( l * 60000 ) ) ) ; ftmp22 . setDate ( ftt2 ) ; lf2 . set ( ( ( lf2 . size ( ) ) - 1 ) , ftmp22 ) ; System . out . println ( ( ( dt2 . getTime ( ) ) // 60000 ) ) ; System . out . println ( ( ( ftmp22 . getDate ( ) . getTime ( ) ) // 60000 ) ) ; } else if ( maxdt == 1 ) { SimpleArbitrage ftmp11 = new SimpleArbitrage ( lf1 . get ( ( ( lf1 . size ( ) ) - 1 ) ) . getPrice ( ) , dt1 ) ; Date ftt1 = new Date ( ) ; ftt1 . setTime ( ( st + ( l * 60000 ) ) ) ; ftmp11 . setDate ( ftt1 ) ; lf1 . set ( ( ( lf1 . size ( ) ) - 1 ) , ftmp11 ) ; } System . out . println ( ( ( ( "<seq2seq4repair_space>nt:" + ( ( nt . getTime ( ) ) // 60000 ) ) + "<seq2seq4repair_space>st:" ) + ( st // 60000 ) ) ) ; System . out . println ( ( ( ( "l1s:" + ( lf1 . size ( ) ) ) + "<seq2seq4repair_space>l2s:" ) + ( lf2 . size ( ) ) ) ) ; System . out . println ( ( ( ( ( lf1 . get ( ( ( lf1 . size ( ) ) - 1 ) ) . getDate ( ) . getTime ( ) ) // 60000 ) + "<seq2seq4repair_space>" ) + ( ( lf2 . get ( ( ( lf2 . size ( ) ) - 1 ) ) . getDate ( ) . getTime ( ) ) // 60000 ) ) ) ; System . out . println ( ( ( ( ( lf1 . get ( 0 ) . getDate ( ) . getTime ( ) ) // 60000 ) + "<seq2seq4repair_space>" ) + ( ( lf2 . get ( 0 ) . getDate ( ) . getTime ( ) ) // 60000 ) ) ) ; System . out . println ( ( ( ( lf1 . get ( ( ( lf1 . size ( ) ) - 1 ) ) . getDate ( ) . getTime ( ) ) // 60000 ) - ( ( lf1 . get ( 0 ) . getDate ( ) . getTime ( ) ) // 60000 ) ) ) ; System . out . println ( ( ( ( lf2 . get ( ( ( lf2 . size ( ) ) - 1 ) ) . getDate ( ) . getTime ( ) ) // 60000 ) - ( ( lf2 . get ( 0 ) . getDate ( ) . getTime ( ) ) // 60000 ) ) ) ; if ( ( lf1 . size ( ) ) < ( lf2 . size ( ) ) ) { for ( int j = 0 ; j < ( ( lf2 . size ( ) ) - ( lf1 . size ( ) ) ) ; ) { lf2 . remove ( j ) ; } } else if ( ( lf1 . size ( ) ) > ( lf2 . size ( ) ) ) { for ( int j = 0 ; j < ( ( lf1 . size ( ) ) - ( lf2 . size ( ) ) ) ; ) { lf1 . remove ( j ) ; } } if ( ( lf1 . size ( ) ) != ( lf2 . size ( ) ) ) { System . out . println ( ( ( ( "Data<seq2seq4repair_space>Fix<seq2seq4repair_space>problem...lf1.size" + ( lf1 . size ( ) ) ) + ";<seq2seq4repair_space>lf2.size" ) + ( lf2 . size ( ) ) ) ) ; } else { System . out . println ( "Data<seq2seq4repair_space>Ready..." ) ; System . out . println ( ( ( ( "Data<seq2seq4repair_space>Count:" + ( lf1 . size ( ) ) ) + "<seq2seq4repair_space>" ) + ( lf2 . size ( ) ) ) ) ; ArrayList < Double > plf1 = new ArrayList < Double > ( ) ; ArrayList < Double > plf2 = new ArrayList < Double > ( ) ; for ( int i = 0 ; i < ( lf1 . size ( ) ) ; i ++ ) { plf1 . add ( lf1 . get ( i ) . getPrice ( ) ) ; plf2 . add ( lf2 . get ( i ) . getPrice ( ) ) ; } System . out . println ( ( ( "Data<seq2seq4repair_space>" + p ) + "<seq2seq4repair_space>Calculate..." ) ) ; result = dm . Arbitrage_Main1 ( plf1 , plf2 , stop_loss , stop_profit , TradeCost ) ; System . out . println ( "Calculate<seq2seq4repair_space>Done..." ) ; if ( ( result ) != null ) { double l1 ; double l2 ; l1 = Double . valueOf ( String . valueOf ( result [ 0 ] ) ) ; l2 = Double . valueOf ( String . valueOf ( result [ 1 ] ) ) ; Lambda newLambda = new Lambda ( p , l1 , l2 ) ; <START_BUG> ms . InsertWXYParams ( newLambda . getGroup ( ) , newLambda . getLambda1 ( ) , newLambda . getLambda2 ( ) ) ; <END_BUG>

Fix:
ms . InsertWXYParams ( newLambda ) ;