public static double MoneyToPips(double money, int bar) { return money * AccountExchangeRate(Close[bar]) / (InstrProperties.Point * InstrProperties.LotSize); }