Exemple #1
0
        protected override decimal Calculate(int index)
        {
            decimal value    = _indicator.GetValue(index);
            decimal upValue  = _bbu.GetValue(index);
            decimal lowValue = _bbl.GetValue(index);

            return(value.Minus(lowValue).DividedBy(upValue.Minus(lowValue)));
        }
Exemple #2
0
 protected override decimal Calculate(int index)
 {
     return(_bbu.GetValue(index).Minus(_bbl.GetValue(index))
            .DividedBy(_bbm.GetValue(index)).MultipliedBy(Decimals.HUNDRED));
 }