hi to find formulas for MetaStock Tradestation and Ami check out systems4trading.com they have 1000s of coding including systems