added a few logic bits to advnaced trader will complete today