Work on BarchartTrader (code is not compilable )