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/

    Ascending and descending Line

    Indicators/Strategies/Analyzers
    2
    2
    38
    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.
    • S
      sadegh last edited by

      Hi
      is there any function or indicator in backtrader to recognize that current indicator line like stochastic %K is descending or ascending? I am trying to build a strategy that if stochastic %K in weekly TimeFarme is descending or ascending so I can trade!

      1 Reply Last reply Reply Quote 0
      • A
        ab_trader last edited by

        The simplest one is rate of change, if it is positive, than the indicator is ascending, otherwise - descending.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
        $(document).ready(function () { app.coldLoad(); }); }