Thanks, because of the 2nd issue I investigate further and have to stripe down the codes before sending them to support.
But can you please check concerning the 1st one? I set SpreadA = marketVal() in test mode but the values does not match the ask / bid differences in the related .t1 files. This happens only in test mode, if the values come from the broker in trade mode Spread works fine. Thanks.