INNER CODE UNIT · Python

__init__

WISEPLAT/Learn-BackTrader · Strategy2_44.py:19

    def __init__(self):
        """Инициализация торговой системы"""
        self.isLive = False  # Сначала будут приходить исторические данные

        # To keep track of pending orders
        self.order = None

        self.dataclose = None

        self.orders_bar_executed = defaultdict(list)

        self.my_logs = []

        print(self.p.lots)


    def log(self, txt, dt=None):
        """Вывод строки с датой на консоль"""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…