Mariner Backtesting - Beta

Beta (β) is a measure of the volatility—or systematic risk—of a security or portfolio compared to the market as a whole (usually the S&P 500). Stocks with betas higher than 1.0 can be interpreted as more volatile than the S&P 500.

A negative Beta suggests that a symbol is less volatile than the market.

A neutral Beta suggest that a symbol moves with the market.

A positive Beta suggests that a symbol is more volatile than the market.

See example below for returning only those symbols that qualified for the GUID listed and were also between $2 and $500 and over 100,000 average volume...

 

 @classmethod
def is_symbol_qualified(cls, symbol, md, service, account):
    GUID = '5913eeee-45b5-44ad-9d5e-6c0aaf9950e8'
    # This combination of service calls returns a 1 if the current symbol is in the specified list, a zero if it is not
    myList = service.symbol_list.in_list(service.symbol_list.get_handle(GUID),symbol)
    return mylist and md.stat.prev_close>2 and md.stat.prev_close<500 and md.stat.avol>100000
Note:
  • GUIDs are lowercase.
List GUID
Negative 5913eeee-45b5-44ad-9d5e-6c0aaf9950e8
Neutral 783c8bd4-0e62-4edf-96e7-286b14ac8669
Positive 0e788f9d-4c44-4724-8581-21ef7e5dad09