fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Bucket Of Trades Dilemma

    Questions & Answers
    2
    2
    69
    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.
    • J
      jacksonrileeye last edited by

      Hello, I really wanted to refrain from having to posting on here but I am not a programmer and programming really isn't my thing however, I like trading and finding unique solutions to problems so here I am with a problem that I am struggling to solve.

      Explanation: I am making an EA and it involves using the "Bucket of Trades" block. My EA uses mathematical formulas that employs values from the "Bucket of Trades" like opening prices and accumulative lot sizes. Everything seemed fine until I encountered a problem. Once a position is opened the details of the order is filtered into the "Bucket of Trades" however, once the position became closed the order details remained, this is a problem since I intend to only use the information of positions that are open but as I said once a position is opened the information remains in the " Bucket of Trades" even if the position may become closed in the future. Is there some way for me to have "Bucket of Trades" to only tally information for trades/orders that are currently running and then exclude that information once the trades/orders close as to not ruin my calculations? Sort of like a "Bucket of Running Trades" or "Bucket of Open Trades"?

      Any help on this issue would be appreciated, thank you.

      1 Reply Last reply Reply Quote 0
      • jstap
        jstap last edited by

        Only thing I can think is, save this into a variable, when trade closes reset variable to 0, add a shared link to look at.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        T

        16
        Online

        147.0k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors