Suggestion: read the Docs - Quickstart Access an comparison is done several times with a Simple Moving Average
You store the created indicator in a variable: self.myvar = bt.ind.Trix(...) You access the values: self.myvar[0] which automates the process of doing self.myvar.lines.trix[0]For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/