Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    btrun plot style name "candle" unknown.

    General Code/Help
    1
    1
    40
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TigerAndy last edited by

      (BackTrader) PS D:\AndyGoogleDrive\Python\BackTrader> btrun --csvformat btcsv --data datas/2006-day-001.txt --nostdstats --observer :Broker --indicator :Stochastic:period_dslow=5 --plot style="candle"
      Traceback (most recent call last):
      File "c:\users\andyh.conda\envs\backtrader\lib\runpy.py", line 194, in _run_module_as_main
      return _run_code(code, main_globals, None,
      File "c:\users\andyh.conda\envs\backtrader\lib\runpy.py", line 87, in run_code
      exec(code, run_globals)
      File "C:\Users\andyh.conda\envs\BackTrader\Scripts\btrun.exe_main
      .py", line 7, in <module>
      File "c:\users\andyh.conda\envs\backtrader\lib\site-packages\backtrader\btrun\btrun.py", line 164, in btrun
      ekwargs = eval('dict(' + args.plot + ')')
      File "<string>", line 1, in <module>
      NameError: name 'candle' is not defined

      Why is the name candle undefined?
      It also doesn't work for style line and bar.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors