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/

    BACKTEST with EXIT (STOP & TARGET)

    Indicators/Strategies/Analyzers
    1
    1
    165
    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.
    • Andre Villela
      Andre Villela last edited by

      Hi everybody,

      I am looking for someone capable to finish the code adding the exit (STOP & TARGET) using ATR column added on the dataframe initial used to backtest it.

      File sample for the initial dataframe used to run backtest-> https://drive.google.com/open?id=1tpYb8HA-8-XmTWMozelHr69qExsLtPEl

      File script in Python to run the backtest -> https://drive.google.com/file/d/161TD_KCuppMDgnxTv3XGbJtMStlXsLcn/view?usp=sharing

      File result after run backtest ->
      https://drive.google.com/open?id=1d46LIXap67mSY8K5_avDSHKAVwKkZdSc

      Basically all the strategy setup will be added on the dataframe before run the backtest, including a ATR column to calculate the exit.

      I want to get a dataframe out of the backtest showing all the ENTRY points with the result of it and the EXIT TIME-DATE, those 2 columns will be added on the initial dataframe used to backtest it.

      Any reply with a fee to get it done would be appreciated.

      Questions please let me know.

      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(); }); }