fxDreema

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

    Condition not working

    Bug Reports
    2
    2
    906
    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.
    • L
      leksand last edited by

      Made two conditions: the price is more than the maximum for the last 10 candles and the price is less than the minimum for the last 10 candles (сonditions are not related). Condition with more works, with less does not work - for convenience made an example with trace activity:
      https://fxdreema.com/shared/tqKeCDZae

      M 1 Reply Last reply Reply Quote 0
      • M
        moreirajbn @leksand last edited by moreirajbn

        @leksand

        This is not a bug... just a technical glitch in your logic.

        It happens because it's technically impossible to have an "Ask" quote below the lowest price from candle ID 0 to candle ID 10. In Forex candles are in most cases constructed with "Bid" quotes, and because "Ask" is always above Bid, it's impossible that any Ask quote in candle 0 goes below the lowest Bid price. If candle 0 makes a new low of the last 11 candles (from 0 to 10 we have 11 candles), the lowest price will be a "Bid" quote... so even if you choose Bid, it will never be below the lowest price.... So, the lowest Bid will be equal to (but not lower than, "<") the lowest price..

        On the other hand, the ">" signal works because the Ask quote can be above the highest price, because the highest price comes from a "Bid" quote and, again, Ask is always above Bid..

        I suggest you to choose candle IDs from 1 to 10, not from 0 to 10... then it should work

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

        Online Users

        N
        S
        T
        A
        Y

        15
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors