public double GetSupport(SupportResistanceBar snrBar) { double prc = 0; if (snrBar.SnRType == SupportResistanceType.Support) { prc = GetPriceByType(snrBar.BarNo, snrBar.SnRPriceType); } return(prc); }
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); }
public void AddSupport(int barNo, double price) { SupportResistanceBar snrBar = new SupportResistanceBar(); }