fxDreema

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

    Not opening buy trades

    Questions & Answers
    2
    4
    400
    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.
    • B
      Berg3699 last edited by

      Good day,

      My bot is working great except for one thing. It doesn't open buy trades. On backtesting it showed it open over 200 sell trades in a year compared to only 30 buy trades. Here is a shared copy to show my project if anyone can explain to me why it does this? https://fxdreema.com/shared/veAMScQ2b

      1 Reply Last reply Reply Quote 0
      • T
        trader.philipps last edited by trader.philipps

        @Berg3699 It's opening both buy and sell trades. I run your project in tester.
        0_1568601728033_Auswahl_541.png

        Maybe you did specify sell trades only on Tester EA settings?
        0_1568601792730_Auswahl_542.png

        Lot size on first sell trade looks a bit strange. You should use constants for input parameters and variables to store other values. You use the constant LotSize with the Modify variables block.

        I like to share my knowledge, but expect the others to contribute as well.

        1 Reply Last reply Reply Quote 0
        • B
          Berg3699 last edited by

          The lot size changes as your equity grows or shrinks. The bot opens up buy trades in the beginning and then afterwards nothing. I got it fixed should have changed the move away from open price with a - had it as positive. Now it opens up trades as it should thank you for the help. Maybe you can help. How can I stop the ea from open more than x amount of trades? In the back testing I found that the bot opens a bucket load of trades and it eats away at the drawdown. So much that my drawdown sits at 70-80% or even margin call.

          T 1 Reply Last reply Reply Quote 0
          • T
            trader.philipps @Berg3699 last edited by

            @berg3699 You need to formulate the conditions you are expecting. For instance you can set a maximum of trades to beopened or a SL for all trades. It depends.

            I like to share my knowledge, but expect the others to contribute as well.

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

            Online Users

            E
            L
            H

            8
            Online

            146.8k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors