Backtrader Community

    • 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/

    Optimise type of moving averages (ZLEMA/ZLEMA? ZLEMA/EMA? EMA/SMA?, etc.)

    Indicators/Strategies/Analyzers
    2
    2
    255
    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.
    • W
      wykazox last edited by

      Dear all,

      New user, and new on the forum, so please excuse me if my topic belongs somewhere else...

      I managed to successfully run the cerebro optimiser to find the optimal length of a moving average crossover.

      Now, I'd like to test different combinations of types of moving averages for the crossovers, for example:
      SMA/SMA
      EMA/SMA
      ZLEMA/SMA
      EMA/EMA
      ZLEMA/EMA
      ZLEMA/ZLEMA
      etc...

      I imagine I would need to do that when adding indicators/signals the strategy.

      But how can I get cerebro.optstrategy() to try different permutations of:
      bt.indicators.sma/zlema/ema/hma/etc...

      I just have no idea how to start optimising things that are not lists of numbers...

      Thanks for your help!

      1 Reply Last reply Reply Quote 0
      • W
        wykazox last edited by

        @run-out Thanks, will try to adapt your code!
        I saw you also gave a very detailed description of the whole process on another thread, I'll check that too.
        Thanks!

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