Ejemplo n.º 1
0
        public double GetSupport(SupportResistanceBar snrBar)
        {
            double prc = 0;

            if (snrBar.SnRType == SupportResistanceType.Support)
            {
                prc = GetPriceByType(snrBar.BarNo, snrBar.SnRPriceType);
            }
            return(prc);
        }
Ejemplo n.º 2
0
        public double GetResistance(SupportResistanceBar snrBar)
        {
            double prc = 0;

            Print(CurrentBar + ":GetResistance=" + snrBar.BarNo + "," + snrBar.SnRPriceType + "," + snrBar.SnRType);
            if (snrBar.SnRType == SupportResistanceType.Resistance)
            {
                prc = GetPriceByType(snrBar.BarNo, snrBar.SnRPriceType);
            }
            return(prc);
        }
Ejemplo n.º 3
0
 public void AddSupport(int barNo, double price)
 {
     SupportResistanceBar snrBar = new SupportResistanceBar();
 }