def isASellPoint(pricesData, macd, signalLine, buyPoint, t): profitRate = (pricesData[t] - pricesData[buyPoint]) / float( pricesData[buyPoint]) if profitRate >= 0.03 or isADownCrossingPoint(macd, signalLine, t): return True else: return False
def isASellPoint(macd, modifiedSignalLine, t): if isADownCrossingPoint(macd, modifiedSignalLine, t): return True else: return False
def isASellPoint(pricesData, macd, modifiedSignalLineWithK, buyPoint, t): profitRate = (pricesData[t] - pricesData[buyPoint])/float(pricesData[buyPoint]) if profitRate >= 0.03 or isADownCrossingPoint(macd, modifiedSignalLineWithK, t): return True else: return False
def isASellPoint(macd, signalLine, t): if isADownCrossingPoint(macd, signalLine, t): return True else: return False