fxDreema

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

    Buy if previous Buy was at higher spot

    Questions & Answers
    2
    2
    657
    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.
    • G
      ginogeorge last edited by

      I want to make a EA; I have a condition, and then a Buy signal. It also has a kind of betting system,

      When Price goes against me, I check againg the condition and Buy again, But I want the price to be lower than the previous Buy (It could be multiple trades)

      How can I check if the price is lower than all the Buy Open Trades (Open Price)

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by

        You have a pink block called "For each Trade" that could work for what you are asking

        https://fxdreema.com/examples#Loop-(For each...)

        "When you run this block once, it can activate it's orange output multiple times, depending on how many trades are present.
        For each iteration the block loads a given trade, and this trade can be manipulated using other pink blocks like "modify stops" or "close"

        After this block you can connect a "Condition" block where you can get different properties of the trade/s.

        0_1550523334518_4a1e8c60-9ad0-4ff2-ad7e-d0b37b3110c7-image.png

        Then, you can build

        For each trade ->If Price (Ask, Bid, Mid or other PriceLevel) < (in loop) OpenPrice ---> Do something

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

        Online Users

        G
        K
        E
        S
        E
        P
        G
        R
        N
        S
        E
        E
        M
        O
        B

        29
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors