Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. siavash
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 12
    • Posts 24
    • Best 0
    • Groups 0

    siavash

    @siavash

    0
    Reputation
    692
    Profile views
    24
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    siavash Unfollow Follow

    Latest posts made by siavash

    • RE: showing only specific orders on the plot

      Thanks for you reply.
      I know that I should implement this by using observer class, but i don't know how.
      I want to plot only buy/sell pairs that those corresponding trade is positive.

      posted in General Code/Help
      S
      siavash
    • showing only specific orders on the plot

      How can I show only specific bracket orders( having specified condition in the code) on the plot? For example, showing only bracket orders having positive result.

      posted in General Code/Help
      S
      siavash
    • Recording related data of trading

      I want to record some information of candles(for example 5 candles) and then send an order.After that the result of order and the corresponding trade was obtained, add that to the saved related candles that base on I did the trade. It should be mentioned that it might be several positions in same time and also I want do this for the remaining data. How can I code this? is there any example to help me?

      posted in General Code/Help
      S
      siavash
    • RE: setting min period inside the strategy

      @backtrader
      How can I skip. I dont know how?
      I want to record 10 candles data and then send an order and save corresponding result in a text file. Also do this for remaining data. Could you please write code for help?🙏

      posted in General Code/Help
      S
      siavash
    • RE: setting min period inside the strategy

      I didn't understand your answer. What is time cosuming?????!!!! I mean that is there better way to set min period rather than using date time.

      posted in General Code/Help
      S
      siavash
    • RE: setting min period inside the strategy

      I want to use for example 10 first candles inside the next method and after that sending order. I know that I can check date time inside the next method but it is so time consuming.

      posted in General Code/Help
      S
      siavash
    • setting min period inside the strategy

      Hello,
      How can I set the first start candle inside the strategy. I found that this is done by setminperiod(minperiod) method. But I don't know how to set that inside a strategy.

      posted in General Code/Help
      S
      siavash
    • custom sizer class

      I am going to apply money management by coding custom sizer.How can I get first set cash in middle of back-testing?and also a variable defined in the outer function from inside of the sizer class?

      posted in General Code/Help
      S
      siavash
    • RE: Plotting problem

      You're right. I have added buy/sell observer by code.I want only buy/sell triangles on the plot, so i have added it by the code. How can I apply default configurations?
      Thanks a lot.

      posted in General Code/Help
      S
      siavash
    • Plotting problem

      I have a problem in plotting buy/sell triangles.As it was shown on the plot, triangles are under candles.How can I solve this problem:(0_1534541439212_Figure_0.png link url)

      posted in General Code/Help
      S
      siavash