fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. ZhAhZ
    3. Posts
    Z
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 21
    • Best 4
    • Controversial 0
    • Groups 0

    Posts made by ZhAhZ

    • Opening new trades with a time delay from current trade if conditions are met

      Hello,

      I have been playing around for 1 week right to find a solution for this problem but I couldn't that's why I am positing here.

      I have an EA which triggers buy or sell if conditions are met. What I need next is to allow the EA to look for other buy or sell signals while there is already a trade open and then make a new buy or sell (no need to close the previous one). BUT, I don't want to trigger a new order right after the current one. I need a time delay or number of bars delay between the current and next order and then let the EA to check for conditions and if ok open the next trade. In other word, do not open a trade for the next XX minutes even if conditions are met, but after delay run on every tick until next trade is opened and then repeat the whole process. These are possible solutions which I tried and failed:

      1- Using no-trade block never allows to check the market again, so if my trade is open for 1 day, I lose all the other signals on that day.
      2-Canceling the no-trade cause multiple trades to be open at the same time (10 trades in less than a second)
      3-I tried following blocks but couldn't get it the way I explained above. Maybe I put them in the wrong order but anyway failed: delay, once per bar, every n bar, if position, skip ticks, wait to pass, etc.

      I am kinda desperate and any support is highly appreciated.

      0_1626942038239_forex.jpg

      posted in Questions & Answers
      Z
      ZhAhZ
    • 1
    • 2
    • 2 / 2