fxDreema

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

    Why the long trades work but the short trades don't

    Questions & Answers
    2
    3
    177
    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.
    • P
      pcntsfadus last edited by

      Hi, my dear fellows. I am new here. I am creating an EA using crossovers between price and the highs and lows of a particular candle period.

      The rules are simple:

      1. When the price crosses above the high of the 10-candle period, open the buy trade;
      2. When the price crosses below the low of the 10-candle period, open the sell trade.

      https://fxdreema.com/shared/y2WkO1Crd

      Interestingly, when I put a backtest on this EA, the buy trades are opened as expected, but the sell trades are not opened. I do not know why. But when I use 'Is Below or Equals' in the Condition Block of the Sell Trade, the sell trades can be opened. It seems weird to me.

      Are there any proficient fxDreema fellows helping me see what is going wrong? Thanks!

      TipsyWisdom 1 Reply Last reply Reply Quote 0
      • TipsyWisdom
        TipsyWisdom @pcntsfadus last edited by

        @pcntsfadus i would start by not using candle ID 0 on anything.

        1 Reply Last reply Reply Quote 0
        • P
          pcntsfadus last edited by

          @TipsyWisdom Thank you very much. It works now!

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

          Online Users

          A
          E
          M
          N

          26
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors