Backtrader Community

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

    ciril.pl

    @ciril.pl

    0
    Reputation
    66
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    ciril.pl Unfollow Follow

    Latest posts made by ciril.pl

    • RE: Logging enter/close a long/short position in SignalStrategy

      In quickstart you show how to overwrite notifications so they log information such as BUY CREATE,
      BUY EXECUTED and you arrive at the direction by looking at order.isbuy(). I would like to create notifications such as LONG CREATED, LONG EXECUTED, LONG CLOSED and the equivalents for short positions based on the LONG, LONGEXIT, SHORT, SHORTEXIT signals embedded in bt.SignalStrategy.

      posted in General Code/Help
      C
      ciril.pl
    • Logging enter/close a long/short position in SignalStrategy

      Hi,

      First of all, I am new to the community so apologies if I do not follow some rules I might not be aware of. I browsed through the topics and have not found a problem similar to mine. My case is a strategy built on bt.SignalStrategy where I have LONG, LONGEXIT, SHORT, SHORTEXIT signals. The precise strategy is of no importance. What troubles me if there is a way to overwrite the default notifications to log information when we enter/close a long/short position instead of the common buy/sell. So in other words providing more detailed information what is happening in the broker. Hope this makes sense.

      Would appreciate any help :)

      Cheers!

      posted in General Code/Help
      C
      ciril.pl