fxDreema

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

    Candle cross help

    Questions & Answers
    2
    4
    459
    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.
    • C
      capitalfreedom last edited by capitalfreedom

      I want to have this instance "when current candle closes above previous candle open, close trade and vice versa but it does not seem to work properly https://fxdreema.com/shared/KUtpFf88d

      S 1 Reply Last reply Reply Quote 0
      • S
        seb 0 @capitalfreedom last edited by

        @drewliedadeuce
        The candle 0 is : the current one/still forming
        The candle 1 is : the most recent candle which closed
        So as soon as the candle 0 closes it becomes the candle 1. And the candle 0 is the one that just opened.
        Must replace id0 by id1; and id1 by id2.

        1 Reply Last reply Reply Quote 0
        • C
          capitalfreedom last edited by capitalfreedom

          @seb-0 thanks for your help. I tried this logic but the EA does not seem to understand it. A number of trades are remaining open even when this logic passes https://fxdreema.com/shared/hyabgk14d

          S 1 Reply Last reply Reply Quote 0
          • S
            seb 0 @capitalfreedom last edited by seb 0

            @drewliedadeuce
            You forgot to write "4" as group number in the sell block.
            This way it is better : https://fxdreema.com/shared/dI3LZzkgb
            However be careful that with this strategy, you sometimes will have opened and closed trades almost simultaneously.

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

            Online Users

            H
            E
            A
            G
            Q
            C

            15
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors