Call algo("xxx") before enterLong() , with an algo name depending on trade type and check TradeAlgo in the tmf.