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