I'm trying to create an indicator and need to multiply the max value returned by the MAX() function. I'm not sure what the data type the function returns, so I'm not sure how to make it compatible with a float. 

Q: How do I use the data from MAX() in math operations ( *, -, +, / ) with floats?

CODE:

from datetime import datetime

def initialize(self):

# create a percent of max price DD sell indicator
       self.previous = datetime.now()                   # reset at OnData on Buy
       self.then = self.previous                        # DATE OF PAST PURCHASE
       self.now  = datetime.now()                       # Reset at OnData Now
       self.duration = self.now - self.then             # For build-in functions
       self.days  = self.duration.days + 1              # Build-in datetime function
       self.maxDD = (self.MAX(self.symbol, (self.days), self.resolution))*.95

 

ERROR:

During the algorithm initialization, the following exception has occurred: Trying to perform a summation, subtraction, multiplication or division between 'Maximum' and 'float' objects throws a TypeError exception. To prevent the exception, ensure that both values share the same type.
at Initialize
self.maxDD = (self.MAX(self.symbol in main.py:line 61 
TypeError : unsupported operand type(s) for *: 'Maximum' and 'float'