var out = getStrategy().getOutStream(); Number maxlong=pLong(Product,Account); Boolean Tradedone = Quantity <= maxlong ? true:false; Number Event; String _LME; Boolean IsLME; Number Eve_Count(Boolean Value) { if(Value) { Event=Event + 1; } return Event; } { //getStrategy().createScript(getStrategy().getName() + "_1" ,new LMECount(getStrategy(),USERID),Eve_Count(oTxExists("Order_Agent"))); _LME = StringUtils.substring(toString(Product),0,3); IsLME= _LME=="LME" ? true : false; }
out.writeln(toString(oTxExists("Order_Agent")) + " "+ toString(Eve_Count(oTxExists("Order_Agent"))));
<cnd>true <actonchg>Limit_Price <trd>Product</trd> <acc>Account <buy>Buy <qty>Quantity <lmt>Limit_Price
<peCode/>