INNER CODE UNIT · Python

_oc2

WISEPLAT/Learn-BackTrader · Strategy2_44.py:76

                _oc2 = (_open + _close) / 2
                _volume = data.volume  # ссылка на Объемы # print(volume[0])

                print("close: ", data.close[0])

                self.dataclose = data.close

                # Check if an order is pending ... if yes, we cannot send a 2nd one
                if self.order:
                    return

                # Check if we are in the market
                if not self.position:

                    # Not yet ... we MIGHT BUY if ...
                    if self.dataclose[0] < self.dataclose[-1]:
                        # current close less than previous close

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…