If the court finds any method, act, or practice unlawful with regard to any security or any contract of sale of a commodity for future delivery as defined in section two, the court may issue such orders or judgments as may be necessary to restore any person who has suffered any ascertainable loss of any moneys or property, real or personal, or up to three but not less than two times that amount if