fxDreema

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

    EA is not stopping to mark high and low of candle.

    Questions & Answers
    2
    2
    123
    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.
    • S
      Safeer992 last edited by Safeer992

      Good day

      Can anyone please help as EA is running the condition again and again and marking high and low of candle. I want EA to stop looking new high and low till TP/SL hits of current condition.

      I am using No trade/order BLOCK but it is stopping EA to take multiple trades in 1 side. Means that high of range broke and EA make a buy trade. Then low of candle broke and EA takes sell trade. Price again goes up-word and hits high of range again but EA is not taking 2nd buy trade. EA should take 1 more buy trade as I need EA to make range valid again if price goes opposite direction.

      https://fxdreema.com/shared/rg8pNh1Oc

      bb2ea155-ad9e-430e-af11-1bb4a6a7d84e-image.png

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

        @Safeer992
        One solution is to declare an integer variable which will be initiated with a value of 0(=no position); give it a value of -1 when a short(sell) position is opened; give it a value of 1 when a long(buy) position is opened.
        Add a condition stating : sell if variable = 0 or 1 ; buy if variable = 0 or -1.
        This being said, be aware that these kind of "strategies" are smoke and mirrors, will make you loose money. You need inquiring seriously about it.

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

        Online Users

        A
        M
        A
        M
        T
        E
        E
        F
        E
        G
        M
        C
        L
        K
        E
        S

        32
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors